From e4264f33abedad075cd758a92a7563ecef72b2d1 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Nov 01 2019 08:07:34 +0000 Subject: import GeoIP-1.5.0-14.el7 --- diff --git a/.GeoIP.metadata b/.GeoIP.metadata new file mode 100644 index 0000000..2a01620 --- /dev/null +++ b/.GeoIP.metadata @@ -0,0 +1,7 @@ +09abf240ad4c4c3743113465d01b7c74b3140b9f SOURCES/GeoIP-1.5.0.tar.gz +1342a88b7ec340f7047f34de5ed722ac37c38fe0 SOURCES/GeoIP.dat.gz +4ec0df2fd67f7d17d581ad5c1b96aa87d6c838e8 SOURCES/GeoIPASNum.dat.gz +4085ecf9a64a10214f33a350c2a299b4c292117b SOURCES/GeoIPASNumv6.dat.gz +3b7cc30ddfc2f559c14b798f1d7e52241a7d9cdc SOURCES/GeoIPv6.dat.gz +bb7eca125c87d4df7d41035d3eaafd8be9da9e18 SOURCES/GeoLiteCity.dat.gz +a15de3d2059fef4b0e77f3a3bb1b95ac6090eba1 SOURCES/GeoLiteCityv6.dat.gz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..abae301 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +SOURCES/GeoIP-1.5.0.tar.gz +SOURCES/GeoIP.dat.gz +SOURCES/GeoIPASNum.dat.gz +SOURCES/GeoIPASNumv6.dat.gz +SOURCES/GeoIPv6.dat.gz +SOURCES/GeoLiteCity.dat.gz +SOURCES/GeoLiteCityv6.dat.gz diff --git a/SOURCES/GeoIP-1.5.0-UTF8.patch b/SOURCES/GeoIP-1.5.0-UTF8.patch new file mode 100644 index 0000000..4403fb3 --- /dev/null +++ b/SOURCES/GeoIP-1.5.0-UTF8.patch @@ -0,0 +1,69 @@ +diff -U0 GeoIP-1.5.0/ChangeLog.orig GeoIP-1.5.0/ChangeLog +--- GeoIP-1.5.0/ChangeLog.orig 2011-06-24 14:44:56.000000000 +0100 ++++ GeoIP-1.5.0/ChangeLog 2011-06-27 09:06:16.190029375 +0100 +@@ -137,2 +137,2 @@ +- * Fixed a typo in the geoipupdate(1) manpage and also an non-existent path on Debian (Patrick Matth�i) +- * Fixes two little format errors (hyphen used as minus sign) in both manpages (Patrick Matth�i) ++ * Fixed a typo in the geoipupdate(1) manpage and also an non-existent path on Debian (Patrick Matthäi) ++ * Fixes two little format errors (hyphen used as minus sign) in both manpages (Patrick Matthäi) +@@ -249 +249 @@ +- * Fixed build issue when using --as-needed flag (Diego 'Flameeyes' Petten�) ++ * Fixed build issue when using --as-needed flag (Diego 'Flameeyes' Pettenò) +@@ -395,7 +395,7 @@ +- �1) Use a single buf ptr inside the loops. +- ��� Set to the stack buffer or the cached memory the start of the function. +- �2) Unroll the i=0,1 loop to allow constant folding. +- �3) Unroll the j loop for the common case of j = STANDARD_RECORD_LENGTH +- ��� (I've already done the above changes see attached function.) +- ��� With gcc -O2 calculating x[0] and x[1] for STANDARD_RECORD_LENGTH now +- ��� only takes 15 (was > 100) i80x86 instructions with 6 byte accesses of RAM. 4) only calculate x[0], x[1] when needed, may be a bigger win ++  1) Use a single buf ptr inside the loops. ++     Set to the stack buffer or the cached memory the start of the function. ++  2) Unroll the i=0,1 loop to allow constant folding. ++  3) Unroll the j loop for the common case of j = STANDARD_RECORD_LENGTH ++     (I've already done the above changes see attached function.) ++     With gcc -O2 calculating x[0] and x[1] for STANDARD_RECORD_LENGTH now ++     only takes 15 (was > 100) i80x86 instructions with 6 byte accesses of RAM. 4) only calculate x[0], x[1] when needed, may be a bigger win +diff -U0 GeoIP-1.5.0/man/geoiplookup.1.in.orig GeoIP-1.5.0/man/geoiplookup.1.in +--- GeoIP-1.5.0/man/geoiplookup.1.in.orig 2013-02-27 14:13:11.000000000 -0700 ++++ GeoIP-1.5.0/man/geoiplookup.1.in 2013-04-02 12:01:22.500882994 -0600 +@@ -31,1 +31,1 @@ +-Copyright � 2006 MaxMind, Inc. ++Copyright \[co] 2006 MaxMind, Inc. +diff -U0 GeoIP-1.5.0/man/geoiplookup6.1.in.orig GeoIP-1.5.0/man/geoiplookup6.1.in +--- GeoIP-1.5.0/man/geoiplookup6.1.in.orig 2013-02-27 14:13:11.000000000 -0700 ++++ GeoIP-1.5.0/man/geoiplookup6.1.in 2013-04-02 12:02:11.595886598 -0600 +@@ -36,1 +36,1 @@ +-Copyright � 2008 MaxMind, Inc. ++Copyright \[co] 2008 MaxMind, Inc. +diff -U0 GeoIP-1.5.0/man/geoipupdate.1.in.orig GeoIP-1.5.0/man/geoipupdate.1.in +--- GeoIP-1.5.0/man/geoipupdate.1.in.orig 2013-02-27 14:13:11.000000000 -0700 ++++ GeoIP-1.5.0/man/geoipupdate.1.in 2013-04-02 12:02:36.402889004 -0600 +@@ -59,1 +59,1 @@ +-Copyright � 2011 MaxMind, Inc. ++Copyright \[co] 2011 MaxMind, Inc. +diff -U0 GeoIP-1.5.0/README.orig GeoIP-1.5.0/README +--- GeoIP-1.5.0/README.orig 2013-02-27 14:27:51.000000000 -0700 ++++ GeoIP-1.5.0/README 2013-04-02 12:04:45.400883174 -0600 +@@ -209,1 +209,1 @@ +-4.2(.0). Thanks to Kai Sch�tzl for the report. ++4.2(.0). Thanks to Kai Schätzl for the report. +diff -up GeoIP-1.4.8/TODO.orig GeoIP-1.4.8/TODO +--- GeoIP-1.4.8/TODO.orig 2011-03-27 22:00:37.000000000 +0100 ++++ GeoIP-1.4.8/TODO 2011-06-27 09:06:16.214029320 +0100 +@@ -9,12 +9,12 @@ Maurice Cinquini + + *** ifndef WIN32 on netdb.h ? *** + In GeoIPCity.c you don't "#ifndef WIN32" the netdb.h include, +-but in GeoIP.c you do.� Which one is right? ++but in GeoIP.c you do.  Which one is right? + + *** Warnings in GeoIP-1.2.1 before I made changes *** + GeoIPUpdate.c:73: warning: implicit declaration of function `_setup_dbfilename' +-��� I suggest a GeoIP_private.h file to include prototypes for +-��� _setup_dbfilename and other private functions also used by GeoIPCity.c ++    I suggest a GeoIP_private.h file to include prototypes for ++    _setup_dbfilename and other private functions also used by GeoIPCity.c + + *** Drop the GeoIP_*_by_addr API calls *** + And now that I think of it, why do you need a seperate diff --git a/SOURCES/GeoIP-1.5.0-geoipupdate-message.patch b/SOURCES/GeoIP-1.5.0-geoipupdate-message.patch new file mode 100644 index 0000000..fd67278 --- /dev/null +++ b/SOURCES/GeoIP-1.5.0-geoipupdate-message.patch @@ -0,0 +1,13 @@ +diff --git a/libGeoIP/GeoIPUpdate.c.old b/libGeoIP/GeoIPUpdate.c +index c5a4241..28279cb 100644 +--- a/libGeoIP/GeoIPUpdate.c.old ++++ b/libGeoIP/GeoIPUpdate.c +@@ -823,7 +823,7 @@ short int GeoIP_update_database_general (char * user_id,char * license_key,char + free(buf); + GeoIP_printf(f, "%s is up to date, no updates required\n", geoipfilename); + return GEOIP_NO_NEW_UPDATES; +- } else if (strstr(compr, "Invalid UserId") != NULL){ ++ } else if (strstr(compr, "Invalid user ID") != NULL){ + free(buf); + return GEOIP_USER_ID_INVALID_ERR; + } else if (strstr(compr, "Invalid product ID or subscription expired") != NULL){ diff --git a/SOURCES/LICENSE.txt b/SOURCES/LICENSE.txt new file mode 100644 index 0000000..01c2910 --- /dev/null +++ b/SOURCES/LICENSE.txt @@ -0,0 +1,39 @@ +There are two licenses, one for the C library software, and one for +the database. + +SOFTWARE LICENSE (C library) + +The GeoIP C Library is licensed under the LGPL. For details see +the COPYING file. + +OPEN DATA LICENSE (GeoLite Country and GeoLite City databases) + +Copyright (c) 2008 MaxMind, Inc. All Rights Reserved. + +All advertising materials and documentation mentioning features or use of +this database must display the following acknowledgment: +"This product includes GeoLite data created by MaxMind, available from +http://maxmind.com/" + +Redistribution and use with or without modification, are permitted provided +that the following conditions are met: +1. Redistributions must retain the above copyright notice, this list of +conditions and the following disclaimer in the documentation and/or other +materials provided with the distribution. +2. All advertising materials and documentation mentioning features or use of +this database must display the following acknowledgement: +"This product includes GeoLite data created by MaxMind, available from +http://maxmind.com/" +3. "MaxMind" may not be used to endorse or promote products derived from this +database without specific prior written permission. + +THIS DATABASE IS PROVIDED BY MAXMIND, INC ``AS IS'' AND ANY +EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL MAXMIND BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +DATABASE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/SOURCES/fetch-geoipdata-city.pl b/SOURCES/fetch-geoipdata-city.pl new file mode 100644 index 0000000..cb28f74 --- /dev/null +++ b/SOURCES/fetch-geoipdata-city.pl @@ -0,0 +1,36 @@ +#!/usr/bin/perl + +use strict; +use warnings; +use POSIX; +use LWP::Simple; +use File::Copy; +use Carp; + +my $ipdb = "GeoLiteCity.dat"; +my $datadir = "/usr/share/GeoIP/"; +my $fullpath = $datadir . $ipdb; +my $url = "http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz"; +my $date = strftime "%Y%m%d", localtime; + +# Do we have an existing IP database? +if ( -e $fullpath ) { + print "Fetching " . $ipdb . " from " . $url . "\r\n"; + if ( is_success( getstore( $url, $datadir . "GeoLiteCity.dat.gz" ) ) ) { + move( $fullpath, $datadir . $ipdb . "." . $date ) + || croak "Can't move the old database aside\r\n"; + system( 'gzip', '-d', $datadir . 'GeoLiteCity.dat.gz' ); + if ( $? ne 0 ) { + croak "Could not uncompress database - exited $?\r\n"; + } + print "GeoIP database updated. Old copy is at " . $ipdb . "." . $date + . "\r\n"; + } + else { + croak "Fetch failed - try again later?\r\n"; + } +} +else { + croak "You don't appear to have a valid GeoIP database installed..\r\n"; +} + diff --git a/SOURCES/fetch-geoipdata.pl b/SOURCES/fetch-geoipdata.pl new file mode 100644 index 0000000..770bbc2 --- /dev/null +++ b/SOURCES/fetch-geoipdata.pl @@ -0,0 +1,36 @@ +#!/usr/bin/perl + +use strict; +use warnings; +use POSIX; +use LWP::Simple; +use File::Copy; +use Carp; + +my $ipdb = 'GeoIP.dat'; +my $datadir = '/usr/share/GeoIP/'; +my $fullpath = $datadir . $ipdb; +my $url = 'http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz'; +my $date = strftime '%Y%m%d', localtime; + +# Do we have an existing IP database? +if ( -e $fullpath ) { + print "Fetching " . $ipdb . " from " . $url . "\r\n"; + if ( is_success( getstore( $url, $datadir . 'GeoIP.dat.gz' ) ) ) { + move( $fullpath, $datadir . $ipdb . '.' . $date ) + || croak "Can't move the old database aside\r\n"; + system 'gzip', '-d', $datadir . 'GeoIP.dat.gz'; + if ( $? ne 0 ) { + croak "Could not uncompress database - exited $?\r\n"; + } + print "GeoIP database updated. Old copy is at " . $ipdb . "." . $date + . "\r\n"; + } + else { + croak "Fetch failed - try again later?\r\n"; + } +} +else { + croak "You don't appear to have a valid GeoIP database installed..\r\n"; +} + diff --git a/SOURCES/geoipupdate.cron b/SOURCES/geoipupdate.cron new file mode 100644 index 0000000..3023cf3 --- /dev/null +++ b/SOURCES/geoipupdate.cron @@ -0,0 +1,6 @@ +#!/bin/sh + +geoipupdate > /dev/null && \ + ln -sf GeoLiteCountry.dat /usr/share/GeoIP/GeoIP.dat +geoipupdate > /dev/null && \ + ln -sf GeoLiteCity.dat /usr/share/GeoIP/GeoIPCity.dat diff --git a/SPECS/GeoIP.spec b/SPECS/GeoIP.spec new file mode 100644 index 0000000..dab5b3c --- /dev/null +++ b/SPECS/GeoIP.spec @@ -0,0 +1,370 @@ +# Noarch subpackages available from Fedora 10, RHEL 6 +%global noarch_subpkgs 0%{?fedora} > 9 || 0%{?rhel} > 5 + +Name: GeoIP +Version: 1.5.0 +Release: 14%{?dist} +Summary: Library for country/city/organization to IP address or hostname mapping +Group: Development/Libraries +License: LGPLv2+ and GPLv2+ and CC-BY-SA +URL: http://www.maxmind.com/app/c +Source0: http://www.maxmind.com/download/geoip/api/c/GeoIP-%{version}.tar.gz +Source1: LICENSE.txt +Source2: fetch-geoipdata-city.pl +Source3: fetch-geoipdata.pl +Source5: geoipupdate.cron +# Data sources indexed at http://dev.maxmind.com/geoip/legacy/geolite +Source10: http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz +Source11: http://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz +Source12: http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz +Source13: http://geolite.maxmind.com/download/geoip/database/GeoLiteCityv6-beta/GeoLiteCityv6.dat.gz +Source14: http://download.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz +Source15: http://download.maxmind.com/download/geoip/database/asnum/GeoIPASNumv6.dat.gz +Patch10: GeoIP-1.5.0-UTF8.patch +Patch11: GeoIP-1.5.0-geoipupdate-message.patch + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu) +BuildRequires: zlib-devel +Obsoletes: geoip < %{version}-%{release} +Provides: geoip = %{version}-%{release} +Requires: geoipupdate + +%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 June 2007 and can optionally be updated on a weekly +basis by installing the GeoIP-update package. 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 package includes GeoLite data created by MaxMind, available from +http://www.maxmind.com/ + +%package data +Summary: Static snapshot of GeoIP databases +Group: Applications/Databases +Requires: %{name} = %{version}-%{release} +%if %{noarch_subpkgs} +BuildArch: noarch +%endif + +%description data +Snapshot of IPv4 and IPv6 databases for GeoIP. These databases are not +regularly updated, use a cron job from GeoIP-update package to get fresh ones. + +This package includes GeoLite data created by MaxMind, available from +http://www.maxmind.com/ + +%package devel +Summary: Development headers and libraries for GeoIP +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Provides: geoip-devel = %{version}-%{release} +Obsoletes: geoip-devel < %{version}-%{release} + +%description devel +Development headers and static libraries for building GeoIP-based applications. + +%prep +%setup -q + +# Recode docs as UTF-8 +%patch10 -p1 +%patch11 -p1 + +install -D -m644 %{SOURCE1} LICENSE.txt +install -D -m644 %{SOURCE2} fetch-geoipdata-city.pl +install -D -m644 %{SOURCE3} fetch-geoipdata.pl + +# Distribute all databases as *-inital.dat files in GeoIP packages. +# User then can download real .dat files without replacing the ones from +# package. +install -p -m 644 %{SOURCE10} data/GeoIP-initial.dat.gz; gunzip data/GeoIP-initial.dat +install -p -m 644 %{SOURCE11} data/GeoIPv6-initial.dat.gz; gunzip data/GeoIPv6-initial.dat +# City and ASN databases will be in GeoIP-data subpackage as -initial files +# and linked to non--initial on installation of the subpackage. +install -p -m 644 %{SOURCE12} data/GeoIPCity-initial.dat.gz; gunzip data/GeoIPCity-initial.dat +install -p -m 644 %{SOURCE13} data/GeoIPCityv6-initial.dat.gz; gunzip data/GeoIPCityv6-initial.dat +install -p -m 644 %{SOURCE14} data/GeoIPASNum-initial.dat.gz; gunzip data/GeoIPASNum-initial.dat +install -p -m 644 %{SOURCE15} data/GeoIPASNumv6-initial.dat.gz; gunzip data/GeoIPASNumv6-initial.dat + +%build +# Fix timestamp order to avoid trying to re-run autotools and configure, +# thus clobbering our hacked libtool later on +touch aclocal.m4 +touch configure +touch config.h.in +touch config.status +find . -name Makefile.in -exec touch {} \; + +%configure --disable-static --disable-dependency-tracking + +# Kill bogus rpaths +sed -i -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \ + -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool + +make %{?_smp_mflags} + +%install +rm -rf %{buildroot} +make DESTDIR=%{buildroot} install + +# nix the stuff we don't need like .la files. +rm -f %{buildroot}%{_libdir}/*.la + +# install downloaded GeoLite databases +for db in \ + GeoIP-initial.dat \ + GeoIPv6-initial.dat \ + GeoIPCity-initial.dat \ + GeoIPCityv6-initial.dat \ + GeoIPASNum-initial.dat \ + GeoIPASNumv6-initial.dat +do + install -p -m 644 data/$db %{buildroot}%{_datadir}/GeoIP/ +done + +# create empty files for initial %%ghost databases +touch %{buildroot}%{_datadir}/GeoIP/GeoIP{ASNum,City,Country}{,v6}.dat +chmod 644 %{buildroot}%{_datadir}/GeoIP/GeoIP{ASNum,City,Country}{,v6}.dat + +# make the default GeoIP.dat a symlink to our -initial data file. +ln -sf GeoIP-initial.dat %{buildroot}%{_datadir}/GeoIP/GeoIP.dat +ln -sf GeoIPv6-initial.dat %{buildroot}%{_datadir}/GeoIP/GeoIPv6.dat + +#links used when invoking geoiplookup -v +ln -sf GeoIPCity-initial.dat %{buildroot}%{_datadir}/GeoIP/GeoIPCity.dat +ln -sf GeoIPCityv6-initial.dat %{buildroot}%{_datadir}/GeoIP/GeoIPCityv6.dat + +# Add compat symlinks for GeoIPASNum.dat and GeoLiteASNumv6.dat +# ([upstream] database names used in the old geoip-geolite package) +ln -sf GeoIPASNum.dat %{buildroot}%{_datadir}/GeoIP/GeoIPASNum.dat +ln -sf GeoIPASNumv6.dat %{buildroot}%{_datadir}/GeoIP/GeoIPASNumv6.dat + +#Remove files used by geoipupdate - it has its own package +rm %{buildroot}%{_bindir}/geoipupdate +rm %{buildroot}%{_includedir}/GeoIPUpdate.h +rm %{buildroot}%{_libdir}/libGeoIPUpdate.so* +rm %{buildroot}%{_mandir}/man1/geoipupdate.1* +rm %{buildroot}/etc/GeoIP.conf* + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%post data +# Link *-initial.dat files as official GeoIP database files. Make sure not to +# overwrite any user databases! +for db in GeoIPCity.dat GeoIPCityv6.dat GeoIPASNum.dat GeoIPASNumv6.dat ; do + db_initial=${db%.dat}-initial.dat + if [ ! -e "/usr/share/GeoIP/$db" ]; then + ln -s "/usr/share/GeoIP/$db_initial" "/usr/share/GeoIP/$db" &>/dev/null || : + fi +done + +%postun data +if [ "$1" == "0" ]; then + for db in GeoIPCity.dat GeoIPCityv6.dat GeoIPASNum.dat GeoIPASNumv6.dat ; do + db_initial=${db%.dat}-initial.dat + # Remove links to -initial files, ignoring links anywhere else + if [ -h "/usr/share/GeoIP/$db" -a $(readlink /usr/share/GeoIP/$db) = "/usr/share/GeoIP/$db_initial" ]; then + rm "/usr/share/GeoIP/$db" &>/dev/null || : + fi + done +fi + + +%files +# LGPLv2+ +%doc AUTHORS COPYING ChangeLog README TODO LICENSE* fetch-* +%{_bindir}/geoiplookup +%{_bindir}/geoiplookup6 +%dir %{_datadir}/GeoIP/ +%{_datadir}/GeoIP/GeoIP-initial.dat +%{_datadir}/GeoIP/GeoIPv6-initial.dat +# The other databases are %%verify(not md5 size mtime) so that they can be updated via the cron scripts +# and rpm will not moan about the files having changed +%verify(not md5 size link mtime) %{_datadir}/GeoIP/GeoIP.dat +%verify(not md5 size link mtime) %{_datadir}/GeoIP/GeoIPv6.dat +%ghost %{_datadir}/GeoIP/GeoIPASNum.dat +%ghost %{_datadir}/GeoIP/GeoIPCity.dat +%ghost %{_datadir}/GeoIP/GeoIPCountry.dat +%ghost %{_datadir}/GeoIP/GeoIPASNumv6.dat +%ghost %{_datadir}/GeoIP/GeoIPCityv6.dat +%ghost %{_datadir}/GeoIP/GeoIPCountryv6.dat +%{_libdir}/libGeoIP.so.1 +%{_libdir}/libGeoIP.so.1.* +%{_mandir}/man1/geoiplookup.1* +%{_mandir}/man1/geoiplookup6.1* + +%files data +%{_datadir}/GeoIP/GeoIPCity-initial.dat +%{_datadir}/GeoIP/GeoIPCityv6-initial.dat +%{_datadir}/GeoIP/GeoIPASNum-initial.dat +%{_datadir}/GeoIP/GeoIPASNumv6-initial.dat + +%files devel +# LGPLv2+ +%{_includedir}/GeoIP.h +%{_includedir}/GeoIPCity.h +%{_libdir}/libGeoIP.so +%{_libdir}/pkgconfig/geoip.pc + +%changelog +* Mon Feb 18 2019 Michal Ruprich - 1.5.0-14 +- Resolves: #1666767 - Remove geoipupdate binary from GeoIP + +* Tue Jul 31 2018 Michal Ruprich - 1.5.0-13 +- Related: #1409060 - Missing symlink at the GeoIP-update package + +* Tue Jun 19 2018 Michal Ruprich - 1.5.0-12 +- Removed clean section +- Resolves: #1589860 - Update GeoIP legacy databases +- Resolves: #1409060 - Missing symlink at the GeoIP-update package + +* Wed Jun 29 2016 Jan Safranek - 1.5.0-11 +- Fixed rpmlint errors + +* Wed Jun 29 2016 Jan Safranek - 1.5.0-10 +- Added base IPv6 database to GeoIP package +- Added GeoIP-data subpackage with all other databases (#1201857) + +* Fri Jan 24 2014 Daniel Mach - 1.5.0-9 +- Mass rebuild 2014-01-24 + +* Fri Dec 27 2013 Daniel Mach - 1.5.0-8 +- Mass rebuild 2013-12-27 + +* Wed Nov 13 2013 Jan Safranek - 1.5.0-7 +- Don't download the database in %post (#1029807) +- Don't download GeoLiteASNum as it's no longer provided. + +* Mon Jun 10 2013 Paul Howarth - 1.5.0-6 +- Update sub-package requires main package for geoipupdate script + +* Sat Jun 8 2013 Paul Howarth - 1.5.0-5 +- Make GeoIP.dat -> GeoIP-initial.dat symlink in %%install, not %%post, + and don't %%ghost it +- Run geoipupdate silently in %%post and cron job +- Create empty database files for %%ghost to work with old rpm versions +- Don't try to use noarch subpackages on old rpm versions +- Update %%description to mention database updates +- Drop outdated README.Fedora + +* Sat Jun 08 2013 Philip Prindeville - 1.5.0-4 +- Revert ability to replace 3rd-party package + +* Fri Jun 07 2013 Philip Prindeville - 1.5.0-3 +- Add attributes for %%ghost files + +* Fri Jun 07 2013 Philip Prindeville - 1.5.0-2 +- Make update subpackage be noarch. + +* Fri Jun 07 2013 Philip Prindeville - 1.5.0-1 +- Version bump to 1.5.0 +- Have GeoIP.dat be a symlink to the real data, and install the canned + GeoIP.dat as GeoIP-initial.dat +- Change config as per Boris' instructions to use 'lite' databases which are + regularly updated. +- Add pkgconfig (.pc) file into devel subpackage +- Add cron support for refreshing the lite databases and make a separate + subpackage. + +* Sun Mar 24 2013 Paul Howarth - 1.4.8-6 +- Fix config.guess and config.sub to add aarch64 support (#925403) + +* Wed Feb 13 2013 Fedora Release Engineering - 1.4.8-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Mon Oct 22 2012 Paul Howarth - 1.4.8-4 +- libGeoIPUpdate and geoipupdate (which is linked against it) are GPL-licensed + rather than LGPL-licensed (#840896) +- Don't package generic INSTALL file (#661625) +- Kill bogus rpaths on x86_64 +- Hardcode library sonames in %%files list to avoid nasty surprises in the + future +- Drop %%defattr, redundant since rpm 4.4 +- Recode docs as UTF-8 +- Don't use macros for commands +- Use tabs + +* Wed Jul 18 2012 Fedora Release Engineering - 1.4.8-3.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Thu Jan 12 2012 Fedora Release Engineering - 1.4.8-2.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Sep 6 2011 Michael Fleming - 1.4.8-1.1 +- Remove -ipv6 patch +- Bump to 1.4.8 release + +* Wed Feb 09 2011 Fedora Release Engineering - 1.4.7-0.2.20090931cvs +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Mon Aug 31 2009 Matt Domsch - 1.4.7.0.1.20090931 +- apply CVS HEAD 20090931 which includes IPv6 functions + +* Fri Jul 24 2009 Fedora Release Engineering - 1.4.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Sun Mar 08 2009 Michael Fleming - 1.4.6-1 +- Add geoiplookup6 man page +- Update to 1.4.6 + +* Mon Feb 23 2009 Fedora Release Engineering - 1.4.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Sat Nov 29 2008 Michael Fleming 1.4.5-2 +- Update to 1.4.5 +- Fix database URL locations in Perl helper scripts + +* Tue Feb 19 2008 Fedora Release Engineering - 1.4.4-2 +- Autorebuild for GCC 4.3 + +* Mon Jan 28 2008 Michael Fleming 1.4.4-1 +- New upstream release. + +* Wed Sep 5 2007 Michael Fleming 1.4.3-1 +- New upstream release. +- Fix GeoIPCity fetcher script +- Update License tag + +* Mon Feb 12 2007 Michael Fleming 1.4.2-1 +- New upstream release. + +* Mon Jan 8 2007 Michael Fleming 1.4.1-2 +- License is actually LGPL now. + +* Sun Jan 7 2007 Michael Fleming 1.4.1-1 +- New upstream release +- Add fetch-geoipdata* scripts to pull free databases automatically if + desired (bz #198137) +- README.fedora added to briefly explain above. + +* Mon Nov 27 2006 Michael Fleming 1.4.0-4 +- Fix %%install scripts to satisfy newer mock builds + +* Sun Sep 3 2006 Michael Fleming 1.4.0-3 +- Upstream upgrade +- Added LICENSE.txt file to %%doc, covering GeoIP country/city data license + (bz #198137) + +* Mon May 15 2006 Michael Fleming 1.3.17-1 +- New upstream release (minor fixes) + +* Mon May 1 2006 Michael Fleming 1.3.16-1 +- New upstream release +- Add INSTALL document to package. + +* Sat Feb 18 2006 Michael Fleming 1.3.14-3 +- Fix Obsoletes/Provides for old "geoip"-convention packages +- Move .so symlinks to -devel where they should be + +* Fri Feb 10 2006 Michael Fleming 1.3.14-2 +- Remamed to match upstream tarball name +- Removed static libraries +- Added symlinks to packages +- Mark config file noreplace + +* Sun Feb 5 2006 Michael Fleming 1.3.14-1 +- Initial review package for Extras