]>
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: | |
2feb74a1 | 5 | Version: 2016.08.01 |
277ca2c3 | 6 | Release: 1 |
ed10f135 | 7 | License: CC 3.0 BY-SA |
e6f3e4f6 | 8 | Group: Applications/Databases |
c6cd6dde | 9 | Source0: http://download.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz?/GeoIPASNum-%{version}.dat.gz |
2feb74a1 | 10 | # Source0-md5: 3ca3b61367aa4c00ef7f27d63f6f9c3f |
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 | 27 | Informacja licencyjna: ten produkt zawiera dane GeoLite stworzone |
6d79c1a8 | 28 | przez MaxMind, dostępne z <http://www.maxmind.com/>. |
e6f3e4f6 PG |
29 | |
30 | %prep | |
a4e68051 | 31 | %setup -qcT |
16547987 | 32 | cp -p %{SOURCE0} GeoIPASNum.dat.gz |
e6f3e4f6 PG |
33 | gunzip GeoIPASNum.dat.gz |
34 | ||
06e308f4 | 35 | ver=$(TZ=GMT stat -c '%y' GeoIPASNum.dat | awk '{print $1}' | tr - .) |
a4e68051 ER |
36 | if [ "$ver" != %{version} ]; then |
37 | exit 1 | |
38 | fi | |
39 | ||
e6f3e4f6 PG |
40 | %install |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | install -d $RPM_BUILD_ROOT%{_datadir}/GeoIP | |
cb6acb9d | 43 | cp -p GeoIPASNum.dat $RPM_BUILD_ROOT%{_datadir}/GeoIP |
e6f3e4f6 PG |
44 | |
45 | %clean | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
48 | %files | |
49 | %defattr(644,root,root,755) | |
e6f3e4f6 | 50 | %{_datadir}/GeoIP/*.dat |