|
|
|
@ -1,8 +1,8 @@
|
|
|
|
|
%global pypi_name zipp
|
|
|
|
|
|
|
|
|
|
Name: python-%{pypi_name}
|
|
|
|
|
Version: 0.5.1
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
Version: 3.4.1
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Backport of pathlib-compatible object wrapper for zip files
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
@ -11,8 +11,8 @@ Source0: %{pypi_source}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
BuildRequires: python3-setuptools_scm >= 1.15.0
|
|
|
|
|
BuildRequires: pyproject-rpm-macros
|
|
|
|
|
BuildRequires: python3dist(pytest)
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
A pathlib-compatible Zipfile object wrapper. A backport of the Path object.
|
|
|
|
@ -20,7 +20,6 @@ A pathlib-compatible Zipfile object wrapper. A backport of the Path object.
|
|
|
|
|
|
|
|
|
|
%package -n python3-%{pypi_name}
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
|
|
|
|
|
|
|
%description -n python3-%{pypi_name}
|
|
|
|
|
A pathlib-compatible Zipfile object wrapper. A backport of the Path object.
|
|
|
|
@ -28,24 +27,33 @@ A pathlib-compatible Zipfile object wrapper. A backport of the Path object.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{pypi_name}-%{version}
|
|
|
|
|
# jaraco.itertools and func_timeout are not available in Fedora yet
|
|
|
|
|
sed -i "/import jaraco.itertools/d" test_zipp.py
|
|
|
|
|
# this sed removes two lines - one import and one decorator
|
|
|
|
|
sed -i "/func_timeout/d" test_zipp.py
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|
%pyproject_buildrequires -r
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py3_install
|
|
|
|
|
%pyproject_install
|
|
|
|
|
%pyproject_save_files %{pypi_name}
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%{__python3} setup.py test
|
|
|
|
|
# Skipped test needs jaraco.itertools
|
|
|
|
|
%pytest -k "not test_joinpath_constant_time"
|
|
|
|
|
|
|
|
|
|
%files -n python3-%{pypi_name}
|
|
|
|
|
%files -n python3-%{pypi_name} -f %{pyproject_files}
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.rst
|
|
|
|
|
%{python3_sitelib}/%{pypi_name}.py
|
|
|
|
|
%{python3_sitelib}/__pycache__/%{pypi_name}.*
|
|
|
|
|
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info/
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Jun 30 2021 Lumír Balhar <lbalhar@redhat.com> - 3.4.1-1
|
|
|
|
|
- Unretired package with new upstream version
|
|
|
|
|
|
|
|
|
|
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.5.1-3
|
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
|
|
|
|
|