From 3c640d04d2d5c9e8c8534994101a041ffd8a8c6e Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Mon, 19 Apr 2021 15:25:59 +0200 Subject: [PATCH] iptables-1.8.7-8 - Drop hacks to maintain upgrade path Related: RHBZ#1927721 --- iptables.spec | 48 ++++-------------------------------------------- 1 file changed, 4 insertions(+), 44 deletions(-) diff --git a/iptables.spec b/iptables.spec index 3a5844a..ba2e68e 100644 --- a/iptables.spec +++ b/iptables.spec @@ -11,7 +11,7 @@ Name: iptables Summary: Tools for managing Linux kernel packet filtering capabilities URL: https://www.netfilter.org/projects/iptables Version: 1.8.7 -Release: 7%{?dist} +Release: 8%{?dist} Source: %{url}/files/%{name}-%{version}.tar.bz2 Source1: iptables.init Source2: iptables-config @@ -51,17 +51,6 @@ The iptables utility controls the network packet filtering code in the Linux kernel. If you need to set up firewalls and/or IP masquerading, you should install this package. -%package compat -Summary: Temporary transitioning package -Obsoletes: %{name} < 1.8.7-4 -Requires: %{name}-legacy = %{version}-%{release} -Requires: %{name}-utils = %{version}-%{release} - -%description compat -This package only exists to help transition iptables users to the new -package split. It will be removed after one distribution release cycle, please -do not reference it or depend on it in any way. - %package legacy Summary: Legacy tools for managing Linux kernel packet filtering capabilities Requires: %{name}-legacy-libs%{?_isa} = %{version}-%{release} @@ -104,8 +93,6 @@ For more information about this, please have a look at %package devel Summary: Development package for iptables Requires: %{name}-libs%{?_isa} = %{version}-%{release} -# XXX: Drop this after two releases or so -Requires: %{name}-legacy-devel%{?_isa} = %{version}-%{release} Requires: pkgconfig %description devel @@ -126,10 +113,6 @@ stable and may change with every new version. It is therefore unsupported. Summary: iptables and ip6tables services for iptables Requires: %{name} = %{version}-%{release} %{?systemd_ordering} -# obsolete old main package -Obsoletes: %{name} < 1.4.16.1 -# obsolete ipv6 sub package -Obsoletes: %{name}-ipv6 < 1.4.11.1 %description services iptables services for IPv4 and IPv6 @@ -153,7 +136,6 @@ Summary: nftables compatibility for iptables, arptables and ebtables Requires: %{name}-libs%{?_isa} = %{version}-%{release} Requires(post): %{_sbindir}/update-alternatives Requires(postun): %{_sbindir}/update-alternatives -Obsoletes: iptables-compat < 1.6.2-4 Provides: arptables-helper Provides: iptables Provides: arptables @@ -252,29 +234,6 @@ if [ $1 -eq 0 ]; then iptables %{_sbindir}/iptables-legacy fi -# iptables-1.8.0-1 introduced the use of alternatives -# when upgrading, its %postun script runs due to the package renaming -# fix this by repeating the install into alternatives -# also keep the old alternatives configuration to not change the system -%triggerun legacy -- iptables > 1.8.0 -alternatives --list | awk '/^iptables/{print $3; exit}' \ - >/var/tmp/alternatives.iptables.current -cp /var/lib/alternatives/iptables /var/tmp/alternatives.iptables.setup - -%triggerpostun legacy -- iptables > 1.8.0 -pfx=%{_sbindir}/iptables -pfx6=%{_sbindir}/ip6tables -%{_sbindir}/update-alternatives --install \ - $pfx iptables $pfx-legacy 10 \ - --slave $pfx6 ip6tables $pfx6-legacy \ - --slave $pfx-restore iptables-restore $pfx-legacy-restore \ - --slave $pfx-save iptables-save $pfx-legacy-save \ - --slave $pfx6-restore ip6tables-restore $pfx6-legacy-restore \ - --slave $pfx6-save ip6tables-save $pfx6-legacy-save -alternatives --set iptables $( - 1.8.7-8 +- Drop hacks to maintain upgrade path + * Fri Apr 16 2021 Mohan Boddu - 1.8.7-7 - Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937