]>
Commit | Line | Data |
---|---|---|
e6f3e4f6 | 1 | Summary: GeoLite IPASNum - IP to AS number translation database for GeoIP |
85e25f85 | 2 | Summary(pl.UTF-8): GeoLite IPASNum - baza danych tłumaczeń adresów IP na numery AS dla GeoIP |
e6f3e4f6 PG |
3 | Name: GeoIP-db-IPASNum |
4 | # Updated every month: | |
ec14a280 | 5 | Version: 2013.08.20 |
e6f3e4f6 PG |
6 | Release: 1 |
7 | License: OPEN DATA LICENSE (see LICENSE.txt) | |
8 | Group: Applications/Databases | |
9 | Source0: http://www.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz | |
ec14a280 | 10 | # Source0-md5: 7787b1b75626cef57680c809cd9ca059 |
e6f3e4f6 | 11 | Source1: http://www.maxmind.com/download/geoip/database/LICENSE.txt |
71625f56 | 12 | # Source1-md5: a1381bd1aa0a0c91dc31b3f1e847cf4a |
e6f3e4f6 | 13 | URL: http://www.maxmind.com/app/asnum |
e6f3e4f6 | 14 | Requires: GeoIP-libs |
85e25f85 | 15 | BuildArch: noarch |
e6f3e4f6 PG |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
17 | ||
18 | %description | |
85e25f85 JB |
19 | This package contains IPv4 to AS number translation database for |
20 | GeoIP. | |
21 | ||
22 | License disclaimer: this product includes GeoLite data created by | |
23 | MaxMind, available from <http://www.maxmind.com/>. | |
24 | ||
25 | %description -l pl.UTF-8 | |
85e25f85 JB |
26 | Ten pakiet zawiera bazę danych tłumaczeń adresów IPv4 na numery AS |
27 | dla GeoIP. | |
e6f3e4f6 | 28 | |
85e25f85 JB |
29 | Informacja licencyjna: ten produkt zawiera dane GeoLite stworzone |
30 | przez MaxWind, dostępne z <http://www.maxwind.com/>. | |
e6f3e4f6 PG |
31 | |
32 | %prep | |
a4e68051 | 33 | %setup -qcT |
cb6acb9d ER |
34 | cp -p %{SOURCE0} . |
35 | cp -p %{SOURCE1} . | |
e6f3e4f6 PG |
36 | |
37 | gunzip GeoIPASNum.dat.gz | |
38 | ||
06e308f4 | 39 | ver=$(TZ=GMT stat -c '%y' GeoIPASNum.dat | awk '{print $1}' | tr - .) |
a4e68051 ER |
40 | if [ "$ver" != %{version} ]; then |
41 | exit 1 | |
42 | fi | |
43 | ||
e6f3e4f6 PG |
44 | %install |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | install -d $RPM_BUILD_ROOT%{_datadir}/GeoIP | |
cb6acb9d | 47 | cp -p GeoIPASNum.dat $RPM_BUILD_ROOT%{_datadir}/GeoIP |
e6f3e4f6 PG |
48 | |
49 | %clean | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %files | |
53 | %defattr(644,root,root,755) | |
54 | %doc *.txt | |
55 | %{_datadir}/GeoIP/*.dat |