!32 Upgrade to latest release [python-zipp -> 3.15.0]
From: @Wangjunqi123 Reviewed-by: @shinwell_hu Signed-off-by: @shinwell_hu
This commit is contained in:
commit
0a321f1917
@ -1,9 +1,12 @@
|
|||||||
--- a/setup.py 1970-01-01 08:00:00.000000000 +0800
|
--- a/setup.py 1970-01-01 08:00:00.000000000 +0800
|
||||||
+++ b/setup.py 2022-10-19 09:38:57.746598491 +0800
|
+++ b/setup.py 2022-10-19 09:38:57.746598491 +0800
|
||||||
@@ -0,0 +1,6 @@
|
@@ -0,0 +1,9 @@
|
||||||
+#!/usr/bin/env python
|
+#!/usr/bin/env python
|
||||||
+
|
+
|
||||||
+from setuptools import setup
|
+from setuptools import setup
|
||||||
+
|
+
|
||||||
+if __name__ == "__main__":
|
+if __name__ == "__main__":
|
||||||
+ setup()
|
+ setup(
|
||||||
|
+ name = "zipp",
|
||||||
|
+ version = "3.15.0",
|
||||||
|
+ )
|
||||||
|
|||||||
@ -1,23 +1,20 @@
|
|||||||
%global _empty_manifest_terminate_build 0
|
%global _empty_manifest_terminate_build 0
|
||||||
Name: python-zipp
|
Name: python-zipp
|
||||||
Version: 3.11.0
|
Version: 3.15.0
|
||||||
Release: 2
|
Release: 1
|
||||||
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
|
||||||
Source0: https://files.pythonhosted.org/packages/8e/b3/8b16a007184714f71157b1a71bbe632c5d66dd43bc8152b3c799b13881e1/zipp-3.11.0.tar.gz
|
Source0: https://files.pythonhosted.org/packages/00/27/f0ac6b846684cecce1ee93d32450c45ab607f65c2e0255f0092032d91f07/zipp-3.15.0.tar.gz
|
||||||
Patch0: 0001-add-setup.py.patch
|
Patch0: 0001-add-setup.py.patch
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
Requires: python3-toml
|
|
||||||
Requires: python3-setuptools_scm
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
A pathlib-compatible Zipfile object wrapper. A backport of the Path object.
|
A pathlib-compatible Zipfile object wrapper. A backport of the Path object.
|
||||||
|
|
||||||
%package -n python3-zipp
|
%package -n python3-zipp
|
||||||
Summary: Backport of pathlib-compatible object wrapper for zip files
|
Summary: Backport of pathlib-compatible object wrapper for zip files
|
||||||
Provides: python-zipp
|
Provides: python-zipp = %{version}-%{release}
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
BuildRequires: python3-pbr
|
BuildRequires: python3-pbr
|
||||||
@ -29,42 +26,70 @@ BuildRequires: python3-pytest
|
|||||||
BuildRequires: python3-more-itertools
|
BuildRequires: python3-more-itertools
|
||||||
BuildRequires: python3-jaraco-functools
|
BuildRequires: python3-jaraco-functools
|
||||||
BuildRequires: shadow
|
BuildRequires: shadow
|
||||||
|
|
||||||
%description -n python3-zipp
|
%description -n python3-zipp
|
||||||
A pathlib-compatible Zipfile object wrapper. A backport of the Path object.
|
A pathlib-compatible Zipfile object wrapper. A backport of the Path object.
|
||||||
|
|
||||||
%package help
|
%package help
|
||||||
Summary: Development documents and examples for zipp
|
Summary: Development documents and examples for zipp
|
||||||
Provides: python3-zipp-doc
|
Provides: python3-zipp-doc
|
||||||
|
|
||||||
%description help
|
%description help
|
||||||
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} -p1
|
%autosetup -n zipp-%{version}
|
||||||
# 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
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%_bindir/python3 setup.py build '--executable=%_bindir/python3 -s'
|
%py3_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%_bindir/python3 setup.py install -O1 --skip-build --root %buildroot
|
%py3_install
|
||||||
|
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
|
||||||
|
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
|
||||||
|
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
|
%check
|
||||||
pytest -k "not test_joinpath_constant_time"
|
pytest -k "not test_joinpath_constant_time"
|
||||||
|
|
||||||
%files -n python3-zipp
|
%files -n python3-zipp -f filelist.lst
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
%dir %{python3_sitelib}/*
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python3_sitelib}/zipp*
|
|
||||||
|
|
||||||
%files help
|
%files help -f doclist.lst
|
||||||
%defattr(-,root,root)
|
%{_docdir}/*
|
||||||
%doc README.rst
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Mar 17 2023 wangjunqi <wangjunqi@kylinos.cn> - 3.15.0-1
|
||||||
|
- Update package to version 3.15.0
|
||||||
|
|
||||||
* Mon Feb 27 2023 wangkai <wangkai385@h-partners.com> - 3.11.0-2
|
* Mon Feb 27 2023 wangkai <wangkai385@h-partners.com> - 3.11.0-2
|
||||||
- Modify the patching method
|
- Modify the patching method
|
||||||
|
|
||||||
@ -91,4 +116,3 @@ pytest -k "not test_joinpath_constant_time"
|
|||||||
|
|
||||||
* Tue Feb 11 2020 huzunhao<huzunhao2@huawei.com> - 0.5.1-1
|
* Tue Feb 11 2020 huzunhao<huzunhao2@huawei.com> - 0.5.1-1
|
||||||
- Package init
|
- Package init
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
BIN
zipp-3.15.0.tar.gz
Normal file
BIN
zipp-3.15.0.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user