diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-11 21:36:35 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 21:36:35 +0000 |
| commit | ef68a45ca1a4a9c33d48aa1c833c835455b7e896 (patch) | |
| tree | be8950137128c1bd32e2eb9849b372e6c6c105df | |
| parent | 1b05d54361c5c4e48acd5d1100a9e262bc34d6db (diff) | |
automatic import of python-base32-crockford
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-base32-crockford.spec | 111 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 113 insertions, 0 deletions
@@ -0,0 +1 @@ +/base32-crockford-0.3.0.tar.gz diff --git a/python-base32-crockford.spec b/python-base32-crockford.spec new file mode 100644 index 0000000..d604c60 --- /dev/null +++ b/python-base32-crockford.spec @@ -0,0 +1,111 @@ +%global _empty_manifest_terminate_build 0 +Name: python-base32-crockford +Version: 0.3.0 +Release: 1 +Summary: A Python implementation of Douglas Crockford's base32 encoding scheme +License: BSD +URL: https://github.com/jbittel/base32-crockford +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/a8/e7/868d9b106ffb86ebf1eb877517e03ac87667ce5ce201547fa3a26090c1ba/base32-crockford-0.3.0.tar.gz +BuildArch: noarch + + +%description +A Python module implementing the alternate base32 encoding as described +by Douglas Crockford at: http://www.crockford.com/wrmg/base32.html. +He designed the encoding to: + * Be human and machine readable + * Be compact + * Be error resistant + * Be pronounceable +It uses a symbol set of 10 digits and 22 letters, excluding I, L O and +U. Decoding is not case sensitive, and 'i' and 'l' are converted to '1' +and 'o' is converted to '0'. Encoding uses only upper-case characters. +Hyphens may be present in symbol strings to improve readability, and +are removed when decoding. +A check symbol can be appended to a symbol string to detect errors +within the string. + +%package -n python3-base32-crockford +Summary: A Python implementation of Douglas Crockford's base32 encoding scheme +Provides: python-base32-crockford +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-base32-crockford +A Python module implementing the alternate base32 encoding as described +by Douglas Crockford at: http://www.crockford.com/wrmg/base32.html. +He designed the encoding to: + * Be human and machine readable + * Be compact + * Be error resistant + * Be pronounceable +It uses a symbol set of 10 digits and 22 letters, excluding I, L O and +U. Decoding is not case sensitive, and 'i' and 'l' are converted to '1' +and 'o' is converted to '0'. Encoding uses only upper-case characters. +Hyphens may be present in symbol strings to improve readability, and +are removed when decoding. +A check symbol can be appended to a symbol string to detect errors +within the string. + +%package help +Summary: Development documents and examples for base32-crockford +Provides: python3-base32-crockford-doc +%description help +A Python module implementing the alternate base32 encoding as described +by Douglas Crockford at: http://www.crockford.com/wrmg/base32.html. +He designed the encoding to: + * Be human and machine readable + * Be compact + * Be error resistant + * Be pronounceable +It uses a symbol set of 10 digits and 22 letters, excluding I, L O and +U. Decoding is not case sensitive, and 'i' and 'l' are converted to '1' +and 'o' is converted to '0'. Encoding uses only upper-case characters. +Hyphens may be present in symbol strings to improve readability, and +are removed when decoding. +A check symbol can be appended to a symbol string to detect errors +within the string. + +%prep +%autosetup -n base32-crockford-0.3.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-base32-crockford -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.3.0-1 +- Package Spec generated @@ -0,0 +1 @@ +c6e65112793ffab0150e33739c030cb6 base32-crockford-0.3.0.tar.gz |
