python-zipp/python-zipp.spec

101 lines
3.1 KiB
RPMSpec
Raw Normal View History

%global _empty_manifest_terminate_build 0
2022-11-01 11:42:56 +08:00
Name: python-zipp
2023-03-17 09:45:04 +08:00
Version: 3.15.0
2023-04-26 10:55:02 +08:00
Release: 2
2022-11-01 11:42:56 +08:00
Summary: Backport of pathlib-compatible object wrapper for zip files
License: MIT
URL: https://github.com/jaraco/zipp
2023-03-17 09:45:04 +08:00
Source0: https://files.pythonhosted.org/packages/00/27/f0ac6b846684cecce1ee93d32450c45ab607f65c2e0255f0092032d91f07/zipp-3.15.0.tar.gz
2022-11-01 11:42:56 +08:00
BuildArch: noarch
2020-02-18 16:54:43 +08:00
%description
A pathlib-compatible Zipfile object wrapper. A backport of the Path object.
%package -n python3-zipp
2022-11-01 11:42:56 +08:00
Summary: Backport of pathlib-compatible object wrapper for zip files
2023-03-17 09:45:04 +08:00
Provides: python-zipp = %{version}-%{release}
2022-11-01 11:42:56 +08:00
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
2023-03-17 09:45:04 +08:00
BuildRequires: shadow
2020-02-18 16:54:43 +08:00
%description -n python3-zipp
A pathlib-compatible Zipfile object wrapper. A backport of the Path object.
2022-11-01 11:42:56 +08:00
%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.
2020-02-18 16:54:43 +08:00
%prep
2023-03-17 09:45:04 +08:00
%autosetup -n zipp-%{version}
# Skip tests that depend on jaraco.itertools
2022-11-01 11:42:56 +08:00
sed -i "/import jaraco.itertools/d" tests/test_zipp.py
sed -i "/func_timeout/d" tests/test_zipp.py
2020-02-18 16:54:43 +08:00
%build
2023-04-26 10:55:02 +08:00
%pyproject_build
2020-02-18 16:54:43 +08:00
%install
2023-04-26 10:55:02 +08:00
%pyproject_install zipp==%{version}
2023-03-17 09:45:04 +08:00
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
2020-02-18 16:54:43 +08:00
%check
pytest -k "not test_joinpath_constant_time"
2020-02-18 16:54:43 +08:00
2023-04-26 10:55:02 +08:00
%files -n python3-zipp
2020-02-18 16:54:43 +08:00
%defattr(-,root,root)
2023-04-26 10:55:02 +08:00
%{python3_sitelib}/*
2020-02-18 16:54:43 +08:00
%license LICENSE
2023-04-26 10:55:02 +08:00
%files help
2023-03-17 09:45:04 +08:00
%{_docdir}/*
2020-02-18 16:54:43 +08:00
%changelog
2023-04-26 10:55:02 +08:00
* Wed Apr 26 2023 wangjunqi <wangjunqi@kylinos.cn> - 3.15.0-2
- apply pyproject.toml
2023-03-17 09:45:04 +08:00
* Fri Mar 17 2023 wangjunqi <wangjunqi@kylinos.cn> - 3.15.0-1
- Update package to version 3.15.0
2023-02-27 15:17:36 +08:00
* Mon Feb 27 2023 wangkai <wangkai385@h-partners.com> - 3.11.0-2
- Modify the patching method
2022-12-16 15:17:53 +08:00
* Fri Dec 16 2022 liqiuyu <liqiuyu@kylinos.cn> - 3.11.0-1
- Update package to version 3.11.0
2022-11-01 11:42:56 +08:00
* Tue Nov 01 2022 wangjunqi <wangjunqi@kylinos.cn> - 3.10.0-1
- Update package to version 3.10.0
2022-07-28 17:35:14 +08:00
* Thu Jul 28 2022 liksh <liks11@chinaunicom.cn> - 3.7.0-1
- Upgrade for openstack yoga
* Mon Dec 20 2021 shixuantong <shixuantong@huawei.com> - 3.6.0-1
- Upgrade to version 3.6.0
* Mon Jul 19 2021 liusheng <liusheng2048@gmaili.com> - 3.4.1-1
- Upgrade to version 3.4.1
2020-12-16 10:44:44 +08:00
* Wed Dec 16 2020 zhanzhimin<zhanzhimin@huawei.com> - 0.5.1-3
- Update Source0
2020-06-19 10:09:42 +08:00
* Fri Jun 19 2020 wuchaochao<wuchaochao4@huawei.com> - 0.5.1-2
- Depend on the python version to revise the spec file is variable
2020-06-19 10:09:42 +08:00
* Tue Feb 11 2020 huzunhao<huzunhao2@huawei.com> - 0.5.1-1
- Package init