diff --git a/python-backports-ssl_match_hostname.spec b/python-backports-ssl_match_hostname.spec index c46ef57e89..70d1e10eca 100644 --- a/python-backports-ssl_match_hostname.spec +++ b/python-backports-ssl_match_hostname.spec @@ -2,7 +2,7 @@ Name: python-backports-ssl_match_hostname Version: 3.5.0.1 -Release: 5%{?dist} +Release: 6%{?dist} Summary: The ssl.match_hostname() function from Python 3 License: Python @@ -11,28 +11,35 @@ Source0: http://pypi.python.org/packages/source/b/%{module_name}/%{module BuildArch: noarch BuildRequires: python2-devel + +%global _description\ +The Secure Sockets layer is only actually secure if you check the hostname in\ +the certificate returned by the server to which you are connecting, and verify\ +that it matches to hostname that you are trying to reach.\ +\ +But the matching logic, defined in RFC2818, can be a bit tricky to implement on\ +your own. So the ssl package in the Standard Library of Python 3.2 now includes\ +a match_hostname() function for performing this check instead of requiring\ +every application to implement the check separately.\ +\ +This backport brings match_hostname() to users of earlier versions of Python.\ +The actual code is only slightly modified from Python 3.5.\ + + +%description %_description + +%package -n python2-backports-ssl_match_hostname +Summary: %summary Requires: python-backports %if 0%{?fedora} || 0%{?rhel} && 0%{?rhel} >= 7 # python-ipaddress has yet to be built for epel6. When it is we can Require # this everywhere Requires: python-ipaddress %endif - Provides: python2-backports-ssl_match_hostname +%{?python_provide:%python_provide python2-backports-ssl_match_hostname} -%description -The Secure Sockets layer is only actually secure if you check the hostname in -the certificate returned by the server to which you are connecting, and verify -that it matches to hostname that you are trying to reach. - -But the matching logic, defined in RFC2818, can be a bit tricky to implement on -your own. So the ssl package in the Standard Library of Python 3.2 now includes -a match_hostname() function for performing this check instead of requiring -every application to implement the check separately. - -This backport brings match_hostname() to users of earlier versions of Python. -The actual code is only slightly modified from Python 3.5. - +%description -n python2-backports-ssl_match_hostname %_description %prep %setup -qn %{module_name}-%{version} @@ -47,7 +54,7 @@ python2 setup.py build python2 setup.py install --skip-build --root %{buildroot} rm -f %{buildroot}%{python_sitelib}/backports/__init__.py* -%files +%files -n python2-backports-ssl_match_hostname %{!?_licensedir:%global license %%doc} %license LICENSE.txt %doc README.txt @@ -55,6 +62,10 @@ rm -f %{buildroot}%{python_sitelib}/backports/__init__.py* %{python_sitelib}/backports.ssl_match_hostname-%{version}-*egg* %changelog +* Sun Dec 17 2017 Zbigniew Jędrzejewski-Szmek - 3.5.0.1-6 +- Python 2 binary package renamed to python2-backports-ssl_match_hostname + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + * Thu Jul 27 2017 Fedora Release Engineering - 3.5.0.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild