diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-zengin-code.spec | 73 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 75 insertions, 0 deletions
@@ -0,0 +1 @@ +/zengin_code-1.1.0.20230501.tar.gz diff --git a/python-zengin-code.spec b/python-zengin-code.spec new file mode 100644 index 0000000..1121800 --- /dev/null +++ b/python-zengin-code.spec @@ -0,0 +1,73 @@ +%global _empty_manifest_terminate_build 0 +Name: python-zengin-code +Version: 1.1.0.20230501 +Release: 1 +Summary: bank codes and branch codes for Japanese. +License: MIT +URL: https://github.com/zengin-code/zengin-py +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/02/4b/54d61f776d43420f52812de5da512a38f4b378be75e05dfce43d2e9b85e4/zengin_code-1.1.0.20230501.tar.gz +BuildArch: noarch + +Requires: python3-six + +%description + + +%package -n python3-zengin-code +Summary: bank codes and branch codes for Japanese. +Provides: python-zengin-code +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-zengin-code + + +%package help +Summary: Development documents and examples for zengin-code +Provides: python3-zengin-code-doc +%description help + + +%prep +%autosetup -n zengin-code-1.1.0.20230501 + +%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-zengin-code -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 1.1.0.20230501-1 +- Package Spec generated @@ -0,0 +1 @@ +e7b7a03d1187c03f1fbacef002ac9d65 zengin_code-1.1.0.20230501.tar.gz |