]> git.pld-linux.org Git - packages/nftables.git/blob - nftables.spec
- updated to 0.9.0
[packages/nftables.git] / nftables.spec
1 Summary:        Administration tool for packet filtering and classification
2 Summary(pl.UTF-8):      Narzędzie administracyjne do filtrowania i klasyfikacji pakietów
3 Name:           nftables
4 Version:        0.9.0
5 Release:        1
6 License:        GPL v2
7 Group:          Applications/Networking
8 Source0:        https://netfilter.org/projects/nftables/files/%{name}-%{version}.tar.bz2
9 # Source0-md5:  d4dcb61df80aa544b2e142e91d937635
10 URL:            https://netfilter.org/projects/nftables/
11 BuildRequires:  autoconf >= 2.61
12 BuildRequires:  automake >= 1.6
13 BuildRequires:  bison
14 BuildRequires:  dblatex
15 BuildRequires:  docbook2X
16 BuildRequires:  flex
17 BuildRequires:  gmp-devel
18 BuildRequires:  iptables-devel >= 1.6.1
19 BuildRequires:  jansson-devel
20 BuildRequires:  libmnl-devel >= 1.0.3
21 BuildRequires:  libnftnl-devel >= 1.1.1
22 BuildRequires:  libtool
23 BuildRequires:  pkgconfig
24 BuildRequires:  readline-devel
25 Requires:       iptables-libs >= 1.6.1
26 Requires:       libmnl >= 1.0.3
27 Requires:       libnftnl >= 1.1.1
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 nftables is the project that aims to replace the existing
32 {ip,ip6,arp,eb}tables framework. Basically, this project provides a
33 new packet filtering framework, a new userspace utility and also a
34 compatibility layer for {ip,ip6}tables. nftables is built upon the
35 building blocks of the Netfilter infrastructure such as the existing
36 hooks, the connection tracking system, the userspace queueing
37 component and the logging subsystem.
38
39 %description -l pl.UTF-8
40 nftables to projekt mający na celu zastąpienie istniejącego szkieletu
41 {ip,ip6,arp,eb}tables. Ten projekt przede wszystkim dostarcza nowy
42 szkielet filtrowania, nowe narzędzie linii poleceń oraz warstwę
43 zgodności dla {ip,ip6}tables. nftables jest zbudowane w oparciu o
44 bloki tworzące infrastrukturę Netfilter, takie jak istniejące uchwyty,
45 system śledzenia połączeń, komponent kolejkowania w przestrzeni
46 użytkownika oraz podsystem logowania.
47
48 %package devel
49 Summary:        Header file for nftables library
50 Summary(pl.UTF-8):      Plik nagłówkowy biblioteki nftables
51 Group:          Development/Libraries
52 Requires:       %{name} = %{version}-%{release}
53
54 %description devel
55 Header file for nftables library.
56
57 %description devel -l pl.UTF-8
58 Plik nagłówkowy biblioteki nftables.
59
60 %package static
61 Summary:        Static nftables library
62 Summary(pl.UTF-8):      Statyczna biblioteka nftables
63 Group:          Development/Libraries
64 Requires:       %{name}-devel = %{version}-%{release}
65
66 %description static
67 Static nftables library.
68
69 %description static -l pl.UTF-8
70 Statyczna biblioteka nftables.
71
72 %prep
73 %setup -q
74
75 %build
76 %{__libtoolize}
77 %{__aclocal} -I m4
78 %{__autoconf}
79 %{__autoheader}
80 %{__automake}
81 %configure \
82         DOCBOOK2X_MAN=/usr/bin/docbook2X2man \
83         --disable-silent-rules \
84         --with-json \
85         --with-xtables
86
87 %{__make}
88
89 %install
90 rm -rf $RPM_BUILD_ROOT
91
92 %{__make} install \
93         DESTDIR=$RPM_BUILD_ROOT
94
95 # obsoleted by pkg-config
96 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libnftables.la
97
98 %clean
99 rm -rf $RPM_BUILD_ROOT
100
101 %post   -p /sbin/ldconfig
102 %postun -p /sbin/ldconfig
103
104 %files
105 %defattr(644,root,root,755)
106 %attr(755,root,root) %{_sbindir}/nft
107 %dir %{_sysconfdir}/nftables
108 %attr(740,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nftables/all-in-one.nft
109 %attr(740,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nftables/arp-filter.nft
110 %attr(740,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nftables/bridge-filter.nft
111 %attr(740,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nftables/inet-filter.nft
112 %attr(740,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nftables/ipv4-filter.nft
113 %attr(740,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nftables/ipv4-mangle.nft
114 %attr(740,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nftables/ipv4-nat.nft
115 %attr(740,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nftables/ipv4-raw.nft
116 %attr(740,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nftables/ipv6-filter.nft
117 %attr(740,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nftables/ipv6-mangle.nft
118 %attr(740,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nftables/ipv6-nat.nft
119 %attr(740,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nftables/ipv6-raw.nft
120 %attr(755,root,root) %{_libdir}/libnftables.so.*.*.*
121 %attr(755,root,root) %ghost %{_libdir}/libnftables.so.0
122 %{_mandir}/man8/nft.8*
123
124 %files devel
125 %defattr(644,root,root,755)
126 %attr(755,root,root) %{_libdir}/libnftables.so
127 %{_includedir}/nftables
128 %{_pkgconfigdir}/libnftables.pc
129
130 %files static
131 %defattr(644,root,root,755)
132 %{_libdir}/libnftables.a
This page took 0.128474 seconds and 3 git commands to generate.