%global srcname iso3166 %global common_summary Self-contained ISO 3166-1 country definitions %global common_description ISO 3166-1 defines two-letter, three-letter, and three-digit country\ codes. python-iso3166 is a self-contained module that converts between these\ codes and the corresponding country name. Name: python-%{srcname} Version: 0.8 Release: 1%{?dist} Summary: %{common_summary} Group: System Environment/Libraries License: MIT URL: https://github.com/deactivated/python-iso3166/ Source0: https://files.pythonhosted.org/packages/source/i/%{srcname}/%{srcname}-%{version}.tar.gz BuildRequires: python2-devel BuildRequires: python3-devel BuildArch: noarch %description %{common_description} %package -n python2-%{srcname} Summary: %{common_summary} %{?python_provide:%python_provide python2-%{srcname}} %description -n python2-%{srcname} %{common_description} %package -n python3-%{srcname} Summary: %{common_summary} %{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} %{common_description} %prep %autosetup -n %{srcname}-%{version} %build %py2_build %py3_build %install %py2_install %py3_install %files -n python2-%{srcname} %doc CHANGES README.rst %license LICENSE.txt %{python2_sitelib}/* %files -n python3-%{srcname} %doc CHANGES README.rst %license LICENSE.txt %{python3_sitelib}/* %changelog * Tue Feb 14 2017 Mohamed El Morabity - 0.8-1 - Initial RPM release