Wed, 22 Jan 2014 18:52:02 +0100
Update version and integrate additional IPv4 and IPv6 country databases.
geoip/geoip.spec | file | annotate | diff | comparison | revisions |
1.1 --- a/geoip/geoip.spec Tue Jul 02 21:40:10 2013 +0200 1.2 +++ b/geoip/geoip.spec Wed Jan 22 18:52:02 2014 +0100 1.3 @@ -22,7 +22,7 @@ 1.4 ## 1.5 1.6 # package version 1.7 -%define V_api_c 1.4.8 1.8 +%define V_api_c 1.6.0 1.9 %define V_api_pl 1.40 1.10 1.11 # package information 1.12 @@ -45,6 +45,8 @@ 1.13 Source0: http://geolite.maxmind.com/download/geoip/api/c/GeoIP-%{V_api_c}.tar.gz 1.14 Source1: http://www.cpan.org/modules/by-module/Geo/Geo-IP-%{V_api_pl}.tar.gz 1.15 Source2: http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz 1.16 +Source3: http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz 1.17 +Source4: http://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz 1.18 1.19 # build information 1.20 Prefix: %{l_prefix} 1.21 @@ -87,7 +89,12 @@ 1.22 1.23 %prep 1.24 %setup -q -n GeoIP-%{V_api_c} 1.25 - ( cd data && %{l_gzip} -cd %{SOURCE2} >GeoLiteCity.dat) || exit $? 1.26 + %{l_shtool} mkdir -f -p -m 755 data 1.27 + ( cd data && \ 1.28 + %{l_gzip} -cd %{SOURCE2} >GeoLiteCityIPv4.dat 1.29 + %{l_gzip} -cd %{SOURCE3} >GeoLiteCountryIPv4.dat 1.30 + %{l_gzip} -cd %{SOURCE4} >GeoLiteCountryIPv6.dat 1.31 + ) || exit $? 1.32 %if "%{with_perl}" == "yes" 1.33 %setup -q -T -D -a 1 -n GeoIP-%{V_api_c} 1.34 %endif 1.35 @@ -126,10 +133,11 @@ 1.36 rm -rf $RPM_BUILD_ROOT 1.37 %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix} \ 1.38 $RPM_BUILD_ROOT%{l_prefix}/man \ 1.39 - $RPM_BUILD_ROOT%{l_prefix}/man/man1 1.40 + $RPM_BUILD_ROOT%{l_prefix}/man/man1 \ 1.41 + $RPM_BUILD_ROOT%{l_prefix}/share/GeoIP 1.42 %{l_make} %{l_mflags} install DESTDIR="$RPM_BUILD_ROOT" 1.43 %{l_shtool} install -c -m 644 \ 1.44 - data/GeoLiteCity.dat $RPM_BUILD_ROOT%{l_prefix}/share/GeoIP 1.45 + data/*.dat $RPM_BUILD_ROOT%{l_prefix}/share/GeoIP/ 1.46 %if "%{with_perl}" == "yes" 1.47 %{l_prefix}/bin/perl-openpkg -d Geo-IP-%{V_api_pl} install 1.48 %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup