]> git.pld-linux.org Git - packages/nftables.git/blame - nftables.spec
- updated to 0.9.1 (note: new soname)
[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
cf7ed850
JB
4Version: 0.9.1
5Release: 1
f4e8c132
JB
6License: GPL v2
7Group: Applications/Networking
4e4aed31 8Source0: https://netfilter.org/projects/nftables/files/%{name}-%{version}.tar.bz2
cf7ed850
JB
9# Source0-md5: e2facbcad6c5d9bd87a0bf5081a31522
10Patch0: %{name}-python.patch
4e4aed31 11URL: https://netfilter.org/projects/nftables/
f4e8c132 12BuildRequires: autoconf >= 2.61
09b93bc2 13BuildRequires: automake >= 1.6
f4e8c132
JB
14BuildRequires: bison
15BuildRequires: dblatex
16BuildRequires: docbook2X
17BuildRequires: flex
18BuildRequires: gmp-devel
435e9057 19BuildRequires: iptables-devel >= 1.6.1
163d1557 20BuildRequires: jansson-devel
09b93bc2 21BuildRequires: libmnl-devel >= 1.0.3
163d1557 22BuildRequires: libnftnl-devel >= 1.1.1
4e4aed31 23BuildRequires: libtool
7be40d4e 24BuildRequires: pkgconfig
cf7ed850 25BuildRequires: python-modules >= 1:2.5
f4e8c132 26BuildRequires: readline-devel
cf7ed850
JB
27BuildRequires: rpm-pythonprov
28BuildRequires: rpmbuild(macros) >= 1.219
435e9057 29Requires: iptables-libs >= 1.6.1
09b93bc2 30Requires: libmnl >= 1.0.3
163d1557 31Requires: libnftnl >= 1.1.1
f4e8c132
JB
32BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34%description
35nftables is the project that aims to replace the existing
36{ip,ip6,arp,eb}tables framework. Basically, this project provides a
37new packet filtering framework, a new userspace utility and also a
38compatibility layer for {ip,ip6}tables. nftables is built upon the
39building blocks of the Netfilter infrastructure such as the existing
40hooks, the connection tracking system, the userspace queueing
41component and the logging subsystem.
42
43%description -l pl.UTF-8
44nftables to projekt mający na celu zastąpienie istniejącego szkieletu
45{ip,ip6,arp,eb}tables. Ten projekt przede wszystkim dostarcza nowy
46szkielet filtrowania, nowe narzędzie linii poleceń oraz warstwę
47zgodności dla {ip,ip6}tables. nftables jest zbudowane w oparciu o
48bloki tworzące infrastrukturę Netfilter, takie jak istniejące uchwyty,
49system śledzenia połączeń, komponent kolejkowania w przestrzeni
50użytkownika oraz podsystem logowania.
51
163d1557
JB
52%package devel
53Summary: Header file for nftables library
54Summary(pl.UTF-8): Plik nagłówkowy biblioteki nftables
55Group: Development/Libraries
56Requires: %{name} = %{version}-%{release}
57
58%description devel
59Header file for nftables library.
60
61%description devel -l pl.UTF-8
62Plik nagłówkowy biblioteki nftables.
63
64%package static
65Summary: Static nftables library
66Summary(pl.UTF-8): Statyczna biblioteka nftables
67Group: Development/Libraries
68Requires: %{name}-devel = %{version}-%{release}
69
70%description static
71Static nftables library.
72
73%description static -l pl.UTF-8
74Statyczna biblioteka nftables.
75
cf7ed850
JB
76%package -n python-nftables
77Summary: Python bindings for libnftables library
78Summary(pl.UTF-8): Wiązania Pythona do biblioteki libnftables
79Group: Libraries/Python
80Requires: %{name} = %{version}-%{release}
81
82%description -n python-nftables
83Python bindings for libnftables library.
84
85%description -n python-nftables -l pl.UTF-8
86Wią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
107rm -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
118rm -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
This page took 0.112148 seconds and 4 git commands to generate.