]> git.pld-linux.org Git - packages/xtables-geoip.git/blame - xtables-geoip.spec
updated to 20181024
[packages/xtables-geoip.git] / xtables-geoip.spec
CommitLineData
a9e058f3 1Summary: GeoIP database files for xt_geoip
b7f9561d 2Summary(pl.UTF-8): Pliki baz danych GeoIP dla xt_geoip
a9e058f3 3Name: xtables-geoip
9513858d 4Version: 20181024
c1500f15 5Release: 1
2ce9a429 6License: GPL, Open Data License
a9e058f3 7Group: Networking/Admin
26944ea1
AO
8Source0: http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country-CSV.zip
9# Source0-md5: 1f5524d5ac54a779831bffc57d91e2a2
10Source1: http://geolite.maxmind.com/download/geoip/database/LICENSE.txt
11# Source1-md5: a1381bd1aa0a0c91dc31b3f1e847cf4a
12Source2: http://sourceforge.net/p/xtables-addons/xtables-addons/ci/master/tree/geoip/xt_geoip_build?format=raw&/xt_geoip_build
13# Source2-md5: 462ca00be38471d19dc6e0f32c098275
b7f9561d 14URL: http://www.maxmind.com/
e77737fd 15BuildRequires: perl-Text-CSV_XS >= 0.69
2ce9a429 16BuildRequires: perl-base
2ec6929c 17BuildRequires: rpm >= 4.4.9-56
3be77cb9 18BuildRequires: unzip
a9e058f3 19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
1f56ba0c
ER
21%define dbdir /usr/share/xt_geoip
22
14600c7f
ER
23# no debuginfo to package
24%define _enable_debug_packages 0
25
a9e058f3 26%description
27The package contains the GeoIP definition files (which IP addresses
28belong to which country) that are needed for Xtables-addons's xt_geoip
29module.
30
b7f9561d
JB
31%description -l pl.UTF-8
32Ten pakiet zawiera pliki definicji GeoIP (określające, które adresy IP
33należą do jakiego kraju), wymagane przez moduł xt_geoip z pakietu
34xtables-addons.
35
a9e058f3 36%prep
2ce9a429 37%setup -qc
2ce9a429 38
26944ea1 39ver=$(ls -d GeoLite2-Country-CSV_* | head -1 | %{__sed} 's/^GeoLite2-Country-CSV_//')
2ce9a429
ER
40if [ "$ver" != %{version} ]; then
41 exit 1
42fi
43
26944ea1 44cp -p %{SOURCE1} .
2ce9a429
ER
45
46%build
276dcb61
AO
47%{__mkdir} out
48%{__perl} %{SOURCE2} -S GeoLite2-Country-CSV_%{version} -D out > ranges.txt
a9e058f3 49
50%install
51rm -rf $RPM_BUILD_ROOT
a29328a9 52install -d $RPM_BUILD_ROOT%{dbdir}
276dcb61 53cp -a out/* $RPM_BUILD_ROOT%{dbdir}
a9e058f3 54
b7f9561d
JB
55%clean
56rm -rf $RPM_BUILD_ROOT
57
a9e058f3 58%files
59%defattr(644,root,root,755)
e399ee80 60%doc LICENSE.txt ranges.txt
276dcb61 61%{dbdir}
This page took 0.085216 seconds and 4 git commands to generate.