Summary: GeoLite City - City database for GeoIP Summary(pl.UTF-8): GeoLite City - baza danych miast dla GeoIP Name: GeoIP-db-City # Updated every month: Version: 2014.01.08 Release: 1 License: CC 3.0 BY-SA Group: Applications/Databases Source0: http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.xz # Source0-md5: 36edc01db026ba88557b061ce8b767aa URL: http://dev.maxmind.com/geoip/legacy/geolite/ BuildRequires: tar >= 1:1.22 BuildRequires: xz BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Determine country, state/region, city, US postal code, US area code, metro code, latitude, and longitude information for IP addresses worldwide. License disclaimer: this product includes GeoLite data created by MaxMind, available from . %description -l pl.UTF-8 Znajdź państwo, stan/region, miasto, kod pocztowy, kod regionu, kod miejski, szerokość i wysokość geograficzną dla adresów IP z całego świata. Informacja licencyjna: ten produkt zawiera dane GeoLite stworzone przez MaxWind, dostępne z . %prep %setup -qcT cp -p %{SOURCE0} . xz -d GeoLiteCity.dat.xz ver=$(TZ=GMT stat -c '%y' GeoLiteCity.dat | awk '{print $1}' | tr - .) if [ "$ver" != %{version} ]; then exit 1 fi %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_datadir}/GeoIP cp -p GeoLiteCity.dat $RPM_BUILD_ROOT%{_datadir}/GeoIP ln -s GeoLiteCity.dat $RPM_BUILD_ROOT%{_datadir}/GeoIP/GeoIPCity.dat %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %{_datadir}/GeoIP/*.dat