%global srcname pure-sasl Name: python-%{srcname} Version: 0.5.1 Release: 1%{?dist} Summary: A pure python SASL client License: MIT URL: https://github.com/thobbs/pure-sasl Source0: https://github.com/thobbs/pure-sasl/archive/%{version}/%{srcname}-%{version}.tar.gz BuildArch: noarch %description A pure python SASL client. %package -n python3-%{srcname} Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-setuptools %{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} A pure python SASL client. %prep %setup -qn %{srcname}-%{version} # Remove bundled eggs rm -rf *requirements.txt *.egg-info %build %py3_build %install %py3_install %files -n python3-%{srcname} %license LICENSE %doc README.rst %{python3_sitelib}/pure_sasl-%{version}-py3*.egg-info/ %{python3_sitelib}/puresasl %changelog * Wed Nov 21 2018 Tristan Cacqueray - 0.5.1-1 - Initial packaging