diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-checkdigit.spec | 81 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 83 insertions, 0 deletions
@@ -0,0 +1 @@ +/checkdigit-0.5.0.tar.gz diff --git a/python-checkdigit.spec b/python-checkdigit.spec new file mode 100644 index 0000000..a037195 --- /dev/null +++ b/python-checkdigit.spec @@ -0,0 +1,81 @@ +%global _empty_manifest_terminate_build 0 +Name: python-checkdigit +Version: 0.5.0 +Release: 1 +Summary: A check digit library for data validation +License: GPL-3.0-or-later +URL: https://checkdigit.rtfd.io +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/4a/56/20c586918b2c4c12549bca8ddf2c23a238b9ad58d20d392724deb8034d9a/checkdigit-0.5.0.tar.gz +BuildArch: noarch + + +%description +**checkdigit** is a pure Python library built for identification numbers. +You want to validate a credit card number, or maybe even calculate a missing digit on an ISBN code? +We've got you covered 😎. +Want to know more? Check out the `API Reference and documentation <https://checkdigit.readthedocs.io/en/latest/reference.html>`_! + +%package -n python3-checkdigit +Summary: A check digit library for data validation +Provides: python-checkdigit +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-checkdigit +**checkdigit** is a pure Python library built for identification numbers. +You want to validate a credit card number, or maybe even calculate a missing digit on an ISBN code? +We've got you covered 😎. +Want to know more? Check out the `API Reference and documentation <https://checkdigit.readthedocs.io/en/latest/reference.html>`_! + +%package help +Summary: Development documents and examples for checkdigit +Provides: python3-checkdigit-doc +%description help +**checkdigit** is a pure Python library built for identification numbers. +You want to validate a credit card number, or maybe even calculate a missing digit on an ISBN code? +We've got you covered 😎. +Want to know more? Check out the `API Reference and documentation <https://checkdigit.readthedocs.io/en/latest/reference.html>`_! + +%prep +%autosetup -n checkdigit-0.5.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-checkdigit -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.5.0-1 +- Package Spec generated @@ -0,0 +1 @@ +9d070cee98b260fd8bb111ae8305687c checkdigit-0.5.0.tar.gz |