From e41002dd4325d9d52ee6c0903912f2a3299b3b69 Mon Sep 17 00:00:00 2001 From: Peter Georg Date: Jan 27 2022 12:34:25 +0000 Subject: Add obsoletes for update path --- diff --git a/SPECS/kmod-qla4xxx.spec b/SPECS/kmod-qla4xxx.spec index 0278ddc..8b55dd6 100644 --- a/SPECS/kmod-qla4xxx.spec +++ b/SPECS/kmod-qla4xxx.spec @@ -21,7 +21,7 @@ Name: kmod-%{pkg} Version: 4.18.0.147 -Release: 3%{?dist} +Release: 4%{?dist} Summary: QLogic iSCSI HBA (%{pkg}) driver License: GPLv2 @@ -59,6 +59,16 @@ Requires(post): %{_sbindir}/weak-modules Requires(postun): %{_sbindir}/weak-modules +%if "%{version}" == "4.18.0.147" && "%{release}" == "3%{?dist}" +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-2%{?dist} +%endif + +%if "%{version}" == "4.18.0.147" && "%{release}" == "4%{?dist}" +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-2%{?dist} +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-3%{?dist} +%endif + + %description This package provides the QLogic iSCSI HBA (%{pkg}) driver. Compared to the in-kernel driver this driver re-enables support for deprecated adapters: @@ -139,6 +149,9 @@ fi %changelog +* Thu Jan 27 2022 Peter Georg - 4.18.0.147-4 +- Add obsoletes for update path + * Sat Jan 22 2022 Peter Georg - 4.18.0.147-3 - Enable ppc64le