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:
parent
5fffe45a5f
commit
3d38ed8991
@ -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>
|
Tue Dec 3 09:09:28 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
@ -32,7 +32,9 @@ BuildRequires: bison
|
|||||||
BuildRequires: flex
|
BuildRequires: flex
|
||||||
BuildRequires: gmp-devel
|
BuildRequires: gmp-devel
|
||||||
BuildRequires: pkg-config >= 0.21
|
BuildRequires: pkg-config >= 0.21
|
||||||
|
BuildRequires: python3-base
|
||||||
BuildRequires: readline-devel
|
BuildRequires: readline-devel
|
||||||
|
BuildRequires: pkgconfig(jansson)
|
||||||
BuildRequires: pkgconfig(libmnl) >= 1.0.3
|
BuildRequires: pkgconfig(libmnl) >= 1.0.3
|
||||||
BuildRequires: pkgconfig(libnftnl) >= 1.1.4
|
BuildRequires: pkgconfig(libnftnl) >= 1.1.4
|
||||||
BuildRequires: pkgconfig(xtables) >= 1.6.1
|
BuildRequires: pkgconfig(xtables) >= 1.6.1
|
||||||
@ -67,6 +69,13 @@ library.
|
|||||||
|
|
||||||
This package contains the header files for the 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
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
@ -78,7 +87,8 @@ mkdir obj
|
|||||||
pushd obj/
|
pushd obj/
|
||||||
%define _configure ../configure
|
%define _configure ../configure
|
||||||
%configure --disable-silent-rules --disable-static --docdir="%_docdir/%name" \
|
%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}
|
make %{?_smp_mflags}
|
||||||
popd
|
popd
|
||||||
|
|
||||||
@ -93,7 +103,6 @@ mv "$b/%_sysconfdir/nftables"/* "$b/%_docdir/%name/examples/"
|
|||||||
%postun -n libnftables1 -p /sbin/ldconfig
|
%postun -n libnftables1 -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%_sbindir/nft
|
%_sbindir/nft
|
||||||
%_mandir/man5/*.5*
|
%_mandir/man5/*.5*
|
||||||
@ -109,4 +118,7 @@ mv "$b/%_sysconfdir/nftables"/* "$b/%_docdir/%name/examples/"
|
|||||||
%_libdir/pkgconfig/*.pc
|
%_libdir/pkgconfig/*.pc
|
||||||
%_mandir/man3/*.3*
|
%_mandir/man3/*.3*
|
||||||
|
|
||||||
|
%files -n python3-nftables
|
||||||
|
%python3_sitelib/nftables*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user