|
|
|
@ -3,15 +3,9 @@
|
|
|
|
|
%global modname service-identity
|
|
|
|
|
%global srcname service_identity
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} && 0%{?rhel} <= 7
|
|
|
|
|
%bcond_with python3
|
|
|
|
|
%else
|
|
|
|
|
%bcond_without python3
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Name: python-%{modname}
|
|
|
|
|
Version: 18.1.0
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
Release: 5%{?dist}
|
|
|
|
|
Summary: Service identity verification for pyOpenSSL
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
@ -34,31 +28,6 @@ relevant RFCs too.
|
|
|
|
|
|
|
|
|
|
%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}
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
%{?python_provide:%python_provide python3-%{modname}}
|
|
|
|
@ -88,45 +57,26 @@ Summary: Service-identity documentation
|
|
|
|
|
|
|
|
|
|
%description -n python-%{modname}-doc
|
|
|
|
|
Documentation for service-identity.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{srcname}-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py2_build
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
%py3_build
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py2_install
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
%py3_install
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
# generate html docs
|
|
|
|
|
PYTHONPATH=%{buildroot}%{python3_sitelib} sphinx-build-3 docs html
|
|
|
|
|
# remove the sphinx-build leftovers
|
|
|
|
|
rm -rf html/.{doctrees,buildinfo}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
|
%check
|
|
|
|
|
PYTHONPATH=%{buildroot}%{python2_sitelib} py.test-%{python2_version} -v
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v
|
|
|
|
|
%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}
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.rst
|
|
|
|
@ -136,9 +86,12 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v
|
|
|
|
|
%files -n python-%{modname}-doc
|
|
|
|
|
%doc html
|
|
|
|
|
%license LICENSE docs/license.rst
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
|
|
|
|
|