- Update to new upstream release 0.8.5

OBS-URL: https://build.opensuse.org/package/show/security:netfilter/nftables?expand=0&rev=34
This commit is contained in:
2018-05-11 07:31:21 +00:00
committed by Git OBS Bridge
parent 78064882cb
commit e1bc2e1fcd
6 changed files with 52 additions and 15 deletions

View File

@@ -17,7 +17,7 @@
Name: nftables
Version: 0.8.4
Version: 0.8.5
Release: 0
Summary: Userspace utility to access the nf_tables packet filter
License: GPL-2.0-only
@@ -46,10 +46,29 @@ independently of, and thus parallel to, ip_tables, ip6_tables,
arp_tables and ebtables. nftables is the corresponsing userspace
frontend.
nftables features native support for sets and dictionaries of
arbitrary types, support for many different protocols, meta data
types, connection tracking, NAT setup, logging, atomic incremental
and full ruleset updates.
nftables features support for sets and dictionaries of arbitrary
types, support for different protocols, meta data types, access to
connection tracking and NAT, logging, atomic incremental and full
ruleset updates.
%package -n libnftables0
Summary: nftables firewalling command interface
Group: System/Libraries
%description -n libnftables0
libnftables is the nftables command line interface placed into a
library.
%package devel
Summary: Development files for the nftables command line interface
Group: Development/Libraries/C and C++
Requires: libnftables0 = %version
%description devel
libnftables is the nftables command line interface placed into a
library.
This package contains the header files for the library.
%prep
%setup -q
@@ -61,7 +80,8 @@ export PATH="$PATH:$PWD/bin"
mkdir obj
pushd obj/
%define _configure ../configure
%configure --disable-silent-rules --disable-static --docdir="%_docdir/%name"
%configure --disable-silent-rules --disable-static --docdir="%_docdir/%name" \
--includedir="%_includedir/%name"
make %{?_smp_mflags}
popd
@@ -69,17 +89,25 @@ popd
b="%buildroot"
%make_install -C obj
rm -f "%buildroot/%_libdir"/*.la
# No headers, so it is quite pointless to have.
rm -f "%buildroot/%_libdir"/*.so "%buildroot/%_libdir/pkgconfig"/*.pc
mkdir -p "$b/%_docdir/%name/examples"
mv "$b/%_sysconfdir/nftables"/* "$b/%_docdir/%name/examples/"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%post -n libnftables0 -p /sbin/ldconfig
%postun -n libnftables0 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%_libdir/libnftables.so.*
%license COPYING
%_sbindir/nft
%_mandir/man8/nft*
%doc COPYING
%_docdir/%name/
%files -n libnftables0
%_libdir/libnftables.so.*
%files devel
%_includedir/%name/
%_libdir/libnftables.so
%_libdir/pkgconfig/*.pc
%changelog