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