blob: 0d45f9161d7007e5b2c4310ad5d739e15c465dca [file] [log] [blame]
Name: GeoIP
Version: 1.4.0
Summary: GeoIP is a C library finds the location of an IP address.
Release: 1
Group: System Environment/Libraries
Vendor: MaxMind LLC
License: GPL
BuildRoot: %{_tmppath}/%{name}-%{version}-root
GeoIP is a C library that enables the user to find geographical and
network information of an IP address.
Included is a free GeoLite Country database
that is updated at the beginning of every month.
To download the latest free GeoLite Country database, go to:
There is also a free city-level geolocation database, GeoLite City,
available from:
%package devel
Summary: GeoIP headers, libraries
Group: Development/Libraries
Requires: %name = %{version}
%description devel
This package contain the devel files for GeoIP.
%setup -q
make check
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
# Fixup permissions on shared libraries so that findreqs will work right.
chmod 755 $RPM_BUILD_ROOT/%{_libdir}/*
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%attr(0755,root,root) %{_libdir}/*.so.*.*
%dir %{_datadir}/GeoIP
%files devel
* Fri Apr 14 2006 Thomas Mather <>
- Updated description to reference free GeoLite City database
* Thu Jul 7 2005 Thomas Mather <>
- Updated description to reflect monthly updates for free country database.
* Mon Sep 8 2003 Dr. Peter Bieringer
- Fix for RHL 9, created a new devel package definition.
* Thu Feb 27 2003 Ryan Weaver <>
- Initial RPM Build