diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2023-02-25 04:07:02 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2023-02-25 04:07:02 +0000 |
commit | 819981b759aae6595936be8f661a043c9e71bfa5 (patch) | |
tree | 0187c33e76824d8add8413881796bcb27a8d503a | |
parent | 03433be4f34740f0486464844c3b9522d2d9412e (diff) |
automatic import of python3-mnemonicopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-mnemonic.spec | 74 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 76 insertions, 0 deletions
@@ -0,0 +1 @@ +/mnemonic-0.20.tar.gz diff --git a/python-mnemonic.spec b/python-mnemonic.spec new file mode 100644 index 0000000..b3bdd7b --- /dev/null +++ b/python-mnemonic.spec @@ -0,0 +1,74 @@ +%global _empty_manifest_terminate_build 0 +Name: python-mnemonic +Version: 0.20 +Release: 1 +Summary: Implementation of Bitcoin BIP-0039 +License: MIT License +URL: https://github.com/trezor/python-mnemonic +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/f8/8d/d4dc2b2bddfeb57cab4404a41749b577f578f71140ab754da9afa8f5c599/mnemonic-0.20.tar.gz +BuildArch: noarch + + +%description +Reference implementation of BIP-0039: Mnemonic code for generating +deterministic keys + +%package -n python3-mnemonic +Summary: Implementation of Bitcoin BIP-0039 +Provides: python-mnemonic +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%description -n python3-mnemonic +Reference implementation of BIP-0039: Mnemonic code for generating +deterministic keys + +%package help +Summary: Development documents and examples for mnemonic +Provides: python3-mnemonic-doc +%description help +Reference implementation of BIP-0039: Mnemonic code for generating +deterministic keys + +%prep +%autosetup -n mnemonic-0.20 + +%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-mnemonic -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Sat Feb 25 2023 Python_Bot <Python_Bot@openeuler.org> - 0.20-1 +- Package Spec generated @@ -0,0 +1 @@ +6846906ee827d43cbf1d7bba648e35b3 mnemonic-0.20.tar.gz |