1 Summary: GeoLite City - City database for GeoIP
2 Summary(pl.UTF-8): GeoLite City - baza danych miast dla GeoIP
8 Group: Applications/Databases
9 Source0: http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.xz?/GeoLiteCity-%{version}.dat.xz
10 # Source0-md5: bf521ddc38791505915fe1123f0432c6
11 Source1: http://geolite.maxmind.com/download/geoip/database/GeoLiteCityv6-beta/GeoLiteCityv6.dat.gz?/GeoLiteCityv6-%{version}.dat.gz
12 # Source1-md5: 18a902730477f26064e38872092eb12f
13 URL: http://dev.maxmind.com/geoip/legacy/geolite/
14 BuildRequires: tar >= 1:1.22
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 Determine country, state/region, city, US postal code, US area code,
21 metro code, latitude, and longitude information for IP addresses
24 License disclaimer: this product includes GeoLite data created by
25 MaxMind, available from <http://www.maxmind.com/>.
27 %description -l pl.UTF-8
28 Znajdź państwo, stan/region, miasto, kod pocztowy, kod regionu, kod
29 miejski, szerokość i wysokość geograficzną dla adresów IP z całego
32 Informacja licencyjna: ten produkt zawiera dane GeoLite stworzone
33 przez MaxWind, dostępne z <http://www.maxwind.com/>.
40 xz -d GeoLiteCity-%{version}.dat.xz
41 gunzip GeoLiteCityv6-%{version}.dat.gz
43 ver=$(TZ=GMT stat -c '%y' GeoLiteCity-%{version}.dat | awk '{print $1}' | tr - .)
44 if [ "$ver" != %{version} ]; then
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT%{_datadir}/GeoIP
51 cp -p GeoLiteCity-%{version}.dat $RPM_BUILD_ROOT%{_datadir}/GeoIP/GeoLiteCity.dat
52 ln -s GeoLiteCity.dat $RPM_BUILD_ROOT%{_datadir}/GeoIP/GeoIPCity.dat
54 cp -p GeoLiteCityv6-%{version}.dat $RPM_BUILD_ROOT%{_datadir}/GeoIP/GeoLiteCityv6.dat
55 ln -s GeoLiteCityv6.dat $RPM_BUILD_ROOT%{_datadir}/GeoIP/GeoIPCityv6.dat
58 rm -rf $RPM_BUILD_ROOT
61 %defattr(644,root,root,755)
62 %{_datadir}/GeoIP/*.dat