%global srcname logzero %global sum Robust and effective logging for Python 2 and 3 Name: python-%{srcname} Version: 1.3.1 Release: 1%{?dist} Summary: %{sum} License: MIT URL: https://pypi.python.org/pypi/%{srcname} Source0: https://files.pythonhosted.org/packages/source/l/%{srcname}/%{srcname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel python3-devel %description Robust and effective logging for Python 2 and 3. %package -n python2-%{srcname} Summary: %{sum} %{?python_provide:%python_provide python2-%{srcname}} %description -n python2-%{srcname} Robust and effective logging for Python 2 and 3. %package -n python3-%{srcname} Summary: %{sum} %{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} Robust and effective logging for Python 2 and 3. %prep %autosetup -n %{srcname}-%{version} %build %py2_build %py3_build %install %py2_install %py3_install %files -n python2-%{srcname} %license LICENSE %doc README.rst AUTHORS.rst CONTRIBUTING.rst HISTORY.rst %{python2_sitelib}/* %files -n python3-%{srcname} %license LICENSE %doc README.rst AUTHORS.rst CONTRIBUTING.rst HISTORY.rst %{python3_sitelib}/* %changelog * Sun Oct 22 2017 Gabriel L. Somlo - 1.3.1-1 - initial RPM package