3 # - Requires and BuildRequires with proper versions
5 %define version_base 2.3.0
6 %define version_tstamp 20070828
7 Summary: IP sets utility
8 Summary(pl.UTF-8): Narzędzie do zarządzania zbiorami IP
10 Version: %{version_base}_%{version_tstamp}
13 Group: Networking/Admin
14 Source0: http://ipset.netfilter.org/%{name}-%{version_base}-%{version_tstamp}.tar.bz2
15 # Source0-md5: 9e17798dfd8ed87c63a1f3498f9fe64d
17 Patch0: %{name}-no_kernel_headers.patch
18 URL: http://ipset.netfilter.org/
19 BuildRequires: linux-libc-headers >= 7:2.6.22.1-2
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 IP sets are a framework inside the Linux 2.4.x and 2.6.x kernel, which
24 can be administered by the ipset utility. Depending on the type,
25 currently an IP set may store IP addresses, (TCP/UDP) port numbers or
26 IP addresses with MAC addresses in a way, which ensures lightning
27 speed when matching an entry against a set.
29 %description -l pl.UTF-8
30 Zbiory IP to szkielet w jądrze Linuksa 2.4.x i 2.6.x, którym można
31 administrować przy użyciu narzędzia ipset. W zależności od rodzaju
32 aktualnie zbiór IP może przechowywać adresy IP, numery portów
33 (TCP/UDP) lub adresy IP z adresami MAC - w sposób zapewniający
34 maksymalną szybkość przy dopasowywaniu elementu do zbioru.
37 Summary: Header files for ipset interface
38 Summary(pl.UTF-8): Pliki nagłówkowe do interfejsu ipset
39 Group: Development/Libraries
42 Header files for ipset interface.
44 %description devel -l pl.UTF-8
45 Pliki nagłówkowe do interfejsu ipset.
48 Summary: Ipset init (RedHat style)
49 Group: Networking/Admin
50 Requires(post,preun): /sbin/chkconfig
55 Ipset initialization script.
58 %setup -qn %{name}-%{version_base}
66 BINDIR="%{_sbindir}" \
67 COPT_FLAGS:="%{rpmcflags}"
70 rm -rf $RPM_BUILD_ROOT
71 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_includedir}}
74 DESTDIR="$RPM_BUILD_ROOT" \
80 install *.h $RPM_BUILD_ROOT%{_includedir}
82 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
85 rm -rf $RPM_BUILD_ROOT
88 /sbin/chkconfig --add %{name}
91 if [ "$1" = "0" ]; then
92 /sbin/chkconfig --del %{name}
96 %defattr(644,root,root,755)
97 %doc ChangeLog ChangeLog.ippool TODO
98 %attr(755,root,root) %{_sbindir}/*
100 %attr(755,root,root) %{_libdir}/ipset/*.so
104 %defattr(644,root,root,755)
108 %defattr(644,root,root,755)
109 %attr(754,root,root) /etc/rc.d/init.d/*