diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-15 09:09:12 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-15 09:09:12 +0000 |
commit | 693d92f8b2f4017efbd5319784b133a75485c6e5 (patch) | |
tree | f1502f07a2715e52e5b0fe5549c975d81dd42e98 | |
parent | 198827163f2e40b94707df0924049f5f68849389 (diff) |
automatic import of python-zip-files
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-zip-files.spec | 88 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 90 insertions, 0 deletions
@@ -0,0 +1 @@ +/zip_files-0.4.1.tar.gz diff --git a/python-zip-files.spec b/python-zip-files.spec new file mode 100644 index 0000000..dc0591a --- /dev/null +++ b/python-zip-files.spec @@ -0,0 +1,88 @@ +%global _empty_manifest_terminate_build 0 +Name: python-zip-files +Version: 0.4.1 +Release: 1 +Summary: Command line utilities for creating zip files +License: BSD license +URL: https://github.com/goerz/zip_files +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/57/32/f1c1ff96aa74a664a99abf18202a36cab61d981d14d72760e5fe8344cd81/zip_files-0.4.1.tar.gz +BuildArch: noarch + +Requires: python3-click +Requires: python3-coverage +Requires: python3-coveralls +Requires: python3-flake8 +Requires: python3-gitpython +Requires: python3-isort +Requires: python3-ipython +Requires: python3-pre-commit +Requires: python3-pdbpp +Requires: python3-pylint +Requires: python3-pytest +Requires: python3-pytest-cov +Requires: python3-pytest-xdist +Requires: python3-twine +Requires: python3-wheel +Requires: python3-black + +%description + + +%package -n python3-zip-files +Summary: Command line utilities for creating zip files +Provides: python-zip-files +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-zip-files + + +%package help +Summary: Development documents and examples for zip-files +Provides: python3-zip-files-doc +%description help + + +%prep +%autosetup -n zip-files-0.4.1 + +%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-zip-files -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 0.4.1-1 +- Package Spec generated @@ -0,0 +1 @@ +778b1e57443cc9b76504acfb490b913d zip_files-0.4.1.tar.gz |