2 # - build from source using http://jengelh.medozas.de/files/geoip/geoip_src.tar.bz2
3 # - make it arch dependant and package only LE or BE dirs?
4 Summary: GeoIP database files for xt_geoip
9 Group: Networking/Admin
10 URL: http://www.maxmind.com/
11 Source0: http://jengelh.medozas.de/files/geoip/geoip_iv0_database-%{version}.tar.bz2
12 # Source0-md5: 896cb23ada582ac945dcd4af305884fe
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 %define dbdir /usr/share/xt_geoip
19 The package contains the GeoIP definition files (which IP addresses
20 belong to which country) that are needed for Xtables-addons's xt_geoip
27 rm -rf $RPM_BUILD_ROOT
28 install -d $RPM_BUILD_ROOT%{dbdir}/{B,L}E
29 cp -a geoip/BE/* $RPM_BUILD_ROOT%{dbdir}/BE
30 cp -a geoip/LE/* $RPM_BUILD_ROOT%{dbdir}/LE
33 rm -rf $RPM_BUILD_ROOT
36 %defattr(644,root,root,755)