Blame SPECS/python-backports-ssl_match_hostname.spec

871553
%global module_name backports.ssl_match_hostname
871553
871553
Name:           python-backports-ssl_match_hostname
871553
Version:        3.5.0.1
871553
Release:        1%{?dist}
871553
Summary:        The ssl.match_hostname() function from Python 3
871553
871553
License:        Python
871553
URL:            https://bitbucket.org/brandon/backports.ssl_match_hostname
871553
Source0:        http://pypi.python.org/packages/source/b/%{module_name}/%{module_name}-%{version}.tar.gz
871553
871553
BuildArch:      noarch
871553
BuildRequires:  python2-devel
871553
Requires:       python-backports
871553
Requires:       python-ipaddress
871553
871553
%description
871553
The Secure Sockets layer is only actually secure if you check the hostname in
871553
the certificate returned by the server to which you are connecting, and verify
871553
that it matches to hostname that you are trying to reach.
871553
871553
But the matching logic, defined in RFC2818, can be a bit tricky to implement on
871553
your own. So the ssl package in the Standard Library of Python 3.2 now includes
871553
a match_hostname() function for performing this check instead of requiring
871553
every application to implement the check separately.
871553
871553
This backport brings match_hostname() to users of earlier versions of Python.
871553
The actual code is only slightly modified from Python 3.5.
871553
871553
871553
%prep
871553
%setup -qn %{module_name}-%{version}
871553
cp backports/ssl_match_hostname/README.txt ./
871553
cp backports/ssl_match_hostname/LICENSE.txt ./
871553
871553
871553
%build
871553
python setup.py build
871553
871553
871553
%install
871553
python setup.py install --skip-build --root %{buildroot}
871553
rm %{buildroot}%{python_sitelib}/backports/__init__.py*
871553
871553
 
871553
%files
871553
%doc README.txt LICENSE.txt
871553
%{python_sitelib}/*
871553
871553
871553
%changelog
871553
* Tue Oct 10 2017 Iryna Shcherbina <ishcherb@redhat.com> - 3.5.0.1-1
871553
- Update to 3.5.0.1
871553
Resolves: rhbz#1500373
871553
871553
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 3.4.0.2-4
871553
- Mass rebuild 2013-12-27
871553
871553
* Thu Dec 19 2013 Endi S. Dewata <edewata@redhat.com> - 3.4.0.2-3
871553
- Restore python-backports dependency on RHEL
871553
871553
* Mon Dec 09 2013 Endi S. Dewata <edewata@redhat.com> - 3.4.0.2-2
871553
- Drop python-backports dependency on RHEL
871553
871553
* Sun Oct 27 2013 Toshio Kuratomi <toshio@fedoraproject.org> - 3.4.0.2-1
871553
- Update to upstream 3.4.0.2 for a security fix
871553
- http://bugs.python.org/issue17997
871553
871553
* Mon Sep 02 2013 Ian Weller <iweller@redhat.com> - 3.4.0.1-1
871553
- Update to upstream 3.4.0.1
871553
871553
* Mon Aug 19 2013 Ian Weller <iweller@redhat.com> - 3.2-0.5.a3
871553
- Use python-backports instead of providing backports/__init__.py
871553
871553
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2-0.4.a3
871553
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
871553
871553
* Mon May 20 2013 Toshio Kuratomi <toshio@fedoraproject.org> - 3.2-0.3.a3
871553
- Add patch for CVE 2013-2099 https://bugzilla.redhat.com/show_bug.cgi?id=963260
871553
871553
* Tue Feb 05 2013 Ian Weller <iweller@redhat.com> - 3.2-0.2.a3
871553
- Fix Python issue 12000
871553
871553
* Fri Dec 07 2012 Ian Weller <iweller@redhat.com> - 3.2-0.1.a3
871553
- Initial package build