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