]>
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: | |
59c00612 | 5 | Version: 2014.07.14 |
e6f3e4f6 | 6 | Release: 1 |
ed10f135 | 7 | License: CC 3.0 BY-SA |
e6f3e4f6 PG |
8 | Group: Applications/Databases |
9 | Source0: http://www.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz | |
59c00612 | 10 | # Source0-md5: de10604b44548f31f8a1b2108fb9c2ed |
ed10f135 | 11 | URL: http://dev.maxmind.com/geoip/legacy/geolite/ |
e6f3e4f6 | 12 | Requires: GeoIP-libs |
85e25f85 | 13 | BuildArch: noarch |
e6f3e4f6 PG |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
15 | ||
16 | %description | |
85e25f85 JB |
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 | |
ed10f135 ER |
24 | Ten pakiet zawiera bazę danych tłumaczeń adresów IPv4 na numery AS dla |
25 | GeoIP. | |
e6f3e4f6 | 26 | |
85e25f85 JB |
27 | Informacja licencyjna: ten produkt zawiera dane GeoLite stworzone |
28 | przez MaxWind, dostępne z <http://www.maxwind.com/>. | |
e6f3e4f6 PG |
29 | |
30 | %prep | |
a4e68051 | 31 | %setup -qcT |
cb6acb9d | 32 | cp -p %{SOURCE0} . |
e6f3e4f6 PG |
33 | |
34 | gunzip GeoIPASNum.dat.gz | |
35 | ||
06e308f4 | 36 | ver=$(TZ=GMT stat -c '%y' GeoIPASNum.dat | awk '{print $1}' | tr - .) |
a4e68051 ER |
37 | if [ "$ver" != %{version} ]; then |
38 | exit 1 | |
39 | fi | |
40 | ||
e6f3e4f6 PG |
41 | %install |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | install -d $RPM_BUILD_ROOT%{_datadir}/GeoIP | |
cb6acb9d | 44 | cp -p GeoIPASNum.dat $RPM_BUILD_ROOT%{_datadir}/GeoIP |
e6f3e4f6 PG |
45 | |
46 | %clean | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %files | |
50 | %defattr(644,root,root,755) | |
e6f3e4f6 | 51 | %{_datadir}/GeoIP/*.dat |