diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-10 21:03:14 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 21:03:14 +0000 |
commit | 0fabb9f84ef70e3c4b84303e7c561297bcda6ad2 (patch) | |
tree | 5f9c7ed4520bee4a8d2768ebea0214b6b01f43d6 | |
parent | 3fa0ffeb470bec26f35bd63a6aae1f89bf49ad3a (diff) |
automatic import of python-pyunpack
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-pyunpack.spec | 86 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 88 insertions, 0 deletions
@@ -0,0 +1 @@ +/pyunpack-0.3.tar.gz diff --git a/python-pyunpack.spec b/python-pyunpack.spec new file mode 100644 index 0000000..3406bc8 --- /dev/null +++ b/python-pyunpack.spec @@ -0,0 +1,86 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pyunpack +Version: 0.3 +Release: 1 +Summary: unpack archive files +License: BSD +URL: https://github.com/ponty/pyunpack +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/00/98/37d8f1712ffc8ff594b921a9ad649a195ebcebb22d54a7d189e5654ea1df/pyunpack-0.3.tar.gz +BuildArch: noarch + +Requires: python3-easyprocess +Requires: python3-entrypoint2 + +%description +unpack archive files in Python + +home: https://github.com/ponty/pyunpack/tree/0.3 + + + +%package -n python3-pyunpack +Summary: unpack archive files +Provides: python-pyunpack +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pyunpack +unpack archive files in Python + +home: https://github.com/ponty/pyunpack/tree/0.3 + + + +%package help +Summary: Development documents and examples for pyunpack +Provides: python3-pyunpack-doc +%description help +unpack archive files in Python + +home: https://github.com/ponty/pyunpack/tree/0.3 + + + +%prep +%autosetup -n pyunpack-0.3 + +%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-pyunpack -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.3-1 +- Package Spec generated @@ -0,0 +1 @@ +9d30348fd0ad26f9dbfe85e9e1cb19ef pyunpack-0.3.tar.gz |