python-geoip/python-geoip.spec

Name: python-geoip
Summary: Python bindings for the GeoIP geographical lookup libraries
Version: 1.2.4
Release: 1
License: GPL
Group: Development/Languages
URL: http://www.maxmind.com/download/geoip/api/python/
Description: This package contains the Python bindings for the GeoIP API, allowing IP to location lookups to country, city and organization level within Python code.

CentOS 7 x86_64

The build was not successful.

Build Status

CentOS 6 x86_64

The build could not start because of the following missing build requirements:

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dag

%define python_sitearch %(%{__python} -c 'from distutils import sysconfig; print sysconfig.get_python_lib(1)')

%define real_name GeoIP-Python

Summary: Python bindings for the GeoIP geographical lookup libraries
Name: python-geoip
Version: 1.2.4
Release: 1%{?dist}
License: GPL
Group: Development/Languages
URL: http://www.maxmind.com/download/geoip/api/python/

Source: http://www.maxmind.com/download/geoip/api/python/GeoIP-Python-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: python-devel, geoip-devel
Obsoletes: python-GeoIP < %{version}-%{release}
Provides: python-GeoIP = %{version}-%{release}

%description
This package contains the Python bindings for the GeoIP API, allowing IP to
location lookups to country, city and organization level within Python code.

%prep
%setup -n %{real_name}-%{version}

chmod -x test*.py

%build
CFLAGS="%{optflags}" %{__python} setup.py build

%install
%{__rm} -rf %{buildroot}
%{__python} setup.py install -O1 --skip-build --root="%{buildroot}" --prefix="%{_prefix}"
 
%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc ChangeLog LICENSE README test*.py
%{python_sitearch}/GeoIP.so

%changelog
* Tue Feb 02 2010 Steve Huff <shuff@vecna.org> - 1.2.4-1
- Updated to release 1.2.4.

* Sun Aug 06 2006 Dag Wieers <dag@wieers.com> - 1.2.1-1
- Initial package. (using DAR)