python-zipp/python-zipp.spec

55 lines
1.6 KiB
RPMSpec
Raw Normal View History

2020-02-18 16:54:43 +08:00
Name: python-zipp
Version: 0.5.1
2020-12-16 10:44:44 +08:00
Release: 3
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
2020-12-16 10:44:44 +08:00
Source0: https://files.pythonhosted.org/packages/f9/c4/15a1260171956ed4f8190962b1771c7dbca4a39360c15f9c2b77e667a489/zipp-0.5.1.tar.gz
2020-02-18 16:54:43 +08:00
BuildArch: noarch
BuildRequires: python3-devel python3-setuptools
BuildRequires: python3-setuptools_scm >= 1.15.0
%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
%{?python_provide:%python_provide python3-zipp}
%description -n python3-zipp
A pathlib-compatible Zipfile object wrapper. A backport of the Path object.
%package_help
%prep
%autosetup -n zipp-%{version}
%build
%_bindir/python3 setup.py build '--executable=%_bindir/python3 -s'
%install
%_bindir/python3 setup.py install -O1 --skip-build --root %buildroot
%check
%{__python3} setup.py test
%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
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