%define module constantly Name: python-%{module} Version: 15.1.0 Release: %mkrel 1 Summary: Python 2 library for symbolic constants License: MIT Group: Development/Python Url: https://pypi.org/project/constantly/ Source0: https://pypi.io/packages/source/c/constantly/%{module}-%{version}.tar.gz BuildArch: noarch BuildRequires: pkgconfig(python2) BuildRequires: pythonegg(2)(setuptools) %description Python 2 library for symbolic constants. %package -n python3-%{module} Summary: Python 3 library for symbolic constants Group: Development/Python BuildArch: noarch BuildRequires: pkgconfig(python3) BuildRequires: pythonegg(3)(setuptools) %description -n python3-%{module} Python 3 library for symbolic constants. %prep %setup -qn %{module}-%{version} %autopatch -p1 # Remove bundled egg-info rm -rf %{module}.egg-info %build %py2_build %py3_build %install %py2_install %py3_install %files %doc README.rst %license LICENSE %{python2_sitelib}/%{module}/ %{python2_sitelib}/%{module}-%{version}-py%{python2_version}.egg-info/ %files -n python3-%{module} %doc README.rst %license LICENSE %{python3_sitelib}/%{module}/ %{python3_sitelib}/%{module}-%{version}-py%{python3_version}.egg-info/ %changelog * Tue Feb 20 2018 daviddavid <daviddavid> 15.1.0-1.mga6 + Revision: 1203495 - branch python-constantly for mga6 (needed for python-twisted) * Sat Aug 05 2017 pterjan <pterjan> 15.1.0-2.mga7 + Revision: 1135348 - Rebuild for python 3.6 * Sat Jul 29 2017 daviddavid <daviddavid> 15.1.0-1.mga7 + Revision: 1132253 - initial package python-constantly