Name: python-geoip Version: 1.2 Release: 1%{?dist} Summary: Provides GeoIP functionality for Python License: MIT URL: http://pypi.python.org/pypi/%{name} Source0: http://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel python3-devel %description Provides access to GeoIP databases. Currently it only supports accessing MaxMind databases. It’s similar to other GeoIP libraries but comes under the very liberal BSD license and also provides an extra library that optionally ships a recent version of the Geolite2 database as provided by MaxMind. %package -n python2-geoip Summary: Provides GeoIP functionality for Python2 %{?python_provide:%python_provide python2-geoip} %description -n python2-geoip Provides access to GeoIP databases. Currently it only supports accessing MaxMind databases. It’s similar to other GeoIP libraries but comes under the very liberal BSD license and also provides an extra library that optionally ships a recent version of the Geolite2 database as provided by MaxMind. %package -n python3-geoip Summary: Provides GeoIP functionality for Python3 %{?python_provide:%python_provide python3-geoip} %description -n python3-geoip Provides access to GeoIP databases. Currently it only supports accessing MaxMind databases. It’s similar to other GeoIP libraries but comes under the very liberal BSD license and also provides an extra library that optionally ships a recent version of the Geolite2 database as provided by MaxMind. %prep %autosetup -n %{name}-%{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-geoip %license LICENSE %doc README %{python2_sitelib}/* %files -n python3-geoip %license LICENSE %doc README %{python3_sitelib}/* %changelog * Thu Oct 1 2015 Fedora -