]>
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: 2015.06.14 | |
6 | Release: 1 | |
7 | License: CC 3.0 BY-SA | |
8 | Group: Applications/Databases | |
9 | Source0: http://download.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz | |
10 | # Source0-md5: dc026c32b87ed17503faa96977e6dac9 | |
11 | URL: http://dev.maxmind.com/geoip/legacy/geolite/ | |
12 | Requires: GeoIP-libs | |
13 | BuildArch: noarch | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %description | |
17 | This package contains IPv4 to AS number translation database for | |
18 | GeoIP. | |
19 | ||
20 | License disclaimer: this product includes GeoLite data created by | |
21 | MaxMind, available from <http://www.maxmind.com/>. | |
22 | ||
23 | %description -l pl.UTF-8 | |
24 | Ten pakiet zawiera bazę danych tłumaczeń adresów IPv4 na numery AS dla | |
25 | GeoIP. | |
26 | ||
27 | Informacja licencyjna: ten produkt zawiera dane GeoLite stworzone | |
28 | przez MaxWind, dostępne z <http://www.maxwind.com/>. | |
29 | ||
30 | %prep | |
31 | %setup -qcT | |
32 | cp -p %{SOURCE0} . | |
33 | ||
34 | gunzip GeoIPASNum.dat.gz | |
35 | ||
36 | ver=$(TZ=GMT stat -c '%y' GeoIPASNum.dat | awk '{print $1}' | tr - .) | |
37 | if [ "$ver" != %{version} ]; then | |
38 | exit 1 | |
39 | fi | |
40 | ||
41 | %install | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | install -d $RPM_BUILD_ROOT%{_datadir}/GeoIP | |
44 | cp -p GeoIPASNum.dat $RPM_BUILD_ROOT%{_datadir}/GeoIP | |
45 | ||
46 | %clean | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %files | |
50 | %defattr(644,root,root,755) | |
51 | %{_datadir}/GeoIP/*.dat |