]> git.pld-linux.org Git - packages/ipset.git/blob - ipset.spec
- created devel subpackage, i think right :),
[packages/ipset.git] / ipset.spec
1 #
2 # TODO:
3 #       - Requires and BuildRequires with proper versions
4 #
5 Summary:        IP sets utility
6 Summary(pl):    Narzêdzie do zarz±dzania zbiorami IP
7 Name:           ipset
8 %define         version_base    2.2.7
9 %define         version_tstamp  20051124
10 Version:        %{version_base}_%{version_tstamp}
11 Release:        1
12 License:        GPL
13 Group:          Networking/Admin
14 Source0:        http://ipset.netfilter.org/%{name}-%{version_base}-%{version_tstamp}.tar.bz2
15 # Source0-md5:  17ab7fab906409cab984e009a6b5032e
16 Patch0:         %{name}-no_kernel_headers.patch
17 URL:            http://ipset.netfilter.org/
18 BuildRequires:  linux-libc-headers >= 7:2.6.12.0-10
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 IP sets are a framework inside the Linux 2.4.x and 2.6.x kernel, which
23 can be administered by the ipset utility. Depending on the type,
24 currently an IP set may store IP addresses, (TCP/UDP) port numbers or
25 IP addresses with MAC addresses in a way, which ensures lightning
26 speed when matching an entry against a set.
27
28 %description -l pl
29 Zbiory IP to szkielet w j±drze Linuksa 2.4.x i 2.6.x, którym mo¿na
30 administrowaæ przy u¿yciu narzêdzia ipset. W zale¿no¶ci od rodzaju
31 aktualnie 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
33 maksymaln± szybko¶æ przy dopasowywaniu elementu do zbioru.
34
35 %package devel
36 Summary:        Library for the ipset interface
37 Summary(pl):    Biblioteka do interfejsu ipset
38 Group:          Development/Libraries
39
40 %description devel
41
42 %description devel -l pl
43
44 %prep
45 %setup -qn %{name}-%{version_base}
46 %patch0 -p1
47
48 %build
49 %{__make} \
50         PREFIX="%{_prefix}" \
51         LIBDIR="%{_libdir}" \
52         MANDIR="%{_mandir}" \
53         BINDIR="%{_sbindir}" \
54         COPT_FLAGS:="%{rpmcflags}"
55
56 %install
57 rm -rf $RPM_BUILD_ROOT
58 install -d $RPM_BUILD_ROOT/%{_includedir}
59
60 %{__make} install \
61         DESTDIR="$RPM_BUILD_ROOT" \
62         PREFIX="%{_prefix}" \
63         LIBDIR="%{_libdir}" \
64         MANDIR="%{_mandir}" \
65         BINDIR="%{_sbindir}"
66 install *.h $RPM_BUILD_ROOT/%{_includedir}
67
68 %clean
69 rm -rf $RPM_BUILD_ROOT
70
71 %files
72 %defattr(644,root,root,755)
73 %doc ChangeLog ChangeLog.ippool TODO
74 %attr(755,root,root) %{_sbindir}/*
75 %dir %{_libdir}/ipset
76 %attr(755,root,root) %{_libdir}/ipset/*.so
77 %{_mandir}/man8/*
78
79 %files devel
80 %defattr(644,root,root,755)
81 %{_includedir}/*.h
This page took 0.06821 seconds and 3 git commands to generate.