From fe4e7f42e4986e0ce58c8a52d869955c04f55f08 Mon Sep 17 00:00:00 2001 From: Peter Georg Date: Jan 27 2022 14:53:56 +0000 Subject: Add obsoletes for update path --- diff --git a/SPECS/kmod-jme.spec b/SPECS/kmod-jme.spec index 472db14..5d994bc 100644 --- a/SPECS/kmod-jme.spec +++ b/SPECS/kmod-jme.spec @@ -21,7 +21,7 @@ Name: kmod-%{pkg} Version: 4.18.0.358 -Release: 2%{?dist} +Release: 3%{?dist} Summary: JMicron JMC2x0 PCI-E Gigabit Ethernet (%{pkg}) driver License: GPLv2 @@ -58,6 +58,16 @@ Requires(post): %{_sbindir}/weak-modules Requires(postun): %{_sbindir}/weak-modules +%if "%{version}" == "4.18.0.358" && "%{release}" == "2%{?dist}" +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-1%{?dist} +%endif + +%if "%{version}" == "4.18.0.358" && "%{release}" == "3%{?dist}" +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-1%{?dist} +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-2%{?dist} +%endif + + %description This driver supports Gigabit Ethernet adapters based on the JMC2x0 chipsets. @@ -125,6 +135,9 @@ fi %changelog +* Thu Jan 27 2022 Peter Georg - 4.18.0.358-3 +- Add obsoletes for update path + * Sat Jan 22 2022 Peter Georg - 4.18.0.358-2 - Enable ppc64le