]> git.pld-linux.org Git - packages/GeoIP-db-IPASNum.git/blob - GeoIP-db-IPASNum.spec
updated to 2018.03.24
[packages/GeoIP-db-IPASNum.git] / GeoIP-db-IPASNum.spec
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:        2018.01.13
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?/GeoIPASNum-%{version}.dat.gz
10 # Source0-md5:  06afdee617adffa092c6a09294660fde
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 MaxMind, dostępne z <http://www.maxmind.com/>.
29
30 %prep
31 %setup -qcT
32 cp -p %{SOURCE0} GeoIPASNum.dat.gz
33 gunzip GeoIPASNum.dat.gz
34
35 ver=$(TZ=GMT stat -c '%y' GeoIPASNum.dat | awk '{print $1}' | tr - .)
36 if [ "$ver" != %{version} ]; then
37         exit 1
38 fi
39
40 %install
41 rm -rf $RPM_BUILD_ROOT
42 install -d $RPM_BUILD_ROOT%{_datadir}/GeoIP
43 cp -p GeoIPASNum.dat $RPM_BUILD_ROOT%{_datadir}/GeoIP
44
45 %clean
46 rm -rf $RPM_BUILD_ROOT
47
48 %files
49 %defattr(644,root,root,755)
50 %{_datadir}/GeoIP/*.dat
This page took 0.055427 seconds and 3 git commands to generate.