2021-07-28 17:01:24 +08:00
|
|
|
%global _empty_manifest_terminate_build 0
|
2020-02-18 16:54:43 +08:00
|
|
|
Name: python-zipp
|
2021-12-20 11:04:10 +08:00
|
|
|
Version: 3.6.0
|
2022-03-07 03:40:24 +00:00
|
|
|
Release: 1
|
2020-02-18 16:54:43 +08:00
|
|
|
Summary: Backport of pathlib-compatible object wrapper for zip files
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/jaraco/zipp
|
2021-12-20 11:04:10 +08:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/z/zipp/zipp-%{version}.tar.gz
|
2020-02-18 16:54:43 +08:00
|
|
|
BuildArch: noarch
|
|
|
|
|
%description
|
|
|
|
|
A pathlib-compatible Zipfile object wrapper. A backport of the Path object.
|
|
|
|
|
|
2021-07-28 17:01:24 +08:00
|
|
|
%package -n python3-zipp
|
2020-02-18 16:54:43 +08:00
|
|
|
Summary: Backport of pathlib-compatible object wrapper for zip files
|
2021-07-28 17:01:24 +08:00
|
|
|
Provides: python-zipp
|
|
|
|
|
# Base build requires
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-setuptools
|
2022-03-07 03:40:24 +00:00
|
|
|
BuildRequires: python3-pbr
|
|
|
|
|
BuildRequires: python3-pip
|
|
|
|
|
BuildRequires: python3-wheel
|
|
|
|
|
BuildRequires: python3-setuptools_scm
|
|
|
|
|
BuildRequires: python3-toml
|
|
|
|
|
BuildRequires: boost-iostreams
|
2021-07-28 17:01:24 +08:00
|
|
|
BuildRequires: python3-pytest
|
2020-02-18 16:54:43 +08:00
|
|
|
|
2021-07-28 17:01:24 +08:00
|
|
|
Requires: python3-toml
|
|
|
|
|
Requires: python3-setuptools_scm
|
2020-02-18 16:54:43 +08:00
|
|
|
%description -n python3-zipp
|
|
|
|
|
A pathlib-compatible Zipfile object wrapper. A backport of the Path object.
|
|
|
|
|
|
|
|
|
|
%package_help
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n zipp-%{version}
|
2021-07-28 17:01:24 +08:00
|
|
|
# Skip tests that depend on jaraco.itertools
|
|
|
|
|
sed -i "/import jaraco.itertools/d" test_zipp.py
|
|
|
|
|
sed -i "/func_timeout/d" test_zipp.py
|
2020-02-18 16:54:43 +08:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%_bindir/python3 setup.py build '--executable=%_bindir/python3 -s'
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%_bindir/python3 setup.py install -O1 --skip-build --root %buildroot
|
|
|
|
|
|
|
|
|
|
%check
|
2021-07-28 17:01:24 +08:00
|
|
|
pytest -k "not test_joinpath_constant_time"
|
2020-02-18 16:54:43 +08:00
|
|
|
|
|
|
|
|
%files -n python3-zipp
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%license LICENSE
|
2020-06-18 17:24:58 +08:00
|
|
|
%_prefix/lib/python%{python3_version}/site-packages/zipp*
|
|
|
|
|
%_prefix/lib/python%{python3_version}/site-packages/__pycache__/zipp.*
|
2020-02-18 16:54:43 +08:00
|
|
|
|
2020-06-18 17:27:24 +08:00
|
|
|
%files help
|
2020-02-18 16:54:43 +08:00
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc README.rst
|
|
|
|
|
|
|
|
|
|
%changelog
|
2021-12-20 11:04:10 +08:00
|
|
|
* Mon Dec 20 2021 shixuantong <shixuantong@huawei.com> - 3.6.0-1
|
|
|
|
|
- Upgrade to version 3.6.0
|
|
|
|
|
|
2021-07-28 17:01:24 +08:00
|
|
|
* 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
|
2020-06-19 11:10:14 +08:00
|
|
|
- Depend on the python version to revise the spec file is variable
|
2020-06-19 10:09:42 +08:00
|
|
|
|
2020-06-19 11:10:14 +08:00
|
|
|
* Tue Feb 11 2020 huzunhao<huzunhao2@huawei.com> - 0.5.1-1
|
|
|
|
|
- Package init
|