From 500ce7373647b355ae405f6988a1e04d1cc705d1 Mon Sep 17 00:00:00 2001 From: Peter Georg Date: Jan 27 2022 14:52:19 +0000 Subject: Add obsoletes for update path --- diff --git a/SPECS/kmod-e100.spec b/SPECS/kmod-e100.spec index daa8d00..8a6caa0 100644 --- a/SPECS/kmod-e100.spec +++ b/SPECS/kmod-e100.spec @@ -21,7 +21,7 @@ Name: kmod-%{pkg} Version: 4.18.0.221 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Intel(R) PRO/100 Ethernet (%{pkg}) driver License: GPLv2 @@ -60,6 +60,16 @@ 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 + + %description This driver supports the Intel(R) PRO/100 family of adapters. @@ -127,6 +137,9 @@ fi %changelog +* Thu Jan 27 2022 Peter Georg - 4.18.0.221-3 +- Add obsoletes for update path + * Sat Jan 22 2022 Peter Georg - 4.18.0.221-2 - Enable aarch64 and ppc64le