Subpackage python2-click has been removed

epel9
Miro Hrončok 5 years ago
parent 35af0acb8e
commit b9a71aa640

@ -2,7 +2,7 @@
Name: python-%{pypi_name} Name: python-%{pypi_name}
Version: 7.0 Version: 7.0
Release: 5%{?dist} Release: 6%{?dist}
Summary: Simple wrapper around optparse for powerful command line utilities Summary: Simple wrapper around optparse for powerful command line utilities
License: BSD License: BSD
@ -22,22 +22,6 @@ comes with good defaults out of the box.
%description %{_description} %description %{_description}
%package -n python2-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python2-%{pypi_name}}
BuildRequires: python2-devel
%if ! (0%{?rhel} && 0%{?rhel} <= 7)
BuildRequires: python2-setuptools
# pytest in base RHEL is too old, we'll skip the tests there
BuildRequires: python2-pytest >= 2.8
%else
BuildRequires: python-setuptools
%endif
%description -n python2-%{pypi_name} %{_description}
Python 2 version.
%package -n python%{python3_pkgversion}-%{pypi_name} %package -n python%{python3_pkgversion}-%{pypi_name}
Summary: %{summary} Summary: %{summary}
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}} %{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
@ -53,27 +37,15 @@ Python 3 version.
%autosetup -n %{pypi_name}-%{version} -p1 %autosetup -n %{pypi_name}-%{version} -p1
%build %build
%py2_build
%py3_build %py3_build
%install %install
%py2_install
%py3_install %py3_install
%check %check
export PYTHONPATH=$(pwd) export PYTHONPATH=$(pwd)
%if ! (0%{?rhel} && 0%{?rhel} <= 7)
# pytest in base RHEL is too old, we'll skip the tests there
py.test-%{python2_version} tests --tb=long --verbose
%endif
py.test-%{python3_version} tests --tb=long --verbose py.test-%{python3_version} tests --tb=long --verbose
%files -n python2-%{pypi_name}
%license LICENSE.rst
%doc README.rst CHANGES.rst
%{python2_sitelib}/Click-*.egg-info/
%{python2_sitelib}/%{pypi_name}/
%files -n python%{python3_pkgversion}-%{pypi_name} %files -n python%{python3_pkgversion}-%{pypi_name}
%license LICENSE.rst %license LICENSE.rst
%doc README.rst CHANGES.rst %doc README.rst CHANGES.rst
@ -81,6 +53,10 @@ py.test-%{python3_version} tests --tb=long --verbose
%{python3_sitelib}/%{pypi_name}/ %{python3_sitelib}/%{pypi_name}/
%changelog %changelog
* Wed Sep 18 2019 Miro Hrončok <mhroncok@redhat.com> - 7.0-6
- Subpackage python2-click has been removed
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 7.0-5 * Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 7.0-5
- Rebuilt for Python 3.8 - Rebuilt for Python 3.8

Loading…
Cancel
Save