From fda00ae1ee946b2f27c1e398872fcddd57779a0d Mon Sep 17 00:00:00 2001 From: Peter Georg Date: Jan 27 2022 13:12:08 +0000 Subject: Add obsoletes for update path --- diff --git a/SPECS/kmod-pata_jmicron.spec b/SPECS/kmod-pata_jmicron.spec index 756cb7f..11df1ce 100644 --- a/SPECS/kmod-pata_jmicron.spec +++ b/SPECS/kmod-pata_jmicron.spec @@ -21,7 +21,7 @@ Name: kmod-%{pkg} Version: 4.18.0.80 -Release: 3%{?dist} +Release: 4%{?dist} Summary: JMicron PATA Controller (%{pkg}) driver License: GPLv2 @@ -58,6 +58,22 @@ 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 + +%if "%{version}" == "4.18.0.80" && "%{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 JMicron IDE controllers. @@ -125,6 +141,9 @@ fi %changelog +* Thu Jan 27 2022 Peter Georg - 4.18.0.80-4 +- Add obsoletes for update path + * Wed Jan 26 2022 Peter Georg - 4.18.0.80-3 - Drop dracut conf