%global srcname requests-mock Name: python-%{srcname} Version: 0.6.0 Release: 1%{?dist} Summary: MaxMind GeoIP2 API License: BSD URL: http://pypi.python.org/pypi/%{srcname} Source0: http://pypi.python.org/packages/source/g/%{srcname}/%{srcname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python3-devel %description This package provides an API for the GeoIP2 web services and databases. The API also works with MaxMind’s free GeoLite2 databases. %package -n python2-%{srcname} Summary: MaxMind GeoIP2 API %{?python_provide:%python_provide python2-%{srcname}} %description -n python2-%{srcname} This package provides an API for the GeoIP2 web services and databases. The API also works with MaxMind’s free GeoLite2 databases. %package -n python3-%{srcname} Summary: MaxMind GeoIP2 API %{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} This package provides an API for the GeoIP2 web services and databases. The API also works with MaxMind’s free GeoLite2 databases. %prep %autosetup -n %{srcname}-%{version} rm -rf %{name}.egg.info %build %py2_build %py3_build %install %py2_install %py3_install %check #%{__python2} setup.py test #%{__python3} setup.py test %files -n python2-%{srcname} %license LICENSE %doc README.rst %{python2_sitelib}/* %files -n python3-%{srcname} %license LICENSE %doc README.rst %{python3_sitelib}/* %changelog * Thu Oct 01 2015 Fedora - 0.6.0-1 - Initial Packaging