From 4c58faf771606257b074524c67b1ecc5aa5687d0 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 10 Apr 2023 11:32:33 +0000 Subject: automatic import of python-checkdigit --- python-checkdigit.spec | 81 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 python-checkdigit.spec (limited to 'python-checkdigit.spec') 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 `_! + +%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 `_! + +%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 `_! + +%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 - 0.5.0-1 +- Package Spec generated -- cgit v1.2.3