diff --git a/0001-add-setup.py.patch b/0001-add-setup.py.patch deleted file mode 100644 index 245b2984ccbb44a259483772976a2c2b70e8d09e..0000000000000000000000000000000000000000 --- a/0001-add-setup.py.patch +++ /dev/null @@ -1,12 +0,0 @@ ---- a/setup.py 1970-01-01 08:00:00.000000000 +0800 -+++ b/setup.py 2022-10-19 09:38:57.746598491 +0800 -@@ -0,0 +1,9 @@ -+#!/usr/bin/env python -+ -+from setuptools import setup -+ -+if __name__ == "__main__": -+ setup( -+ name = "zipp", -+ version = "3.15.0", -+ ) diff --git a/python-zipp.spec b/python-zipp.spec index 092d8b59610736a4f413da2e6918c3e3975aeef3..10bc0dfcbd4bfba77f6f5aed28b1c0ae001ebce7 100644 --- a/python-zipp.spec +++ b/python-zipp.spec @@ -1,12 +1,11 @@ %global _empty_manifest_terminate_build 0 Name: python-zipp Version: 3.15.0 -Release: 1 +Release: 2 Summary: Backport of pathlib-compatible object wrapper for zip files License: MIT URL: https://github.com/jaraco/zipp Source0: https://files.pythonhosted.org/packages/00/27/f0ac6b846684cecce1ee93d32450c45ab607f65c2e0255f0092032d91f07/zipp-3.15.0.tar.gz -Patch0: 0001-add-setup.py.patch BuildArch: noarch %description @@ -42,10 +41,10 @@ sed -i "/import jaraco.itertools/d" tests/test_zipp.py sed -i "/func_timeout/d" tests/test_zipp.py %build -%py3_build +%pyproject_build %install -%py3_install +%pyproject_install zipp==%{version} 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 @@ -54,39 +53,22 @@ if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi if [ -f README.rst ]; then cp -af README.rst %{buildroot}/%{_pkgdocdir}; fi if [ -f README.md ]; then cp -af README.md %{buildroot}/%{_pkgdocdir}; fi if [ -f README.txt ]; then cp -af README.txt %{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 . %check pytest -k "not test_joinpath_constant_time" -%files -n python3-zipp -f filelist.lst +%files -n python3-zipp %defattr(-,root,root) -%dir %{python3_sitelib}/* +%{python3_sitelib}/* %license LICENSE -%files help -f doclist.lst +%files help %{_docdir}/* %changelog +* Wed Apr 26 2023 wangjunqi - 3.15.0-2 +- apply pyproject.toml + * Fri Mar 17 2023 wangjunqi - 3.15.0-1 - Update package to version 3.15.0