Name: python-geoip-geolite2 Version: 2015.0303 Release: 3%{?dist} Summary: GeoIP database access for Python under a BSD license License: BSD URL: https://pypi.python.org/pypi/python-geoip-geolite2 Source0: https://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz Source1: python-geoip-geolite2-LICENSE Source2: python-geoip-geolite2-README BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-setuptools Requires: python-GeoIP %description python-geoip is a library that 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 %setup -q -n %{name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info install -p -m 644 %{SOURCE1} \ %{_builddir}/%{name}-%{version}/LICENSE install -p -m 644 %{SOURCE2} \ %{_builddir}/%{name}-%{version}/README %build %{__python2} setup.py build %install %{__python2} setup.py install --skip-build --root %{buildroot} %files %doc README %license LICENSE %{python2_sitelib}/_geoip_geolite2/ %{python2_sitelib}/python_geoip_geolite2*.egg-info %changelog * Wed May 13 2015 William Moreno Reyes - 2015.0303-3 - Fix %%files * Wed May 06 2015 William Moreno Reyes - 2015.0303-2 - Change tarball for github to pypi - Include GeoLite2-City.mmdb * Sun Mar 22 2015 William Moreno Reyes - 2015.0303-1 - Initial package.