From cf3037c9afa3139d48dcb68475820893ab2f91e8 Mon Sep 17 00:00:00 2001 From: wk333 <13474090681@163.com> Date: Mon, 27 Feb 2023 15:17:36 +0800 Subject: [PATCH] Modify the patching method (cherry picked from commit 70c84116d0180aaab1a1426bb402d26d970852f7) --- python-zipp.spec | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/python-zipp.spec b/python-zipp.spec index 711fd51..468a20e 100644 --- a/python-zipp.spec +++ b/python-zipp.spec @@ -1,7 +1,7 @@ %global _empty_manifest_terminate_build 0 Name: python-zipp Version: 3.11.0 -Release: 1 +Release: 2 Summary: Backport of pathlib-compatible object wrapper for zip files License: MIT URL: https://github.com/jaraco/zipp @@ -41,8 +41,7 @@ Provides: python3-zipp-doc A pathlib-compatible Zipfile object wrapper. A backport of the Path object. %prep -%autosetup -n zipp-%{version} -%patch0 +%autosetup -n zipp-%{version} -p1 # Skip tests that depend on jaraco.itertools sed -i "/import jaraco.itertools/d" tests/test_zipp.py sed -i "/func_timeout/d" tests/test_zipp.py @@ -59,14 +58,16 @@ pytest -k "not test_joinpath_constant_time" %files -n python3-zipp %defattr(-,root,root) %license LICENSE -%_prefix/lib/python%{python3_version}/site-packages/zipp* -%_prefix/lib/python%{python3_version}/site-packages/a/* +%{python3_sitelib}/zipp* %files help %defattr(-,root,root) %doc README.rst %changelog +* Mon Feb 27 2023 wangkai - 3.11.0-2 +- Modify the patching method + * Fri Dec 16 2022 liqiuyu - 3.11.0-1 - Update package to version 3.11.0 -- Gitee