%global pypi_name backports.ssl_match_hostname Name: python-%{pypi_name} Version: 3.5.0.1 Release: 0%{?dist} Summary: The ssl match_hostname() function from Python 3.5 License: PSF URL: http://bitbucket.org/brandon/backports.ssl_match_hostname Source0: https://files.pythonhosted.org/packages/source/b/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch Group: Development/Libraries %description This function was introduced in python-3.2, it was updated for python-3.4a1 for a CVE it was updated from RFC2818 to RFC 6125 compliance in order to fix another security flaw for python-3.3.3 and python-3.4a5 it was updated in python-3.5 to handle IPAddresses in ServerAltName fields. %package -n python2-%{pypi_name} Summary: The ssl.match_hostname() function from Python 3.5 BuildRequires: python2-setuptools BuildRequires: python2-devel %{?python_provide:%python_provide python2-%{pypi_name}} %description -n python2-%{pypi_name} This function was introduced in python-3.2, it was updated for python-3.4a1 for a CVE it was updated from RFC2818 to RFC 6125 compliance in order to fix another security flaw for python-3.3.3 and python-3.4a5 it was updated in python-3.5 to handle IPAddresses in ServerAltName fields %prep %setup -q -n %{pypi_name}-%{version} %build %py2_build %install %py2_install %files -n python2-%{pypi_name} %{python2_sitelib}/* %changelog * Fri Jun 03 2016 William Moreno - 3.5.0.1-1 - Initial Packaging