From c133c07aeff50e0d2f277f803d1df63c300d4273 Mon Sep 17 00:00:00 2001 From: Peter Georg Date: Jan 27 2022 13:13:10 +0000 Subject: Add obsoletes for update path --- diff --git a/SPECS/kmod-sky2.spec b/SPECS/kmod-sky2.spec index 747bac6..7b864f5 100644 --- a/SPECS/kmod-sky2.spec +++ b/SPECS/kmod-sky2.spec @@ -21,7 +21,7 @@ Name: kmod-%{pkg} Version: 4.18.0.240 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Marvell Yukon 2 Gigabit Ethernet (%{pkg}) driver License: GPLv2 @@ -65,6 +65,16 @@ Requires(post): %{_sbindir}/weak-modules Requires(postun): %{_sbindir}/weak-modules +%if "%{version}" == "4.18.0.240" && "%{release}" == "2%{?dist}" +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-1%{?dist} +%endif + +%if "%{version}" == "4.18.0.240" && "%{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 Marvell Yukon 2 chipset: @@ -176,6 +186,9 @@ fi %changelog +* Thu Jan 27 2022 Peter Georg - 4.18.0.240-3 +- Add obsoletes for update path + * Sat Jan 22 2022 Peter Georg - 4.18.0.240-2 - Enable ppc64le