From 9c8cc886a9becb6792aee73705b1c94027660c1d Mon Sep 17 00:00:00 2001 From: Peter Georg Date: Jan 27 2022 13:11:44 +0000 Subject: Add obsoletes for update path --- diff --git a/SPECS/kmod-mptfc.spec b/SPECS/kmod-mptfc.spec index 3bbe78f..1526fe0 100644 --- a/SPECS/kmod-mptfc.spec +++ b/SPECS/kmod-mptfc.spec @@ -21,7 +21,7 @@ Name: kmod-%{pkg} Version: 4.18.0.80 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Fusion MPT FC Host (%{pkg}) driver License: GPLv2 @@ -58,6 +58,16 @@ Requires(post): %{_sbindir}/weak-modules Requires(postun): %{_sbindir}/weak-modules +%if "%{version}" == "4.18.0.80" && "%{release}" == "2%{?dist}" +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-1%{?dist} +%endif + +%if "%{version}" == "4.18.0.80" && "%{release}" == "3%{?dist}" +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-1%{?dist} +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-2%{?dist} +%endif + + %description This package provides the Fusion MPT FC Host (%{pkg}) driver. It supports the following adapters: @@ -136,6 +146,9 @@ fi %changelog +* Thu Jan 27 2022 Peter Georg - 4.18.0.80-3 +- Add obsoletes for update path + * Sat Jan 22 2022 Peter Georg - 4.18.0.80-2 - Enable ppc64le