!30 Modify the patching method

From: @wk333 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
This commit is contained in:
openeuler-ci-bot 2023-02-27 09:13:55 +00:00 committed by Gitee
commit b550ac3739
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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 <wangkai385@h-partners.com> - 3.11.0-2
- Modify the patching method
* Fri Dec 16 2022 liqiuyu <liqiuyu@kylinos.cn> - 3.11.0-1
- Update package to version 3.11.0