From 25cd7b520d2f0597ae98d4fd9309cc5e66c55da8 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Tue, 13 Apr 2021 16:33:06 -0700 Subject: [PATCH] Obsolete earlier packages due to version bump Follow up to d5ef91af which adds a missing 'obsoletes' for the libzfs-devel package. Add a comment to the zfs.spec file as a reminder that previous versions of the package should be marked as obsolete. Reviewed-by: Olaf Faaland Signed-off-by: Brian Behlendorf Closes #11844 Closes #11895 --- rpm/generic/zfs.spec.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rpm/generic/zfs.spec.in b/rpm/generic/zfs.spec.in index 13e154948d..997f62332c 100644 --- a/rpm/generic/zfs.spec.in +++ b/rpm/generic/zfs.spec.in @@ -208,6 +208,9 @@ This library provides a variety of compatibility functions for OpenZFS: %post -n libuutil3 -p /sbin/ldconfig %postun -n libuutil3 -p /sbin/ldconfig +# The library version is encoded in the package name. When updating the +# version information it is important to add an obsoletes line below for +# the previous version of the package. %package -n libzfs5 Summary: Native ZFS filesystem library for Linux Group: System Environment/Kernel @@ -232,6 +235,7 @@ Provides: libnvpair3-devel Provides: libuutil3-devel Obsoletes: zfs-devel Obsoletes: libzfs2-devel +Obsoletes: libzfs4-devel %description -n libzfs5-devel This package contains the header files needed for building additional