!3 add python3-nftables sub-package

Merge pull request !3 from cuibb1/master
This commit is contained in:
openeuler-ci-bot 2020-07-31 09:30:41 +08:00 committed by Gitee
commit df1e581d20

View File

@ -1,6 +1,6 @@
Name: nftables
Version: 0.9.6
Release: 1
Release: 2
Epoch: 1
Summary: A subsystem of the Linux kernel processing network data
License: GPLv2
@ -10,6 +10,7 @@ Source1: nftables.service
Source2: nftables.conf
BuildRequires: gcc flex bison libmnl-devel gmp-devel readline-devel libnftnl-devel docbook2X systemd
BuildRequires: iptables-devel jansson-devel python3-devel
%description
nftables is a subsystem of the Linux kernel providing filtering and classification of\
@ -24,11 +25,20 @@ Development tools and static libraries and header files for the libnftables libr
%package_help
%package -n python3-nftables
Summary: Python module providing an interface to libnftables
Requires: %{name} = %{epoch}:%{version}-%{release}
%{?python_provide:%python_provide python3-nftables}
%description -n python3-nftables
The nftables python module providing an interface to libnftables via ctypes.
%prep
%autosetup -n %{name}-%{version}
%build
%configure --disable-silent-rules
%configure --disable-silent-rules --with-xtables --with-json \
--enable-python --with-python-bin=%{__python3}
%make_build
%install
@ -79,7 +89,14 @@ install -d $RPM_BUILD_ROOT/%{_sysconfdir}/nftables
%{_mandir}/man3/libnftables.3*
%{_mandir}/man5/libnftables-json*
%files -n python3-nftables
%{python3_sitelib}/nftables-*.egg-info
%{python3_sitelib}/nftables/
%changelog
* Thu Jul 30 2020 cuibaobao <buildteam@openeuler.org> - 1:0.9.6-2
- Add python3-nftables sub-package
* Thu Jul 23 2020 cuibaobao <buildteam@openeuler.org> - 1:0.9.6-1
- update to 0.9.6