From 627d854142308ab3be3d2de82f671159acf8139087435326c99bebc05a6fd85b Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Wed, 20 Oct 2021 11:28:19 +0000 Subject: [PATCH] Accepting request 926538 from home:schubi2 - Added alts requirements for iptables-backend-nft package. OBS-URL: https://build.opensuse.org/request/show/926538 OBS-URL: https://build.opensuse.org/package/show/security:netfilter/iptables?expand=0&rev=148 --- iptables.changes | 5 +++++ iptables.spec | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/iptables.changes b/iptables.changes index 94ac68f..daa6cea 100644 --- a/iptables.changes +++ b/iptables.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Oct 20 11:15:19 UTC 2021 - Stefan Schubert + +- Added alts requirements for iptables-backend-nft package. + ------------------------------------------------------------------- Thu Sep 16 11:40:45 UTC 2021 - Stefan Schubert diff --git a/iptables.spec b/iptables.spec index 558014c..94e5b63 100644 --- a/iptables.spec +++ b/iptables.spec @@ -51,6 +51,7 @@ Requires: netcfg >= 11.6 Requires: xtables-plugins = %version-%release %if %{with libalternatives} Requires: alts +BuildRequires: alts %else Requires(post): update-alternatives Requires(postun):update-alternatives @@ -69,8 +70,13 @@ the various Netfilter packet filter engines inside the Linux kernel. Summary: Metapackage to make nft the default backend for iptables/arptables/ebtables Group: Productivity/Networking/Security Requires: iptables >= 1.8.0 +%if %{with libalternatives} +Requires: alts +BuildRequires: alts +%else Requires(post): update-alternatives Requires(postun):update-alternatives +%endif Provides: iptables-nft = %version-%release Obsoletes: iptables-nft < %version-%release