]> git.pld-linux.org Git - packages/GeoIP-db-Country.git/blame - GeoIP-db-Country.spec
updated to 2016.12.06
[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:
0dba82dc 5Version: 2016.12.06
a820a9e4 6Release: 1
0031add8 7License: CC 3.0 BY-SA
2b240ee7 8Group: Applications/Databases
5e7bac1a 9Source0: http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz?/GeoIP-%{version}.dat.gz
0dba82dc 10# Source0-md5: 882c7236253fc6fc542841678c261b9d
5e7bac1a 11Source1: http://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz?/GeoIPv6-%{version}.dat.gz
0dba82dc 12# Source1-md5: 2e2967dfe4d54f29903c1bd55c06d322
0031add8 13URL: http://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 - .)
41dt5=$(TZ=GMT stat -c '%y' GeoIP-%{version}.dat | awk '{print $1}' | tr - .)
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.106407 seconds and 4 git commands to generate.