]> git.pld-linux.org Git - packages/GeoIP-db-Country.git/blame - GeoIP-db-Country.spec
updated to 2018.10.31
[packages/GeoIP-db-Country.git] / GeoIP-db-Country.spec
CommitLineData
2b240ee7 1Summary: GeoLite Country - Country database for GeoIP
8321cd19 2Summary(pl.UTF-8): GeoLite Country - baza danych krajów dla GeoIP
2b240ee7
PG
3Name: GeoIP-db-Country
4# Updated every month:
d3aca3ff 5Version: 2018.10.31
1afeedcd 6Release: 1
0031add8 7License: CC 3.0 BY-SA
2b240ee7 8Group: Applications/Databases
dc1de192 9Source0: https://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz?/GeoIP-%{version}.dat.gz
586863df 10# Source0-md5: d538e57ad9268fdc7955c6cf9a37c4a9
dc1de192 11Source1: https://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz?/GeoIPv6-%{version}.dat.gz
d3aca3ff 12# Source1-md5: a685e71ab129b6ca4cba75f7eaeb5335
dc1de192 13URL: https://dev.maxmind.com/geoip/legacy/geolite/
9aac1969 14Requires: GeoIP-libs >= 1.4.5-2
8321cd19 15BuildArch: noarch
2b240ee7
PG
16BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18%description
8321cd19
JB
19GeoLite Country is similar to the GeoIP Country database, but is not
20as accurate. Should you require greater accuracy, GeoIP Country is a
21drop-in replacement for GeoLite Country.
22
23License disclaimer: this product includes GeoLite data created by
24MaxMind, available from <http://www.maxmind.com/>.
25
26%description -l pl.UTF-8
8321cd19
JB
27GeoLite Country jest podobna do bazy danych GeoIP Country, ale nie
28jest tak dokładna. Jeśli wymagana jest większa dokładność, GeoIP
29Country jest zamiennikiem GeoLite Country.
2b240ee7 30
8321cd19 31Informacja licencyjna: ten produkt zawiera dane GeoLite stworzone
21d90516 32przez MaxMind, dostępne z <http://www.maxmind.com/>.
2b240ee7
PG
33
34%prep
7a5cca84 35%setup -qcT
081d65d3 36cp -p %{SOURCE0} .
5e7bac1a 37cp -p %{SOURCE1} .
2b240ee7 38
e615bf03
ER
39gzip -d GeoIP-%{version}.dat.gz GeoIPv6-%{version}.dat.gz
40dt4=$(TZ=GMT stat -c '%y' GeoIP-%{version}.dat | awk '{print $1}' | tr - .)
dc1de192 41dt6=$(TZ=GMT stat -c '%y' GeoIPv6-%{version}.dat | awk '{print $1}' | tr - .)
e615bf03
ER
42if [ "$(echo $dt4 | tr -d .)" -gt "$(echo $dt6 | tr -d .)" ]; then
43 ver=$dt4
44else
45 ver=$dt6
46fi
7a5cca84
ER
47if [ "$ver" != %{version} ]; then
48 exit 1
49fi
50
2b240ee7
PG
51%install
52rm -rf $RPM_BUILD_ROOT
53install -d $RPM_BUILD_ROOT%{_datadir}/GeoIP
5e7bac1a
AM
54cp -p GeoIP-%{version}.dat $RPM_BUILD_ROOT%{_datadir}/GeoIP/GeoIP.dat
55cp -p GeoIPv6-%{version}.dat $RPM_BUILD_ROOT%{_datadir}/GeoIP/GeoIPv6.dat
2b240ee7
PG
56
57%clean
58rm -rf $RPM_BUILD_ROOT
59
60%files
61%defattr(644,root,root,755)
2b240ee7 62%{_datadir}/GeoIP/*.dat
This page took 0.050049 seconds and 4 git commands to generate.