4 Commits

4 changed files with 26 additions and 22 deletions

4
_scmsync.obsinfo Normal file
View File

@@ -0,0 +1,4 @@
mtime: 1746233205
commit: 79d271cfa81d82914652e93b9056b0eff9b8b3cd95e8cbaaa1721eeed76badbb
url: https://src.opensuse.org/jengelh/iptables
revision: master

3
build.specials.obscpio Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:086e42b502e8c9cb0f95ceb91bce9df379f1f019aeac6e6b5e56b76d34d734fb
size 256

View File

@@ -1,7 +1,7 @@
#
# spec file for package iptables
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -66,8 +66,8 @@ Requires(post): update-alternatives
Requires(postun): update-alternatives
%endif
%else
Provides: %{name}-backend-nft = %version-%release
Obsoletes: %{name}-backend-nft < %version-%release
Provides: %name-backend-nft = %version-%release
Obsoletes: %name-backend-nft < %version-%release
Provides: ebtables
%endif
# During the update to iptables 1.8, ip6tables-restore-translate, ip6tables-translate,
@@ -80,14 +80,12 @@ Conflicts: iptables-nft = 1.6.2
iptables is used to set up, maintain, and inspect the rule tables of
the various Netfilter packet filter engines inside the Linux kernel.
%if %{with legacy_backend}
%package backend-nft
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
@@ -100,7 +98,6 @@ Installation of this package adds higher priority alternatives (cf.
update-alternatives) that makes the iptables, ip6tables, arptables
and ebtables commands point to a program variant that uses the
nftables kernel interface.
%endif
%package -n xtables-plugins
Summary: Match and target extension plugins for iptables
@@ -215,7 +212,7 @@ for i in iptables iptables-restore iptables-save ip6tables ip6tables-restore \
ip6tables-save arptables arptables-restore arptables-save ebtables \
ebtables-restore ebtables-save; do
%if %{with legacy_backend}
%if ! %{with libalternatives}
%if !%{with libalternatives}
ln -fsv "%_sysconfdir/alternatives/$i" "$b/%_sbindir/$i"
%else
ln -fsv %_bindir/alts "$b/%_sbindir/$i"
@@ -366,7 +363,7 @@ fi
%_sbindir/ip6tables-legacy*
%_sbindir/xtables-legacy-multi
# backend-legacy (implicit)
%if ! %{with libalternatives}
%if !%{with libalternatives}
%ghost %_sysconfdir/alternatives/iptables
%ghost %_sysconfdir/alternatives/iptables-restore
%ghost %_sysconfdir/alternatives/iptables-save
@@ -405,7 +402,7 @@ fi
%if %{with legacy_backend}
%files backend-nft
%if ! %{with libalternatives}
%if !%{with libalternatives}
%ghost %_sysconfdir/alternatives/iptables
%ghost %_sysconfdir/alternatives/iptables-restore
%ghost %_sysconfdir/alternatives/iptables-save