%global _empty_manifest_terminate_build 0 Name: python-zipp Version: 3.15.0 Release: 1 Summary: Backport of pathlib-compatible object wrapper for zip files License: MIT URL: https://github.com/jaraco/zipp Source0: https://files.pythonhosted.org/packages/00/27/f0ac6b846684cecce1ee93d32450c45ab607f65c2e0255f0092032d91f07/zipp-3.15.0.tar.gz Patch0: 0001-add-setup.py.patch BuildArch: noarch %description A pathlib-compatible Zipfile object wrapper. A backport of the Path object. %package -n python3-zipp Summary: Backport of pathlib-compatible object wrapper for zip files Provides: python-zipp = %{version}-%{release} BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pbr BuildRequires: python3-pip BuildRequires: python3-wheel BuildRequires: python3-setuptools_scm BuildRequires: python3-toml BuildRequires: python3-pytest BuildRequires: python3-more-itertools BuildRequires: python3-jaraco-functools BuildRequires: shadow %description -n python3-zipp A pathlib-compatible Zipfile object wrapper. A backport of the Path object. %package help Summary: Development documents and examples for zipp Provides: python3-zipp-doc %description help A pathlib-compatible Zipfile object wrapper. A backport of the Path object. %prep %autosetup -n zipp-%{version} # 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 %build %py3_build %install %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 pytest -k "not test_joinpath_constant_time" %files -n python3-zipp -f filelist.lst %defattr(-,root,root) %dir %{python3_sitelib}/* %license LICENSE %files help -f doclist.lst %{_docdir}/* %changelog * Fri Mar 17 2023 wangjunqi - 3.15.0-1 - Update package to version 3.15.0 * 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 * Tue Nov 01 2022 wangjunqi - 3.10.0-1 - Update package to version 3.10.0 * Thu Jul 28 2022 liksh - 3.7.0-1 - Upgrade for openstack yoga * Mon Dec 20 2021 shixuantong - 3.6.0-1 - Upgrade to version 3.6.0 * Mon Jul 19 2021 liusheng - 3.4.1-1 - Upgrade to version 3.4.1 * Wed Dec 16 2020 zhanzhimin - 0.5.1-3 - Update Source0 * Fri Jun 19 2020 wuchaochao - 0.5.1-2 - Depend on the python version to revise the spec file is variable * Tue Feb 11 2020 huzunhao - 0.5.1-1 - Package init