]>
Commit | Line | Data |
---|---|---|
2b240ee7 | 1 | Summary: GeoLite Country - Country database for GeoIP |
8321cd19 | 2 | Summary(pl.UTF-8): GeoLite Country - baza danych krajów dla GeoIP |
2b240ee7 PG |
3 | Name: GeoIP-db-Country |
4 | # Updated every month: | |
6b423eeb | 5 | Version: 2013.04.03 |
2b240ee7 PG |
6 | Release: 1 |
7 | License: OPEN DATA LICENSE (see LICENSE.txt) | |
8 | Group: Applications/Databases | |
e252b63d | 9 | Source0: http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz |
6b423eeb | 10 | # Source0-md5: 9701baf889726eaed768d8aa7ad8243d |
2b240ee7 | 11 | Source1: http://www.maxmind.com/download/geoip/database/LICENSE.txt |
e252b63d | 12 | # Source1-md5: a1381bd1aa0a0c91dc31b3f1e847cf4a |
2b240ee7 | 13 | URL: http://www.maxmind.com/app/geolitecountry |
2b240ee7 | 14 | Requires: GeoIP-libs |
8321cd19 | 15 | BuildArch: noarch |
2b240ee7 PG |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
17 | ||
18 | %description | |
8321cd19 JB |
19 | GeoLite Country is similar to the GeoIP Country database, but is not |
20 | as accurate. Should you require greater accuracy, GeoIP Country is a | |
21 | drop-in replacement for GeoLite Country. | |
22 | ||
23 | License disclaimer: this product includes GeoLite data created by | |
24 | MaxMind, available from <http://www.maxmind.com/>. | |
25 | ||
26 | %description -l pl.UTF-8 | |
8321cd19 JB |
27 | GeoLite Country jest podobna do bazy danych GeoIP Country, ale nie |
28 | jest tak dokładna. Jeśli wymagana jest większa dokładność, GeoIP | |
29 | Country jest zamiennikiem GeoLite Country. | |
2b240ee7 | 30 | |
8321cd19 JB |
31 | Informacja licencyjna: ten produkt zawiera dane GeoLite stworzone |
32 | przez MaxWind, dostępne z <http://www.maxwind.com/>. | |
2b240ee7 PG |
33 | |
34 | %prep | |
7a5cca84 | 35 | %setup -qcT |
081d65d3 ER |
36 | cp -p %{SOURCE0} . |
37 | cp -p %{SOURCE1} . | |
2b240ee7 PG |
38 | |
39 | gunzip GeoIP.dat.gz | |
40 | ||
e5288fe1 | 41 | ver=$(TZ=GMT stat -c '%y' GeoIP.dat | awk '{print $1}' | tr - .) |
7a5cca84 ER |
42 | if [ "$ver" != %{version} ]; then |
43 | exit 1 | |
44 | fi | |
45 | ||
2b240ee7 PG |
46 | %install |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | install -d $RPM_BUILD_ROOT%{_datadir}/GeoIP | |
081d65d3 | 49 | cp -p GeoIP.dat $RPM_BUILD_ROOT%{_datadir}/GeoIP |
2b240ee7 PG |
50 | |
51 | %clean | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %files | |
55 | %defattr(644,root,root,755) | |
56 | %doc *.txt | |
57 | %{_datadir}/GeoIP/*.dat |