]>
Commit | Line | Data |
---|---|---|
1 | Summary: GeoLite IPASNum - IP to AS number translation database for GeoIP | |
2 | Summary(pl.UTF-8): GeoLite IPASNum - baza danych tłumaczeń adresów IP na numery AS dla GeoIP | |
3 | Name: GeoIP-db-IPASNum | |
4 | # Updated every month: | |
5 | Version: 2011.02.02 | |
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 | |
10 | # Source0-md5: 3b9e3af4bc050efa48e44d5f756fc9a6 | |
11 | Source1: http://www.maxmind.com/download/geoip/database/LICENSE.txt | |
12 | # Source1-md5: a1381bd1aa0a0c91dc31b3f1e847cf4a | |
13 | URL: http://www.maxmind.com/app/asnum | |
14 | Requires: GeoIP-libs | |
15 | BuildArch: noarch | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %description | |
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 | |
26 | Ten pakiet zawiera bazę danych tłumaczeń adresów IPv4 na numery AS | |
27 | dla GeoIP. | |
28 | ||
29 | Informacja licencyjna: ten produkt zawiera dane GeoLite stworzone | |
30 | przez MaxWind, dostępne z <http://www.maxwind.com/>. | |
31 | ||
32 | %prep | |
33 | %setup -qcT | |
34 | cp -a %{SOURCE0} . | |
35 | cp -a %{SOURCE1} . | |
36 | ||
37 | gunzip GeoIPASNum.dat.gz | |
38 | ||
39 | ver=$(stat -c '%y' GeoIPASNum.dat | awk '{print $1}' | tr - .) | |
40 | if [ "$ver" != %{version} ]; then | |
41 | exit 1 | |
42 | fi | |
43 | ||
44 | %install | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | install -d $RPM_BUILD_ROOT%{_datadir}/GeoIP | |
47 | cp -a GeoIPASNum.dat $RPM_BUILD_ROOT%{_datadir}/GeoIP | |
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 |