94 lines
2.6 KiB
RPMSpec
94 lines
2.6 KiB
RPMSpec
%global _empty_manifest_terminate_build 0
|
|
Name: python-zipp
|
|
Version: 3.11.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/8e/b3/8b16a007184714f71157b1a71bbe632c5d66dd43bc8152b3c799b13881e1/zipp-3.11.0.tar.gz
|
|
Patch0: 0001-add-setup.py.patch
|
|
BuildArch: noarch
|
|
|
|
Requires: python3-toml
|
|
Requires: python3-setuptools_scm
|
|
|
|
%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
|
|
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}
|
|
%patch0
|
|
# 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
|
|
%_bindir/python3 setup.py build '--executable=%_bindir/python3 -s'
|
|
|
|
%install
|
|
%_bindir/python3 setup.py install -O1 --skip-build --root %buildroot
|
|
|
|
%check
|
|
pytest -k "not test_joinpath_constant_time"
|
|
|
|
%files -n python3-zipp
|
|
%defattr(-,root,root)
|
|
%license LICENSE
|
|
%_prefix/lib/python%{python3_version}/site-packages/zipp*
|
|
%_prefix/lib/python%{python3_version}/site-packages/a/*
|
|
|
|
%files help
|
|
%defattr(-,root,root)
|
|
%doc README.rst
|
|
|
|
%changelog
|
|
* Fri Dec 16 2022 liqiuyu <liqiuyu@kylinos.cn> - 3.11.0-1
|
|
- Update package to version 3.11.0
|
|
|
|
* Tue Nov 01 2022 wangjunqi <wangjunqi@kylinos.cn> - 3.10.0-1
|
|
- Update package to version 3.10.0
|
|
|
|
* 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
|
|
|
|
* Wed Dec 16 2020 zhanzhimin<zhanzhimin@huawei.com> - 0.5.1-3
|
|
- Update Source0
|
|
|
|
* Fri Jun 19 2020 wuchaochao<wuchaochao4@huawei.com> - 0.5.1-2
|
|
- Depend on the python version to revise the spec file is variable
|
|
|
|
* Tue Feb 11 2020 huzunhao<huzunhao2@huawei.com> - 0.5.1-1
|
|
- Package init
|
|
|