summaryrefslogtreecommitdiff
path: root/python-tensorflow-determinism.spec
diff options
context:
space:
mode:
Diffstat (limited to 'python-tensorflow-determinism.spec')
-rw-r--r--python-tensorflow-determinism.spec87
1 files changed, 87 insertions, 0 deletions
diff --git a/python-tensorflow-determinism.spec b/python-tensorflow-determinism.spec
new file mode 100644
index 0000000..b85c181
--- /dev/null
+++ b/python-tensorflow-determinism.spec
@@ -0,0 +1,87 @@
+%global _empty_manifest_terminate_build 0
+Name: python-tensorflow-determinism
+Version: 0.4.0
+Release: 1
+Summary: Providing reproducibility in deep learning frameworks
+License: Apache 2.0
+URL: https://github.com/NVIDIA/tensorflow-determinism
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/c1/0c/4bd0445e72414f60e9b5d2334f6a12225ee25b30159ec59bd070a1bc7706/tensorflow-determinism-0.4.0.tar.gz
+BuildArch: noarch
+
+
+%description
+The `tensorflow-determinism` PyPI distribution has been deprecated and the
+`tfdeterminism` package in this distribution contains no code.
+
+Please install the latest version of the
+[framework-reproducibility](https://pypi.org/project/framework-reproducibility/)
+PyPI distribution.
+
+%package -n python3-tensorflow-determinism
+Summary: Providing reproducibility in deep learning frameworks
+Provides: python-tensorflow-determinism
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-tensorflow-determinism
+The `tensorflow-determinism` PyPI distribution has been deprecated and the
+`tfdeterminism` package in this distribution contains no code.
+
+Please install the latest version of the
+[framework-reproducibility](https://pypi.org/project/framework-reproducibility/)
+PyPI distribution.
+
+%package help
+Summary: Development documents and examples for tensorflow-determinism
+Provides: python3-tensorflow-determinism-doc
+%description help
+The `tensorflow-determinism` PyPI distribution has been deprecated and the
+`tfdeterminism` package in this distribution contains no code.
+
+Please install the latest version of the
+[framework-reproducibility](https://pypi.org/project/framework-reproducibility/)
+PyPI distribution.
+
+%prep
+%autosetup -n tensorflow-determinism-0.4.0
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-tensorflow-determinism -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.4.0-1
+- Package Spec generated