Modify the patching method

This commit is contained in:
wk333 2023-02-27 15:17:36 +08:00
parent 4be6d4259e
commit 70c84116d0

View File

@ -1,7 +1,7 @@
%global _empty_manifest_terminate_build 0 %global _empty_manifest_terminate_build 0
Name: python-zipp Name: python-zipp
Version: 3.11.0 Version: 3.11.0
Release: 1 Release: 2
Summary: Backport of pathlib-compatible object wrapper for zip files Summary: Backport of pathlib-compatible object wrapper for zip files
License: MIT License: MIT
URL: https://github.com/jaraco/zipp 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. A pathlib-compatible Zipfile object wrapper. A backport of the Path object.
%prep %prep
%autosetup -n zipp-%{version} %autosetup -n zipp-%{version} -p1
%patch0
# Skip tests that depend on jaraco.itertools # Skip tests that depend on jaraco.itertools
sed -i "/import jaraco.itertools/d" tests/test_zipp.py sed -i "/import jaraco.itertools/d" tests/test_zipp.py
sed -i "/func_timeout/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 %files -n python3-zipp
%defattr(-,root,root) %defattr(-,root,root)
%license LICENSE %license LICENSE
%_prefix/lib/python%{python3_version}/site-packages/zipp* %{python3_sitelib}/zipp*
%_prefix/lib/python%{python3_version}/site-packages/a/*
%files help %files help
%defattr(-,root,root) %defattr(-,root,root)
%doc README.rst %doc README.rst
%changelog %changelog
* Mon Feb 27 2023 wangkai <wangkai385@h-partners.com> - 3.11.0-2
- Modify the patching method
* Fri Dec 16 2022 liqiuyu <liqiuyu@kylinos.cn> - 3.11.0-1 * Fri Dec 16 2022 liqiuyu <liqiuyu@kylinos.cn> - 3.11.0-1
- Update package to version 3.11.0 - Update package to version 3.11.0