]> git.pld-linux.org Git - packages/GeoIP-db-IPASNum.git/blame - GeoIP-db-IPASNum.spec
up to 2013.03.06
[packages/GeoIP-db-IPASNum.git] / GeoIP-db-IPASNum.spec
CommitLineData
e6f3e4f6 1Summary: GeoLite IPASNum - IP to AS number translation database for GeoIP
85e25f85 2Summary(pl.UTF-8): GeoLite IPASNum - baza danych tłumaczeń adresów IP na numery AS dla GeoIP
e6f3e4f6
PG
3Name: GeoIP-db-IPASNum
4# Updated every month:
5d687ec3 5Version: 2013.03.06
e6f3e4f6
PG
6Release: 1
7License: OPEN DATA LICENSE (see LICENSE.txt)
8Group: Applications/Databases
9Source0: http://www.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz
5d687ec3 10# Source0-md5: 0e677af46de2624f258e2dedbade2ccd
e6f3e4f6 11Source1: http://www.maxmind.com/download/geoip/database/LICENSE.txt
71625f56 12# Source1-md5: a1381bd1aa0a0c91dc31b3f1e847cf4a
e6f3e4f6 13URL: http://www.maxmind.com/app/asnum
e6f3e4f6 14Requires: GeoIP-libs
85e25f85 15BuildArch: noarch
e6f3e4f6
PG
16BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18%description
85e25f85
JB
19This package contains IPv4 to AS number translation database for
20GeoIP.
21
22License disclaimer: this product includes GeoLite data created by
23MaxMind, available from <http://www.maxmind.com/>.
24
25%description -l pl.UTF-8
85e25f85
JB
26Ten pakiet zawiera bazę danych tłumaczeń adresów IPv4 na numery AS
27dla GeoIP.
e6f3e4f6 28
85e25f85
JB
29Informacja licencyjna: ten produkt zawiera dane GeoLite stworzone
30przez MaxWind, dostępne z <http://www.maxwind.com/>.
e6f3e4f6
PG
31
32%prep
a4e68051 33%setup -qcT
cb6acb9d
ER
34cp -p %{SOURCE0} .
35cp -p %{SOURCE1} .
e6f3e4f6
PG
36
37gunzip GeoIPASNum.dat.gz
38
06e308f4 39ver=$(TZ=GMT stat -c '%y' GeoIPASNum.dat | awk '{print $1}' | tr - .)
a4e68051
ER
40if [ "$ver" != %{version} ]; then
41 exit 1
42fi
43
e6f3e4f6
PG
44%install
45rm -rf $RPM_BUILD_ROOT
46install -d $RPM_BUILD_ROOT%{_datadir}/GeoIP
cb6acb9d 47cp -p GeoIPASNum.dat $RPM_BUILD_ROOT%{_datadir}/GeoIP
e6f3e4f6
PG
48
49%clean
50rm -rf $RPM_BUILD_ROOT
51
52%files
53%defattr(644,root,root,755)
54%doc *.txt
55%{_datadir}/GeoIP/*.dat
This page took 0.117849 seconds and 4 git commands to generate.