Subpackage python2-service-identity has been removed

epel9
Miro Hrončok 5 years ago
parent 62ddb78e85
commit 940723e508

@ -3,15 +3,9 @@
%global modname service-identity %global modname service-identity
%global srcname service_identity %global srcname service_identity
%if 0%{?rhel} && 0%{?rhel} <= 7
%bcond_with python3
%else
%bcond_without python3
%endif
Name: python-%{modname} Name: python-%{modname}
Version: 18.1.0 Version: 18.1.0
Release: 4%{?dist} Release: 5%{?dist}
Summary: Service identity verification for pyOpenSSL Summary: Service identity verification for pyOpenSSL
License: MIT License: MIT
@ -34,31 +28,6 @@ relevant RFCs too.
%description %{_description} %description %{_description}
%package -n python2-%{modname}
Summary: %{summary}
%{?python_provide:%python_provide python2-%{modname}}
BuildRequires: python2-devel
BuildRequires: python2dist(setuptools)
%if %{with check}
BuildRequires: python2dist(attrs)
BuildRequires: python2dist(idna) >= 0.6
BuildRequires: python2dist(ipaddress)
BuildRequires: python2dist(pyasn1)
BuildRequires: python2dist(pyasn1-modules)
BuildRequires: python2dist(pyopenssl) >= 0.14
BuildRequires: python2dist(pytest)
%endif
Requires: python2dist(attrs)
Requires: python2dist(pyasn1)
Requires: python2dist(pyasn1-modules)
Requires: python2dist(pyopenssl) >= 0.14
Recommends: python2dist(idna) >= 0.6
%description -n python2-%{modname} %{_description}
Python 2 version.
%if %{with python3}
%package -n python3-%{modname} %package -n python3-%{modname}
Summary: %{summary} Summary: %{summary}
%{?python_provide:%python_provide python3-%{modname}} %{?python_provide:%python_provide python3-%{modname}}
@ -88,45 +57,26 @@ Summary: Service-identity documentation
%description -n python-%{modname}-doc %description -n python-%{modname}-doc
Documentation for service-identity. Documentation for service-identity.
%endif
%prep %prep
%autosetup -n %{srcname}-%{version} %autosetup -n %{srcname}-%{version}
%build %build
%py2_build
%if %{with python3}
%py3_build %py3_build
%endif
%install %install
%py2_install
%if %{with python3}
%py3_install %py3_install
%endif
%if %{with python3}
# generate html docs # generate html docs
PYTHONPATH=%{buildroot}%{python3_sitelib} sphinx-build-3 docs html PYTHONPATH=%{buildroot}%{python3_sitelib} sphinx-build-3 docs html
# remove the sphinx-build leftovers # remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo} rm -rf html/.{doctrees,buildinfo}
%endif
%if %{with check} %if %{with check}
%check %check
PYTHONPATH=%{buildroot}%{python2_sitelib} py.test-%{python2_version} -v
%if %{with python3}
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v
%endif %endif
%endif
%files -n python2-%{modname}
%license LICENSE
%doc README.rst
%{python2_sitelib}/%{srcname}-*.egg-info/
%{python2_sitelib}/%{srcname}/
%if %{with python3}
%files -n python3-%{modname} %files -n python3-%{modname}
%license LICENSE %license LICENSE
%doc README.rst %doc README.rst
@ -136,9 +86,12 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v
%files -n python-%{modname}-doc %files -n python-%{modname}-doc
%doc html %doc html
%license LICENSE docs/license.rst %license LICENSE docs/license.rst
%endif
%changelog %changelog
* Mon Sep 09 2019 Miro Hrončok <mhroncok@redhat.com> - 18.1.0-5
- Subpackage python2-service-identity has been removed
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 18.1.0-4 * Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 18.1.0-4
- Rebuilt for Python 3.8 - Rebuilt for Python 3.8

Loading…
Cancel
Save