summaryrefslogtreecommitdiff
path: root/python-tinychain.spec
diff options
context:
space:
mode:
Diffstat (limited to 'python-tinychain.spec')
-rw-r--r--python-tinychain.spec85
1 files changed, 85 insertions, 0 deletions
diff --git a/python-tinychain.spec b/python-tinychain.spec
new file mode 100644
index 0000000..9940ae7
--- /dev/null
+++ b/python-tinychain.spec
@@ -0,0 +1,85 @@
+%global _empty_manifest_terminate_build 0
+Name: python-tinychain
+Version: 0.12.0
+Release: 1
+Summary: A Python client for TinyChain: http://git.io/JtryR
+License: Apache Software License
+URL: https://github.com/haydnv/tinychain
+Source0: https://mirrors.aliyun.com/pypi/web/packages/b0/a7/665d2d15cb542d8b40d21d4c4862d9a38ca3027638311ea200844671a7e7/tinychain-0.12.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-requests
+
+%description
+This is the Python client for TinyChain. You can find the API documentation at [https://tinychain.readthedocs.io/en/latest/](http://tinychain.readthedocs.io/en/latest/).
+
+There are tutorials available in the TinyChain documentation at [https://docs.tinychain.net/](https://docs.tinychain.net/).
+
+
+
+%package -n python3-tinychain
+Summary: A Python client for TinyChain: http://git.io/JtryR
+Provides: python-tinychain
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-tinychain
+This is the Python client for TinyChain. You can find the API documentation at [https://tinychain.readthedocs.io/en/latest/](http://tinychain.readthedocs.io/en/latest/).
+
+There are tutorials available in the TinyChain documentation at [https://docs.tinychain.net/](https://docs.tinychain.net/).
+
+
+
+%package help
+Summary: Development documents and examples for tinychain
+Provides: python3-tinychain-doc
+%description help
+This is the Python client for TinyChain. You can find the API documentation at [https://tinychain.readthedocs.io/en/latest/](http://tinychain.readthedocs.io/en/latest/).
+
+There are tutorials available in the TinyChain documentation at [https://docs.tinychain.net/](https://docs.tinychain.net/).
+
+
+
+%prep
+%autosetup -n tinychain-0.12.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-tinychain -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 0.12.0-1
+- Package Spec generated