!30 Modify the patching method
From: @wk333 Reviewed-by: @caodongxia Signed-off-by: @caodongxia
This commit is contained in:
commit
b550ac3739
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user