From 4105a57100a51fbbb7d5727c9773f23748927ef5 Mon Sep 17 00:00:00 2001 From: Peter Georg Date: Jan 27 2022 19:04:57 +0000 Subject: Add obsoletes for update path --- diff --git a/SPECS/kmod-btrfs.spec b/SPECS/kmod-btrfs.spec index 06ed621..3bb4aa3 100644 --- a/SPECS/kmod-btrfs.spec +++ b/SPECS/kmod-btrfs.spec @@ -58,6 +58,15 @@ Supplements: btrfs-progs Recommends: btrfs-progs +%if "%{version}" == "5.14.0.34" && "%{release}" == "2%{?dist}" +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-1%{?dist} +%endif + +%if "%{version}" == "5.14.0.45" && "%{release}" == "2%{?dist}" +Obsoletes: kmod-%{pkg} = %{?epoch:%{epoch}:}%{version}-1%{?dist} +%endif + + %description Btrfs is a general purpose copy-on-write filesystem with extents, writable snapshotting, support for multiple devices and many more features focused on