diff options
author | Olaf Faaland <[email protected]> | 2021-04-11 12:02:26 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2021-04-14 13:19:50 -0700 |
commit | f8631d0fe065c2211fa3527d4b9f5e04725382fb (patch) | |
tree | 843ea4903f3dd592e615e1b6b8db510fc985c097 /rpm | |
parent | afe2a5ca12ed0c7067898259dbc357f966524c13 (diff) |
kmod-zfs should obsolete kmod-spl as well as spl-kmod
Without this Obsoletes, using packages built --with-spec=redhat, an
upgrade from zfs-0.7 to zfs-2.x does not cause the kmod-spl-0.7 package
to be removed.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Olaf Faaland <[email protected]>
Closes #11865
Diffstat (limited to 'rpm')
-rw-r--r-- | rpm/redhat/zfs-kmod.spec.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rpm/redhat/zfs-kmod.spec.in b/rpm/redhat/zfs-kmod.spec.in index eb626e3f4..eb93aeeb2 100644 --- a/rpm/redhat/zfs-kmod.spec.in +++ b/rpm/redhat/zfs-kmod.spec.in @@ -18,6 +18,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %(/bin/echo -e "\ Requires: @PACKAGE@ = %{version}\n\ Conflicts: @PACKAGE@-dkms\n\ +Obsoletes: kmod-spl\n\ Obsoletes: spl-kmod\n\n" > %{_sourcedir}/kmod-preamble) # LDFLAGS are not sanitized by arch/*/Makefile for these architectures. |