diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-10 09:48:17 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-10 09:48:17 +0000 |
| commit | a412514fd835855a62464412b8661c7b13706ba1 (patch) | |
| tree | 8cf92c201fbfb20989f4b33d6da8e49c0bc747ee /python-bitprim.spec | |
| parent | b3bfe636d0d77337c44e9b0dfc0bdbbea71ccc55 (diff) | |
automatic import of python-bitprim
Diffstat (limited to 'python-bitprim.spec')
| -rw-r--r-- | python-bitprim.spec | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/python-bitprim.spec b/python-bitprim.spec new file mode 100644 index 0000000..b1977e2 --- /dev/null +++ b/python-bitprim.spec @@ -0,0 +1,75 @@ +%global _empty_manifest_terminate_build 0 +Name: python-bitprim +Version: 1.1.94 +Release: 1 +Summary: Bitcoin development platform +License: MIT +URL: https://github.com/bitprim/bitprim-py +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/aa/b3/d7e1f0befffd1a922e68506ad408e9afcafd97451b4f2b79729eb3b2fc0f/bitprim-1.1.94.tar.gz +BuildArch: noarch + +Requires: python3-conan +Requires: python3-conan-package-tools +Requires: python3-bitprim-native + +%description +Bitcoin, Bitcoin Cash and Litecoin development platform for Python applications + +%package -n python3-bitprim +Summary: Bitcoin development platform +Provides: python-bitprim +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-bitprim +Bitcoin, Bitcoin Cash and Litecoin development platform for Python applications + +%package help +Summary: Development documents and examples for bitprim +Provides: python3-bitprim-doc +%description help +Bitcoin, Bitcoin Cash and Litecoin development platform for Python applications + +%prep +%autosetup -n bitprim-1.1.94 + +%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-bitprim -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 1.1.94-1 +- Package Spec generated |
