diff --git a/README.md b/README.md index 08fabba..fb0f7aa 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,5 @@ # libGeoIP GeoIP is a C library that enables the user to find the country that any IP address or hostname originates from. It uses a file based database that is accurate as of December 2002. This database simply contains IP blocks as keys, and countries as values. This database should be more complete and accurate than using reverse DNS lookups. - This module can be used to automatically select the geographically closest mirror, to analyze your web server logs to determine the countries of your visitors, for credit card fraud detection, and for software export controls. - -**GeoIP databases updated way more often than library itself. So we will not package DB files** -GeoIP databases available in two versions basis and can be downloaded from. -http://www.maxmind.com/app/geolitecountry -http://www.maxmind.com/app/geolitecity - diff --git a/libGeoIP.spec b/libGeoIP.spec index 5754380..e9f4658 100644 --- a/libGeoIP.spec +++ b/libGeoIP.spec @@ -1,32 +1,23 @@ Name: libGeoIP -Version: 1.5.0 -Release: 2mamba +Version: 1.6.12 +Release: 1mamba Summary: GeoIP is a C library find what country an IP address or hostname originates from. Group: System/Libraries Vendor: openmamba Distribution: openmamba -Packager: Automatic Build System -URL: http://www.maxmind.com/app/c -Source: http://www.maxmind.com/download/geoip/api/c/GeoIP-%{version}.tar.gz +Packager: Silvan Calarco +URL: https://github.com/maxmind/geoip-api-c +Source: https://github.com/maxmind/geoip-api-c.git/v%{version}/geoip-api-c-%{version}.tar.bz2 License: LGPL Requires: Geo-db-LiteCountry ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel -BuildRequires: libz-devel ## AUTOBUILDREQ-END -BuildRoot: %{_tmppath}/%{name}-%{version}-root %description GeoIP is a C library that enables the user to find the country that any IP address or hostname originates from. It uses a file based database that is accurate as of December 2002. This database simply contains IP blocks as keys, and countries as values. This database should be more complete and accurate than using reverse DNS lookups. - This module can be used to automatically select the geographically closest mirror, to analyze your web server logs to determine the countries of your visitors, for credit card fraud detection, and for software export controls. - -**GeoIP databases updated way more often than library itself. So we will not package DB files** -GeoIP databases available in two versions basis and can be downloaded from. -http://www.maxmind.com/app/geolitecountry -http://www.maxmind.com/app/geolitecity - %package devel Summary: Devel package for %{name} Group: Development/Libraries @@ -34,15 +25,8 @@ Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description devel GeoIP is a C library that enables the user to find the country that any IP address or hostname originates from. It uses a file based database that is accurate as of December 2002. This database simply contains IP blocks as keys, and countries as values. This database should be more complete and accurate than using reverse DNS lookups. - This module can be used to automatically select the geographically closest mirror, to analyze your web server logs to determine the countries of your visitors, for credit card fraud detection, and for software export controls. - -**GeoIP databases updated way more often than library itself. So we will not package DB files** -GeoIP databases available in two versions basis and can be downloaded from. -http://www.maxmind.com/app/geolitecountry -http://www.maxmind.com/app/geolitecity - -This package contains static libraries and header files need for development. +This package contains static libraries and header files needed for development. %package static @@ -52,12 +36,6 @@ Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description static %{name} is a C library that enables the user to find the country that any IP address or hostname originates from. - -**GeoIP databases updated way more often than library itself. So we will not package DB files** -GeoIP databases available in two versions basis and can be downloaded from. -http://www.maxmind.com/app/geolitecountry -http://www.maxmind.com/app/geolitecity - This package contain static libraries for %{name}. %package tools @@ -67,17 +45,13 @@ Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description tools %{name} is a C library that enables the user to find the country that any IP address or hostname originates from. - -**GeoIP databases updated way more often than library itself. So we will not package DB files** -GeoIP databases available in two versions basis and can be downloaded from. -http://www.maxmind.com/app/geolitecountry -http://www.maxmind.com/app/geolitecity - This package contain few tools for %{name} such as lookup, export, autoupdate. -%prep +%debug_package -%setup -q -n GeoIP-%{version} +%prep +%setup -q -n geoip-api-c-%{version} +./bootstrap %build %configure @@ -97,11 +71,8 @@ rm -f %{buildroot}%{_datadir}/GeoIP/GeoIP.dat %files %defattr(-,root,root) -%config(noreplace) %{_sysconfdir}/GeoIP.conf +#%config(noreplace) %{_sysconfdir}/GeoIP.conf %{_libdir}/libGeoIP.so.* -%{_libdir}/libGeoIPUpdate.so.* -%{_mandir}/man1/geoiplookup.1.gz -%{_mandir}/man1/geoiplookup6.1.gz %doc AUTHORS COPYING %files devel @@ -109,24 +80,24 @@ rm -f %{buildroot}%{_datadir}/GeoIP/GeoIP.dat %{_includedir}/*.h %{_libdir}/libGeoIP.la %{_libdir}/libGeoIP.so -%{_libdir}/libGeoIPUpdate.la -%{_libdir}/libGeoIPUpdate.so %{_libdir}/pkgconfig/geoip.pc -%doc ChangeLog README TODO +%doc ChangeLog README.md %files static %defattr(-,root,root) %{_libdir}/libGeoIP.a -%{_libdir}/libGeoIPUpdate.a %files tools %defattr(-,root,root) %{_bindir}/geoiplookup6 %{_bindir}/geoiplookup -%{_bindir}/geoipupdate -%{_mandir}/man1/geoipupdate.1.gz +%{_mandir}/man1/geoiplookup.1* +%{_mandir}/man1/geoiplookup6.1* %changelog +* Fri May 21 2021 Silvan Calarco 1.6.12-1mamba +- update to 1.6.12 + * Tue May 27 2014 Silvan Calarco 1.5.0-2mamba - rebuilt with libnetsnmp 5.7.2