]> git.pld-linux.org Git - packages/ipset.git/blame - ipset.spec
- initial revision.
[packages/ipset.git] / ipset.spec
CommitLineData
bc9c8d01
JK
1#
2# TODO:
bc9c8d01
JK
3# - Requires and BuildRequires with proper versions
4#
5Summary: IP sets utility
cb832b79 6Summary(pl.UTF-8): Narzędzie do zarządzania zbiorami IP
bc9c8d01 7Name: ipset
70a6eeb2 8%define version_base 2.3.0
9%define version_tstamp 20070828
bc9c8d01 10Version: %{version_base}_%{version_tstamp}
eeafeb5f 11Release: 1
bc9c8d01
JK
12License: GPL
13Group: Networking/Admin
14Source0: http://ipset.netfilter.org/%{name}-%{version_base}-%{version_tstamp}.tar.bz2
70a6eeb2 15# Source0-md5: 9e17798dfd8ed87c63a1f3498f9fe64d
c6a85438 16Patch0: %{name}-no_kernel_headers.patch
bc9c8d01 17URL: http://ipset.netfilter.org/
70a6eeb2 18BuildRequires: linux-libc-headers >= 7:2.6.22.1-2
bc9c8d01
JK
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
bc9c8d01
JK
21%description
22IP sets are a framework inside the Linux 2.4.x and 2.6.x kernel, which
23can be administered by the ipset utility. Depending on the type,
24currently an IP set may store IP addresses, (TCP/UDP) port numbers or
25IP addresses with MAC addresses in a way, which ensures lightning
26speed when matching an entry against a set.
27
00760b7e
JR
28%description -l pl.UTF-8
29Zbiory IP to szkielet w jądrze Linuksa 2.4.x i 2.6.x, którym można
30administrować przy użyciu narzędzia ipset. W zależności od rodzaju
31aktualnie zbiór IP może przechowywać adresy IP, numery portów
32(TCP/UDP) lub adresy IP z adresami MAC - w sposób zapewniający
33maksymalną szybkość przy dopasowywaniu elementu do zbioru.
9e9bc01b 34
40d655f1 35%package devel
e791bf9d 36Summary: Header files for ipset interface
cb832b79 37Summary(pl.UTF-8): Pliki nagłówkowe do interfejsu ipset
f62f2152 38Group: Development/Libraries
40d655f1 39
40%description devel
e791bf9d 41Header files for ipset interface.
40d655f1 42
00760b7e
JR
43%description devel -l pl.UTF-8
44Pliki nagłówkowe do interfejsu ipset.
40d655f1 45
bc9c8d01
JK
46%prep
47%setup -qn %{name}-%{version_base}
c6a85438 48%patch0 -p1
bc9c8d01
JK
49
50%build
51%{__make} \
52 PREFIX="%{_prefix}" \
53 LIBDIR="%{_libdir}" \
54 MANDIR="%{_mandir}" \
55 BINDIR="%{_sbindir}" \
bc9c8d01
JK
56 COPT_FLAGS:="%{rpmcflags}"
57
58%install
59rm -rf $RPM_BUILD_ROOT
e791bf9d 60install -d $RPM_BUILD_ROOT%{_includedir}
bc9c8d01
JK
61
62%{__make} install \
63 DESTDIR="$RPM_BUILD_ROOT" \
64 PREFIX="%{_prefix}" \
65 LIBDIR="%{_libdir}" \
66 MANDIR="%{_mandir}" \
eeafeb5f 67 BINDIR="%{_sbindir}"
e791bf9d
JB
68
69install *.h $RPM_BUILD_ROOT%{_includedir}
bc9c8d01
JK
70
71%clean
72rm -rf $RPM_BUILD_ROOT
73
74%files
75%defattr(644,root,root,755)
76%doc ChangeLog ChangeLog.ippool TODO
77%attr(755,root,root) %{_sbindir}/*
78%dir %{_libdir}/ipset
79%attr(755,root,root) %{_libdir}/ipset/*.so
80%{_mandir}/man8/*
40d655f1 81
82%files devel
83%defattr(644,root,root,755)
84%{_includedir}/*.h
This page took 0.085575 seconds and 4 git commands to generate.