1Name: @PACKAGE@ 2Version: @VERSION@ 3Summary: GeoIP is a C library finds the location of an IP address. 4Release: 1 5Group: System Environment/Libraries 6URL: http://www.maxmind.com/app/c 7Vendor: MaxMind LLC 8Source0: http://www.maxmind.com/download/geoip/api/c/GeoIP-%{version}.tar.gz 9License: GPL 10BuildRoot: %{_tmppath}/%{name}-%{version}-root 11 12%description 13GeoIP is a C library that enables the user to find geographical and 14network information of an IP address. 15Included is a free GeoLite Country database 16that is updated at the beginning of every month. 17To download the latest free GeoLite Country database, go to: 18http://www.maxmind.com/app/geoip_country 19 20There is also a free city-level geolocation database, GeoLite City, 21available from: 22http://www.maxmind.com/app/geolitecity 23 24%package devel 25Summary: GeoIP headers, libraries 26Group: Development/Libraries 27Requires: %name = %{version} 28 29%description devel 30This package contain the devel files for GeoIP. 31 32%prep 33%setup -q 34 35%build 36%configure 37make 38make check 39 40%install 41[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT 42%makeinstall 43# Fixup permissions on shared libraries so that findreqs will work right. 44chmod 755 $RPM_BUILD_ROOT/%{_libdir}/* 45 46%clean 47[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT 48 49%post -p /sbin/ldconfig 50 51%postun -p /sbin/ldconfig 52 53%files 54%defattr(-,root,root) 55%doc AUTHORS COPYING ChangeLog README TODO 56%attr(0755,root,root) %{_libdir}/*.so.*.* 57%{_bindir}/* 58%{_sysconfdir}/* 59%dir %{_datadir}/GeoIP 60%{_datadir}/GeoIP/* 61%{_libdir}/*.so 62%{_mandir}/*/* 63 64%files devel 65%{_includedir}/* 66%{_libdir}/*.a 67%{_libdir}/*.la 68 69%changelog 70* Fri Apr 14 2006 Thomas Mather <geoipapi@maxmind.com> 71- Updated description to reference free GeoLite City database 72 73* Thu Jul 7 2005 Thomas Mather <geoipapi@maxmind.com> 74- Updated description to reflect monthly updates for free country database. 75 76* Mon Sep 8 2003 Dr. Peter Bieringer 77- Fix for RHL 9, created a new devel package definition. 78 79* Thu Feb 27 2003 Ryan Weaver <ryanw@falsehope.com> 80- Initial RPM Build 81