%global srcname backports.ssl_match_hostname %global sum The ssl.match_hostname() function from Python 3.5 Name: python-%{srcname} Version: 3.5.0.1 Release: 1%{?dist} Summary: %{sum} License: Python URL: https://pypi.python.org/pypi/%{srcname} Source0: https://pypi.python.org/packages/76/21/2dc61178a2038a5cb35d14b61467c6ac632791ed05131dda72c20e7b9e23/%{srcname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python2-backports Requires: python2-backports %description The ssl.match_hostname() function from Python 3.5. %package -n python2-%{srcname} Summary: %{sum} %{?python_provide:%python_provide python2-%{srcname}} %description -n python2-%{srcname} The ssl.match_hostname() function from Python 3.5. %prep %autosetup -n %{srcname}-%{version} %build %py2_build %install %py2_install rm -f %{buildroot}/%{python2_sitelib}/backports/__init__.py* # Note that there is no %%files section for the unversioned python module if we are building for several python runtimes %files -n python2-%{srcname} %{python2_sitelib}/* %changelog * Mon Mar 26 2018 Thomas Sailer - 3.5.0.1-1 - initial spec file