]>
Commit | Line | Data |
---|---|---|
f4e8c132 JB |
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 | |
e8d710b4 JB |
4 | Version: 0.9.3 |
5 | Release: 1 | |
f4e8c132 JB |
6 | License: GPL v2 |
7 | Group: Applications/Networking | |
4e4aed31 | 8 | Source0: https://netfilter.org/projects/nftables/files/%{name}-%{version}.tar.bz2 |
e8d710b4 | 9 | # Source0-md5: 9913b2b46864394d41916b74638e0875 |
cf7ed850 | 10 | Patch0: %{name}-python.patch |
4e4aed31 | 11 | URL: https://netfilter.org/projects/nftables/ |
e8d710b4 | 12 | BuildRequires: asciidoc |
f4e8c132 | 13 | BuildRequires: autoconf >= 2.61 |
09b93bc2 | 14 | BuildRequires: automake >= 1.6 |
f4e8c132 | 15 | BuildRequires: bison |
f4e8c132 JB |
16 | BuildRequires: flex |
17 | BuildRequires: gmp-devel | |
435e9057 | 18 | BuildRequires: iptables-devel >= 1.6.1 |
163d1557 | 19 | BuildRequires: jansson-devel |
09b93bc2 | 20 | BuildRequires: libmnl-devel >= 1.0.3 |
c5846f36 JB |
21 | BuildRequires: libnftnl-devel >= 1.1.4 |
22 | BuildRequires: libtool >= 2:2 | |
7be40d4e | 23 | BuildRequires: pkgconfig |
cf7ed850 | 24 | BuildRequires: python-modules >= 1:2.5 |
f4e8c132 | 25 | BuildRequires: readline-devel |
cf7ed850 JB |
26 | BuildRequires: rpm-pythonprov |
27 | BuildRequires: rpmbuild(macros) >= 1.219 | |
435e9057 | 28 | Requires: iptables-libs >= 1.6.1 |
09b93bc2 | 29 | Requires: libmnl >= 1.0.3 |
c5846f36 | 30 | Requires: libnftnl >= 1.1.4 |
f4e8c132 JB |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
32 | ||
33 | %description | |
34 | nftables is the project that aims to replace the existing | |
35 | {ip,ip6,arp,eb}tables framework. Basically, this project provides a | |
36 | new packet filtering framework, a new userspace utility and also a | |
37 | compatibility layer for {ip,ip6}tables. nftables is built upon the | |
38 | building blocks of the Netfilter infrastructure such as the existing | |
39 | hooks, the connection tracking system, the userspace queueing | |
40 | component and the logging subsystem. | |
41 | ||
42 | %description -l pl.UTF-8 | |
43 | nftables to projekt mający na celu zastąpienie istniejącego szkieletu | |
44 | {ip,ip6,arp,eb}tables. Ten projekt przede wszystkim dostarcza nowy | |
45 | szkielet filtrowania, nowe narzędzie linii poleceń oraz warstwę | |
46 | zgodności dla {ip,ip6}tables. nftables jest zbudowane w oparciu o | |
47 | bloki tworzące infrastrukturę Netfilter, takie jak istniejące uchwyty, | |
48 | system śledzenia połączeń, komponent kolejkowania w przestrzeni | |
49 | użytkownika oraz podsystem logowania. | |
50 | ||
163d1557 JB |
51 | %package devel |
52 | Summary: Header file for nftables library | |
53 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki nftables | |
54 | Group: Development/Libraries | |
55 | Requires: %{name} = %{version}-%{release} | |
56 | ||
57 | %description devel | |
58 | Header file for nftables library. | |
59 | ||
60 | %description devel -l pl.UTF-8 | |
61 | Plik nagłówkowy biblioteki nftables. | |
62 | ||
63 | %package static | |
64 | Summary: Static nftables library | |
65 | Summary(pl.UTF-8): Statyczna biblioteka nftables | |
66 | Group: Development/Libraries | |
67 | Requires: %{name}-devel = %{version}-%{release} | |
68 | ||
69 | %description static | |
70 | Static nftables library. | |
71 | ||
72 | %description static -l pl.UTF-8 | |
73 | Statyczna biblioteka nftables. | |
74 | ||
cf7ed850 JB |
75 | %package -n python-nftables |
76 | Summary: Python bindings for libnftables library | |
77 | Summary(pl.UTF-8): Wiązania Pythona do biblioteki libnftables | |
78 | Group: Libraries/Python | |
79 | Requires: %{name} = %{version}-%{release} | |
80 | ||
81 | %description -n python-nftables | |
82 | Python bindings for libnftables library. | |
83 | ||
84 | %description -n python-nftables -l pl.UTF-8 | |
85 | Wiązania Pythona do biblioteki libnftables. | |
86 | ||
f4e8c132 JB |
87 | %prep |
88 | %setup -q | |
cf7ed850 | 89 | %patch0 -p1 |
f4e8c132 JB |
90 | |
91 | %build | |
4e4aed31 | 92 | %{__libtoolize} |
09b93bc2 | 93 | %{__aclocal} -I m4 |
f4e8c132 | 94 | %{__autoconf} |
09b93bc2 JB |
95 | %{__autoheader} |
96 | %{__automake} | |
f4e8c132 | 97 | %configure \ |
435e9057 | 98 | --disable-silent-rules \ |
163d1557 | 99 | --with-json \ |
435e9057 | 100 | --with-xtables |
f4e8c132 JB |
101 | |
102 | %{__make} | |
103 | ||
104 | %install | |
105 | rm -rf $RPM_BUILD_ROOT | |
106 | ||
107 | %{__make} install \ | |
108 | DESTDIR=$RPM_BUILD_ROOT | |
109 | ||
163d1557 JB |
110 | # obsoleted by pkg-config |
111 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libnftables.la | |
112 | ||
cf7ed850 JB |
113 | %py_postclean |
114 | ||
f4e8c132 JB |
115 | %clean |
116 | rm -rf $RPM_BUILD_ROOT | |
117 | ||
163d1557 JB |
118 | %post -p /sbin/ldconfig |
119 | %postun -p /sbin/ldconfig | |
120 | ||
f4e8c132 JB |
121 | %files |
122 | %defattr(644,root,root,755) | |
f4e8c132 | 123 | %attr(755,root,root) %{_sbindir}/nft |
163d1557 JB |
124 | %dir %{_sysconfdir}/nftables |
125 | %attr(740,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nftables/all-in-one.nft | |
126 | %attr(740,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nftables/arp-filter.nft | |
127 | %attr(740,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nftables/bridge-filter.nft | |
128 | %attr(740,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nftables/inet-filter.nft | |
c5846f36 | 129 | %attr(740,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nftables/inet-nat.nft |
163d1557 JB |
130 | %attr(740,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nftables/ipv4-filter.nft |
131 | %attr(740,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nftables/ipv4-mangle.nft | |
132 | %attr(740,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nftables/ipv4-nat.nft | |
133 | %attr(740,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nftables/ipv4-raw.nft | |
134 | %attr(740,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nftables/ipv6-filter.nft | |
135 | %attr(740,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nftables/ipv6-mangle.nft | |
136 | %attr(740,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nftables/ipv6-nat.nft | |
137 | %attr(740,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nftables/ipv6-raw.nft | |
c5846f36 | 138 | %attr(740,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nftables/netdev-ingress.nft |
cf7ed850 JB |
139 | %dir %{_sysconfdir}/nftables/osf |
140 | %attr(740,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nftables/osf/pf.os | |
163d1557 | 141 | %attr(755,root,root) %{_libdir}/libnftables.so.*.*.* |
cf7ed850 JB |
142 | %attr(755,root,root) %ghost %{_libdir}/libnftables.so.1 |
143 | %{_mandir}/man5/libnftables-json.5* | |
f4e8c132 | 144 | %{_mandir}/man8/nft.8* |
163d1557 JB |
145 | |
146 | %files devel | |
147 | %defattr(644,root,root,755) | |
148 | %attr(755,root,root) %{_libdir}/libnftables.so | |
149 | %{_includedir}/nftables | |
150 | %{_pkgconfigdir}/libnftables.pc | |
cf7ed850 | 151 | %{_mandir}/man3/libnftables.3* |
163d1557 JB |
152 | |
153 | %files static | |
154 | %defattr(644,root,root,755) | |
155 | %{_libdir}/libnftables.a | |
cf7ed850 JB |
156 | |
157 | %files -n python-nftables | |
158 | %defattr(644,root,root,755) | |
159 | %dir %{py_sitedir}/nftables | |
160 | %{py_sitedir}/nftables/*.py[co] | |
161 | %{py_sitedir}/nftables/schema.json | |
162 | %{py_sitedir}/nftables-0.1-py*.egg-info |