diff --git a/python-zipfile36.spec b/python-zipfile36.spec new file mode 100644 index 0000000000000000000000000000000000000000..91deaea150f921e1872a12c4e8fd2d2cb543b19a --- /dev/null +++ b/python-zipfile36.spec @@ -0,0 +1,62 @@ +%global _empty_manifest_terminate_build 0 +Name: python-zipfile36 +Version: 0.1.3 +Release: 1 +Summary: Read and write ZIP files - backport of the zipfile module from Python 3.6 +License: Python Software Foundation License +URL: https://gitlab.com/takluyver/zipfile36 +Source0: https://files.pythonhosted.org/packages/7d/5e/22f712e45898d12ad896d54875b736ef90dcfc22590ec118b1fc94fa52a4/zipfile36-0.1.3.tar.gz +BuildArch: noarch + + +%description +This is a backport of the zipfile module from Python 3.6 + +%package -n python3-zipfile36 +Summary: Read and write ZIP files - backport of the zipfile module from Python 3.6 +Provides: python-zipfile36 +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel +%description -n python3-zipfile36 +This is a backport of the zipfile module from Python 3.6 + +%prep +%autosetup -n zipfile36-0.1.3 + +%build +%pyproject_build + +%install +%pyproject_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} +touch filelist.lst +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-zipfile36 -f filelist.lst +%{python3_sitelib}/* + +%changelog +* Wed May 14 2025 Python_Bot - 0.1.3-1 +- Package Spec generated diff --git a/zipfile36-0.1.3.tar.gz b/zipfile36-0.1.3.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..7c6a2d2df81241718fa28dd214ca57d0698cfbf4 Binary files /dev/null and b/zipfile36-0.1.3.tar.gz differ