Summary: GeoLite Country - Country database for GeoIP Summary(pl.UTF-8): GeoLite Country - baza danych krajów dla GeoIP Name: GeoIP-db-Country # Updated every month: Version: 2018.10.31 Release: 1 License: CC 3.0 BY-SA Group: Applications/Databases Source0: https://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz?/GeoIP-%{version}.dat.gz # Source0-md5: d538e57ad9268fdc7955c6cf9a37c4a9 Source1: https://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz?/GeoIPv6-%{version}.dat.gz # Source1-md5: a685e71ab129b6ca4cba75f7eaeb5335 URL: https://dev.maxmind.com/geoip/legacy/geolite/ Requires: GeoIP-libs >= 1.4.5-2 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description GeoLite Country is similar to the GeoIP Country database, but is not as accurate. Should you require greater accuracy, GeoIP Country is a drop-in replacement for GeoLite Country. License disclaimer: this product includes GeoLite data created by MaxMind, available from . %description -l pl.UTF-8 GeoLite Country jest podobna do bazy danych GeoIP Country, ale nie jest tak dokładna. Jeśli wymagana jest większa dokładność, GeoIP Country jest zamiennikiem GeoLite Country. Informacja licencyjna: ten produkt zawiera dane GeoLite stworzone przez MaxMind, dostępne z . %prep %setup -qcT cp -p %{SOURCE0} . cp -p %{SOURCE1} . gzip -d GeoIP-%{version}.dat.gz GeoIPv6-%{version}.dat.gz dt4=$(TZ=GMT stat -c '%y' GeoIP-%{version}.dat | awk '{print $1}' | tr - .) dt6=$(TZ=GMT stat -c '%y' GeoIPv6-%{version}.dat | awk '{print $1}' | tr - .) if [ "$(echo $dt4 | tr -d .)" -gt "$(echo $dt6 | tr -d .)" ]; then ver=$dt4 else ver=$dt6 fi if [ "$ver" != %{version} ]; then exit 1 fi %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_datadir}/GeoIP cp -p GeoIP-%{version}.dat $RPM_BUILD_ROOT%{_datadir}/GeoIP/GeoIP.dat cp -p GeoIPv6-%{version}.dat $RPM_BUILD_ROOT%{_datadir}/GeoIP/GeoIPv6.dat %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %{_datadir}/GeoIP/*.dat