diff --git a/Geo-db-LiteCountry-autoupdate b/Geo-db-LiteCountry-autoupdate new file mode 100644 index 0000000..399d994 --- /dev/null +++ b/Geo-db-LiteCountry-autoupdate @@ -0,0 +1,4 @@ +#!/bin/bash +[ $1 ] || exit 1 +curl http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz -o GeoIP-$1.dat.gz +curl http://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz -o GeoIPv6-$1.dat.gz diff --git a/Geo-db-LiteCountry.spec b/Geo-db-LiteCountry.spec index cdd1f5a..cddddb1 100644 --- a/Geo-db-LiteCountry.spec +++ b/Geo-db-LiteCountry.spec @@ -1,14 +1,16 @@ Name: Geo-db-LiteCountry -Version: 20080803 -Release: 2mamba +Version: 20181126 +Release: 1mamba Summary: GeoLite LiteCountry - Country database for GeoIP Group: Applications/Databases Vendor: openmamba Distribution: openmamba -Packager: Automatic Build System +Packager: Silvan Calarco URL: http://www.maxmind.com/app/geolitecountry -Source0: http://www.maxmind.com/download/geoip/database/GeoIP.dat.gz +Source0: http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP-%{version}.dat.gz Source1: http://www.maxmind.com/download/geoip/database/LICENSE.txt +Source2: http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIPv6-%{version}.dat.gz +Source3: Geo-db-LiteCountry-autoupdate License: OPEN DATA LICENSE ## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-END @@ -34,7 +36,9 @@ or use of this database must display the following acknowledgment: %setup -q -c -T cp %{SOURCE0} . cp %{SOURCE1} . -gunzip GeoIP.dat.gz +cp %{SOURCE2} . +gunzip GeoIP-%{version}.dat.gz +gunzip GeoIPv6-%{version}.dat.gz %build @@ -42,7 +46,8 @@ gunzip GeoIP.dat.gz [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" install -d %{buildroot}%{_datadir}/GeoIP -install GeoIP.dat %{buildroot}%{_datadir}/GeoIP +install GeoIP-%{version}.dat %{buildroot}%{_datadir}/GeoIP/GeoIP.dat +install GeoIPv6-%{version}.dat %{buildroot}%{_datadir}/GeoIP/GeoIPv6.dat %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" @@ -54,6 +59,9 @@ install GeoIP.dat %{buildroot}%{_datadir}/GeoIP %doc *.txt %changelog +* Mon Nov 26 2018 Silvan Calarco 20181126-1mamba +- update to 20181126 + * Thu Aug 22 2013 Automatic Build System 20080803-2mamba - automatic rebuild by autodist diff --git a/GeoIP-20181126.dat.gz b/GeoIP-20181126.dat.gz new file mode 100644 index 0000000..e3ca596 Binary files /dev/null and b/GeoIP-20181126.dat.gz differ diff --git a/GeoIP.dat.gz b/GeoIP.dat.gz deleted file mode 100644 index e77376e..0000000 Binary files a/GeoIP.dat.gz and /dev/null differ diff --git a/GeoIPv6-20181126.dat.gz b/GeoIPv6-20181126.dat.gz new file mode 100644 index 0000000..aa143d4 Binary files /dev/null and b/GeoIPv6-20181126.dat.gz differ