]> git.pld-linux.org Git - packages/ipset.git/blame - ipset.spec
- updated to 2.3.3a
[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
bfe86908 8Version: 2.3.3a
eeafeb5f 9Release: 1
bc9c8d01
JK
10License: GPL
11Group: Networking/Admin
bfe86908 12Source0: http://ipset.netfilter.org/%{name}-%{version}.tar.bz2
13# Source0-md5: c7d2f165242edaef5581db0f7d5af520
12667538 14Source1: %{name}.init
bc9c8d01 15URL: http://ipset.netfilter.org/
70a6eeb2 16BuildRequires: linux-libc-headers >= 7:2.6.22.1-2
bc9c8d01
JK
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
bc9c8d01
JK
19%description
20IP sets are a framework inside the Linux 2.4.x and 2.6.x kernel, which
21can be administered by the ipset utility. Depending on the type,
22currently an IP set may store IP addresses, (TCP/UDP) port numbers or
23IP addresses with MAC addresses in a way, which ensures lightning
24speed when matching an entry against a set.
25
00760b7e
JR
26%description -l pl.UTF-8
27Zbiory IP to szkielet w jądrze Linuksa 2.4.x i 2.6.x, którym można
28administrować przy użyciu narzędzia ipset. W zależności od rodzaju
29aktualnie zbiór IP może przechowywać adresy IP, numery portów
30(TCP/UDP) lub adresy IP z adresami MAC - w sposób zapewniający
31maksymalną szybkość przy dopasowywaniu elementu do zbioru.
9e9bc01b 32
40d655f1 33%package devel
e791bf9d 34Summary: Header files for ipset interface
cb832b79 35Summary(pl.UTF-8): Pliki nagłówkowe do interfejsu ipset
f62f2152 36Group: Development/Libraries
40d655f1 37
38%description devel
e791bf9d 39Header files for ipset interface.
40d655f1 40
00760b7e
JR
41%description devel -l pl.UTF-8
42Pliki nagłówkowe do interfejsu ipset.
40d655f1 43
12667538
PS
44%package init
45Summary: Ipset init (RedHat style)
46Group: Networking/Admin
12667538
PS
47Requires(post,preun): /sbin/chkconfig
48Requires: %{name}
af1d549a 49Requires: rc-scripts
12667538
PS
50
51%description init
52Ipset initialization script.
53
bc9c8d01 54%prep
bfe86908 55%setup -q
bc9c8d01
JK
56
57%build
bfe86908 58%{__make} binaries \
59 CC="%{__cc}" \
bc9c8d01
JK
60 PREFIX="%{_prefix}" \
61 LIBDIR="%{_libdir}" \
62 MANDIR="%{_mandir}" \
63 BINDIR="%{_sbindir}" \
bc9c8d01
JK
64 COPT_FLAGS:="%{rpmcflags}"
65
66%install
67rm -rf $RPM_BUILD_ROOT
12667538 68install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_includedir}}
bc9c8d01 69
bfe86908 70%{__make} binaries_install \
bc9c8d01
JK
71 DESTDIR="$RPM_BUILD_ROOT" \
72 PREFIX="%{_prefix}" \
73 LIBDIR="%{_libdir}" \
74 MANDIR="%{_mandir}" \
eeafeb5f 75 BINDIR="%{_sbindir}"
e791bf9d
JB
76
77install *.h $RPM_BUILD_ROOT%{_includedir}
bc9c8d01 78
12667538
PS
79install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
80
bc9c8d01
JK
81%clean
82rm -rf $RPM_BUILD_ROOT
83
12667538
PS
84%post init
85/sbin/chkconfig --add %{name}
86
87%preun init
88if [ "$1" = "0" ]; then
89 /sbin/chkconfig --del %{name}
90fi
91
bc9c8d01
JK
92%files
93%defattr(644,root,root,755)
94%doc ChangeLog ChangeLog.ippool TODO
95%attr(755,root,root) %{_sbindir}/*
96%dir %{_libdir}/ipset
97%attr(755,root,root) %{_libdir}/ipset/*.so
98%{_mandir}/man8/*
40d655f1 99
100%files devel
101%defattr(644,root,root,755)
102%{_includedir}/*.h
12667538
PS
103
104%files init
105%defattr(644,root,root,755)
106%attr(754,root,root) /etc/rc.d/init.d/*
This page took 0.682218 seconds and 4 git commands to generate.