]> git.pld-linux.org Git - packages/csv2bin.git/blob - csv2bin.spec
c7a31c6879a23b0cdeb0a179d46544f1d99c905f
[packages/csv2bin.git] / csv2bin.spec
1 Summary:        Convert a CSV database to format suitable for GeoIP library
2 Name:           csv2bin
3 Version:        20041103
4 Release:        0.1
5 License:        GPL v2
6 Group:          Applications
7 Source0:        http://people.netfilter.org/peejix/GeoIP/tools/%{name}-%{version}.tar.gz
8 # Source0-md5:  b92bff0fc2adba02a48cfbb4b401205c
9 URL:            http://people.netfilter.org/peejix/GeoIP/tools/
10 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
11
12 %description
13 csv2bin is a tool specially written for the iptables/netfilter's GeoIP
14 match purpose. This file won't discuss about the iptables/netfilter's
15 framework. <www.netfilter.org> for details.
16
17 csv2bin's only task is to convert a comma-seperated-value database
18 containing all IPv4 subnets and their associated countries to an
19 understable binary format for the iptables' GeoIP shared library.
20
21 You can create your own database (perhaps you feel sado) or simply
22 gets the latest GeoIP's free database from MaxMind. This product
23 includes GeoIP data created by MaxMind, available from
24 <http://maxmind.com/>
25
26 %prep
27 %setup -q -n %{name}
28
29 %build
30 %{__make} \
31         CC="%{__cc}" \
32         OPTION="%{rpmcflags}"
33
34 %install
35 rm -rf $RPM_BUILD_ROOT
36 install -d $RPM_BUILD_ROOT%{_bindir}
37 install %{name} $RPM_BUILD_ROOT%{_bindir}/%{name}
38
39 %clean
40 rm -rf $RPM_BUILD_ROOT
41
42 %files
43 %defattr(644,root,root,755)
44 %doc README
45 %attr(755,root,root) %{_bindir}/csv2bin
This page took 1.732391 seconds and 3 git commands to generate.