summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-03-09 16:47:04 +0000
committerCoprDistGit <infra@openeuler.org>2023-03-09 16:47:04 +0000
commit94b08797cd6b597518925b9eeaab6005a30262f9 (patch)
treea472a01bde2965437fe9ebb65963aa3f18551aed
parent7e1a7bf4dc866f245314b20b6e250cf680eead36 (diff)
automatic import of python-shamir-mnemonic
-rw-r--r--.gitignore1
-rw-r--r--python-shamir-mnemonic.spec82
-rw-r--r--sources1
3 files changed, 84 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..9b17622 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/shamir-mnemonic-0.2.2.tar.gz
diff --git a/python-shamir-mnemonic.spec b/python-shamir-mnemonic.spec
new file mode 100644
index 0000000..dc10d67
--- /dev/null
+++ b/python-shamir-mnemonic.spec
@@ -0,0 +1,82 @@
+%global _empty_manifest_terminate_build 0
+Name: python-shamir-mnemonic
+Version: 0.2.2
+Release: 1
+Summary: SLIP-39 Shamir Mnemonics
+License: MIT License
+URL: https://github.com/trezor/python-shamir-mnemonic
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/08/55/06b3a3f165534b4b04e2ec0fed7030054311d331ede8762c15a852616773/shamir-mnemonic-0.2.2.tar.gz
+BuildArch: noarch
+
+Requires: python3-attrs
+Requires: python3-click
+Requires: python3-colorama
+Requires: python3-black
+Requires: python3-flake8
+Requires: python3-isort
+Requires: python3-pytest
+
+%description
+Reference implementation of SLIP-0039: Shamir's Secret-Sharing for Mnemonic
+Codes
+
+%package -n python3-shamir-mnemonic
+Summary: SLIP-39 Shamir Mnemonics
+Provides: python-shamir-mnemonic
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-shamir-mnemonic
+Reference implementation of SLIP-0039: Shamir's Secret-Sharing for Mnemonic
+Codes
+
+%package help
+Summary: Development documents and examples for shamir-mnemonic
+Provides: python3-shamir-mnemonic-doc
+%description help
+Reference implementation of SLIP-0039: Shamir's Secret-Sharing for Mnemonic
+Codes
+
+%prep
+%autosetup -n shamir-mnemonic-0.2.2
+
+%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-shamir-mnemonic -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2.2-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..a4aeb54
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+3451d5c2a7826e6c1a56814f19da4245 shamir-mnemonic-0.2.2.tar.gz