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