rpm: Silence "unversioned Obsoletes" warnings on EL 9

Get rid of RPM warnings on AlmaLinux 9:

"It's not recommended to have unversioned Obsoletes"

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #13584
Closes #13638
This commit is contained in:
Tony Hutter 2022-07-11 11:35:01 -07:00 committed by GitHub
parent e6489be347
commit 677ca1e825
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 11 deletions

View File

@ -31,7 +31,7 @@ Requires(post): gcc, make, perl, diffutils
%if 0%{?rhel}%{?fedora}%{?mageia}%{?suse_version} %if 0%{?rhel}%{?fedora}%{?mageia}%{?suse_version}
Requires: kernel-devel >= @ZFS_META_KVER_MIN@, kernel-devel <= @ZFS_META_KVER_MAX@.999 Requires: kernel-devel >= @ZFS_META_KVER_MIN@, kernel-devel <= @ZFS_META_KVER_MAX@.999
Requires(post): kernel-devel >= @ZFS_META_KVER_MIN@, kernel-devel <= @ZFS_META_KVER_MAX@.999 Requires(post): kernel-devel >= @ZFS_META_KVER_MIN@, kernel-devel <= @ZFS_META_KVER_MAX@.999
Obsoletes: spl-dkms Obsoletes: spl-dkms <= %{version}
%endif %endif
Provides: %{module}-kmod = %{version} Provides: %{module}-kmod = %{version}
AutoReqProv: no AutoReqProv: no

View File

@ -96,7 +96,7 @@ Requires: libuutil3%{?_isa} = %{version}-%{release}
Requires: libzfs5%{?_isa} = %{version}-%{release} Requires: libzfs5%{?_isa} = %{version}-%{release}
Requires: %{name}-kmod = %{version} Requires: %{name}-kmod = %{version}
Provides: %{name}-kmod-common = %{version}-%{release} Provides: %{name}-kmod-common = %{version}-%{release}
Obsoletes: spl Obsoletes: spl <= %{version}
# zfs-fuse provides the same commands and man pages that OpenZFS does. # zfs-fuse provides the same commands and man pages that OpenZFS does.
# Renaming those on either side would conflict with all available documentation. # Renaming those on either side would conflict with all available documentation.
@ -144,8 +144,8 @@ This package contains the core ZFS command line utilities.
%package -n libzpool5 %package -n libzpool5
Summary: Native ZFS pool library for Linux Summary: Native ZFS pool library for Linux
Group: System Environment/Kernel Group: System Environment/Kernel
Obsoletes: libzpool2 Obsoletes: libzpool2 <= %{version}
Obsoletes: libzpool4 Obsoletes: libzpool4 <= %{version}
%description -n libzpool5 %description -n libzpool5
This package contains the zpool library, which provides support This package contains the zpool library, which provides support
@ -161,7 +161,7 @@ for managing zpools
%package -n libnvpair3 %package -n libnvpair3
Summary: Solaris name-value library for Linux Summary: Solaris name-value library for Linux
Group: System Environment/Kernel Group: System Environment/Kernel
Obsoletes: libnvpair1 Obsoletes: libnvpair1 <= %{version}
%description -n libnvpair3 %description -n libnvpair3
This package contains routines for packing and unpacking name-value This package contains routines for packing and unpacking name-value
@ -179,7 +179,7 @@ to write self describing data structures on disk.
%package -n libuutil3 %package -n libuutil3
Summary: Solaris userland utility library for Linux Summary: Solaris userland utility library for Linux
Group: System Environment/Kernel Group: System Environment/Kernel
Obsoletes: libuutil1 Obsoletes: libuutil1 <= %{version}
%description -n libuutil3 %description -n libuutil3
This library provides a variety of compatibility functions for OpenZFS: This library provides a variety of compatibility functions for OpenZFS:
@ -205,8 +205,8 @@ This library provides a variety of compatibility functions for OpenZFS:
%package -n libzfs5 %package -n libzfs5
Summary: Native ZFS filesystem library for Linux Summary: Native ZFS filesystem library for Linux
Group: System Environment/Kernel Group: System Environment/Kernel
Obsoletes: libzfs2 Obsoletes: libzfs2 <= %{version}
Obsoletes: libzfs4 Obsoletes: libzfs4 <= %{version}
%description -n libzfs5 %description -n libzfs5
This package provides support for managing ZFS filesystems This package provides support for managing ZFS filesystems
@ -228,9 +228,9 @@ Requires: libuutil3%{?_isa} = %{version}-%{release}
Provides: libzpool5-devel = %{version}-%{release} Provides: libzpool5-devel = %{version}-%{release}
Provides: libnvpair3-devel = %{version}-%{release} Provides: libnvpair3-devel = %{version}-%{release}
Provides: libuutil3-devel = %{version}-%{release} Provides: libuutil3-devel = %{version}-%{release}
Obsoletes: zfs-devel Obsoletes: zfs-devel <= %{version}
Obsoletes: libzfs2-devel Obsoletes: libzfs2-devel <= %{version}
Obsoletes: libzfs4-devel Obsoletes: libzfs4-devel <= %{version}
%description -n libzfs5-devel %description -n libzfs5-devel
This package contains the header files needed for building additional This package contains the header files needed for building additional