diff options
Diffstat (limited to 'python-opentimestamps.spec')
| -rw-r--r-- | python-opentimestamps.spec | 188 |
1 files changed, 188 insertions, 0 deletions
diff --git a/python-opentimestamps.spec b/python-opentimestamps.spec new file mode 100644 index 0000000..542aea4 --- /dev/null +++ b/python-opentimestamps.spec @@ -0,0 +1,188 @@ +%global _empty_manifest_terminate_build 0 +Name: python-opentimestamps +Version: 0.4.5 +Release: 1 +Summary: Create and verify OpenTimestamps proofs +License: LGPL3 +URL: https://github.com/opentimestamps/python-opentimestamps +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/fb/2a/5f19420091d137e5a4c49cbe3de1964a3741d3264bad5e0a528e54aaef15/opentimestamps-0.4.5.tar.gz +BuildArch: noarch + +Requires: python3-pycryptodomex +Requires: python3-bitcoinlib + +%description +# python-opentimestamps + +Python3 library for creating and verifying OpenTimestamps proofs. + +## Installation + +From the PyPi repository: + + pip3 install opentimestamps + +## Structure + +Similar to the author's `python-bitcoinlib`, the codebase is split between the +consensus-critical `opentimestamps.core.*` modules, and the +non-consensus-critical `opentimestamps.*` modules. The distinction between the +two is whether or not changes to that code are likely to lead to permanent +incompatibilities between versions that could lead to timestamp validation +returning inconsistent results between versions. + +## Unit tests + + python3 -m unittest discover -v + +Additionally Travis is supported. + +## SSL Root Certificates + +On some MacOS setups SSL certificates may be missing. The following commands +could be of use to resolve this error (the below example assumes a user is +running Python "3.7", and is using Certifi package): + +``` +cd /Applications/Python\ 3.7 +Install\ Certificates.command +``` + + + + + +%package -n python3-opentimestamps +Summary: Create and verify OpenTimestamps proofs +Provides: python-opentimestamps +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-opentimestamps +# python-opentimestamps + +Python3 library for creating and verifying OpenTimestamps proofs. + +## Installation + +From the PyPi repository: + + pip3 install opentimestamps + +## Structure + +Similar to the author's `python-bitcoinlib`, the codebase is split between the +consensus-critical `opentimestamps.core.*` modules, and the +non-consensus-critical `opentimestamps.*` modules. The distinction between the +two is whether or not changes to that code are likely to lead to permanent +incompatibilities between versions that could lead to timestamp validation +returning inconsistent results between versions. + +## Unit tests + + python3 -m unittest discover -v + +Additionally Travis is supported. + +## SSL Root Certificates + +On some MacOS setups SSL certificates may be missing. The following commands +could be of use to resolve this error (the below example assumes a user is +running Python "3.7", and is using Certifi package): + +``` +cd /Applications/Python\ 3.7 +Install\ Certificates.command +``` + + + + + +%package help +Summary: Development documents and examples for opentimestamps +Provides: python3-opentimestamps-doc +%description help +# python-opentimestamps + +Python3 library for creating and verifying OpenTimestamps proofs. + +## Installation + +From the PyPi repository: + + pip3 install opentimestamps + +## Structure + +Similar to the author's `python-bitcoinlib`, the codebase is split between the +consensus-critical `opentimestamps.core.*` modules, and the +non-consensus-critical `opentimestamps.*` modules. The distinction between the +two is whether or not changes to that code are likely to lead to permanent +incompatibilities between versions that could lead to timestamp validation +returning inconsistent results between versions. + +## Unit tests + + python3 -m unittest discover -v + +Additionally Travis is supported. + +## SSL Root Certificates + +On some MacOS setups SSL certificates may be missing. The following commands +could be of use to resolve this error (the below example assumes a user is +running Python "3.7", and is using Certifi package): + +``` +cd /Applications/Python\ 3.7 +Install\ Certificates.command +``` + + + + + +%prep +%autosetup -n opentimestamps-0.4.5 + +%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-opentimestamps -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 0.4.5-1 +- Package Spec generated |
