SHA256
1
0
forked from pool/nftables

- Add json, python [boo#1158723]

OBS-URL: https://build.opensuse.org/package/show/security:netfilter/nftables?expand=0&rev=45
This commit is contained in:
Jan Engelhardt 2019-12-09 09:40:03 +00:00 committed by Git OBS Bridge
parent 5fffe45a5f
commit 3d38ed8991
2 changed files with 19 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Dec 9 09:39:52 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
- Add json, python [boo#1158723]
-------------------------------------------------------------------
Tue Dec 3 09:09:28 UTC 2019 - Jan Engelhardt <jengelh@inai.de>

View File

@ -32,7 +32,9 @@ BuildRequires: bison
BuildRequires: flex
BuildRequires: gmp-devel
BuildRequires: pkg-config >= 0.21
BuildRequires: python3-base
BuildRequires: readline-devel
BuildRequires: pkgconfig(jansson)
BuildRequires: pkgconfig(libmnl) >= 1.0.3
BuildRequires: pkgconfig(libnftnl) >= 1.1.4
BuildRequires: pkgconfig(xtables) >= 1.6.1
@ -67,6 +69,13 @@ library.
This package contains the header files for the library.
%package -n python3-nftables
Summary: Python interface for nftables
Group: Development/Languages/Python
%description -n python3-nftables
A Python module for nftables.
%prep
%setup -q
@ -78,7 +87,8 @@ mkdir obj
pushd obj/
%define _configure ../configure
%configure --disable-silent-rules --disable-static --docdir="%_docdir/%name" \
--includedir="%_includedir/%name" --disable-python
--includedir="%_includedir/%name" --with-json \
--enable-python --with-python-bin="$(which python3)"
make %{?_smp_mflags}
popd
@ -93,7 +103,6 @@ mv "$b/%_sysconfdir/nftables"/* "$b/%_docdir/%name/examples/"
%postun -n libnftables1 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%license COPYING
%_sbindir/nft
%_mandir/man5/*.5*
@ -109,4 +118,7 @@ mv "$b/%_sysconfdir/nftables"/* "$b/%_docdir/%name/examples/"
%_libdir/pkgconfig/*.pc
%_mandir/man3/*.3*
%files -n python3-nftables
%python3_sitelib/nftables*
%changelog