]> git.pld-linux.org Git - packages/GeoIP-db-IPASNum.git/blob - GeoIP-db-IPASNum.spec
fbb38e8a4c1fc6f36e2d847ae856acf77c06c061
[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:        2013.07.23
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:  469b79156c340612ee8cd9f3dceee4ef
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 -p %{SOURCE0} .
35 cp -p %{SOURCE1} .
36
37 gunzip GeoIPASNum.dat.gz
38
39 ver=$(TZ=GMT 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 -p 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
This page took 0.069776 seconds and 2 git commands to generate.