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
10 # Source0-md5: 354d8ce598706612f8e134a028fd020a
11 URL: http://dev.maxmind.com/geoip/legacy/geolite/
12 BuildRequires: tar >= 1:1.22
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 Determine country, state/region, city, US postal code, US area code,
19 metro code, latitude, and longitude information for IP addresses
22 License disclaimer: this product includes GeoLite data created by
23 MaxMind, available from <http://www.maxmind.com/>.
25 %description -l pl.UTF-8
26 Znajdź państwo, stan/region, miasto, kod pocztowy, kod regionu, kod
27 miejski, szerokość i wysokość geograficzną dla adresów IP z całego
30 Informacja licencyjna: ten produkt zawiera dane GeoLite stworzone
31 przez MaxWind, dostępne z <http://www.maxwind.com/>.
37 xz -d GeoLiteCity.dat.xz
39 ver=$(TZ=GMT stat -c '%y' GeoLiteCity.dat | awk '{print $1}' | tr - .)
40 if [ "$ver" != %{version} ]; then
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT%{_datadir}/GeoIP
47 cp -p GeoLiteCity.dat $RPM_BUILD_ROOT%{_datadir}/GeoIP
48 ln -s GeoLiteCity.dat $RPM_BUILD_ROOT%{_datadir}/GeoIP/GeoIPCity.dat
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
55 %{_datadir}/GeoIP/*.dat