From 7c50ee635daaae0978832aaf07e40a5af1a89cfe Mon Sep 17 00:00:00 2001 From: Peter Georg Date: Jan 27 2022 14:51:50 +0000 Subject: Add obsoletes for update path --- diff --git a/SPECS/kmod-3w-xxxx.spec b/SPECS/kmod-3w-xxxx.spec index 7da535a..27b5a9c 100644 --- a/SPECS/kmod-3w-xxxx.spec +++ b/SPECS/kmod-3w-xxxx.spec @@ -21,7 +21,7 @@ Name: kmod-%{pkg} Version: 4.18.0.221 -Release: 3%{?dist} +Release: 4%{?dist} Summary: 3ware 5/6/7/8xxx ATA RAID Controller (%{pkg}) driver License: GPLv2 @@ -59,6 +59,22 @@ Requires(post): %{_sbindir}/weak-modules Requires(postun): %{_sbindir}/weak-modules +%if "%{version}" == "4.18.0.221" && "%{release}" == "2%{?dist}" +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-1%{?dist} +%endif + +%if "%{version}" == "4.18.0.221" && "%{release}" == "3%{?dist}" +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-1%{?dist} +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-2%{?dist} +%endif + +%if "%{version}" == "4.18.0.221" && "%{release}" == "4%{?dist}" +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-1%{?dist} +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-2%{?dist} +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-3%{?dist} +%endif + + %description This driver supports 3ware's 5/6/7/8xxx series ATA RAID controller cards. @@ -126,6 +142,9 @@ fi %changelog +* Thu Jan 27 2022 Peter Georg - 4.18.0.221-4 +- Add obsoletes for update path + * Wed Jan 26 2022 Peter Georg - 4.18.0.221-3 - Drop dracut conf