diff --git a/.cvsignore b/.cvsignore index cb0cffb..b035e6a 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1,2 @@ GeoIP-Python-1.2.1.tar.gz +GeoIP-Python-1.2.1-ccodes.patch diff --git a/python-GeoIP.spec b/python-GeoIP.spec index ef7707b..031d401 100644 --- a/python-GeoIP.spec +++ b/python-GeoIP.spec @@ -2,13 +2,14 @@ Name: python-GeoIP Version: 1.2.1 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Python bindings for the GeoIP geographical lookup libraries Group: Development/Languages License: GPL URL: http://www.maxmind.com/download/geoip/api/python/ Source0: http://www.maxmind.com/download/geoip/api/python/GeoIP-Python-%{version}.tar.gz +Patch0: GeoIP-Python-1.2.1-ccodes.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: python-devel GeoIP-devel @@ -20,7 +21,7 @@ location lookups to country, city and organization level within Python code. %prep %setup -q -n GeoIP-Python-%{version} - +%patch0 -p1 -b .ccodes %build CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build @@ -43,6 +44,10 @@ rm -rf %{buildroot} %changelog +* Wed Sep 5 2007 Michael Fleming 1.2.1-7 +- Add patch to expose country codes courtesy of Ignacio Vazquez-Adams + (bz #243696) + * Sat Dec 9 2006 Michael Fleming 1.2.1-6 - Rebuild for python 2.5 diff --git a/sources b/sources index 07ebe8c..a0957c2 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ 5683420ea34490029ee0285ff048fda0 GeoIP-Python-1.2.1.tar.gz +07b7d26c645581af0b797dc145e79dca GeoIP-Python-1.2.1-ccodes.patch