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