zfs-dkms rpm: Fix scriptlets dependencies
To ensure that the necessary packages are available during the %post and %preun scriptlets, require them properly. Reviewed-by: Tony Hutter <hutter2@llnl.gov> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Till Maas <opensource@till.name> Closes #12822 Closes #12832
This commit is contained in:
parent
def73c0735
commit
24221589dd
|
@ -24,9 +24,13 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
Requires: dkms >= 2.2.0.3
|
Requires: dkms >= 2.2.0.3
|
||||||
|
Requires(post): dkms >= 2.2.0.3
|
||||||
|
Requires(preun): dkms >= 2.2.0.3
|
||||||
Requires: gcc, make, perl, diffutils
|
Requires: gcc, make, perl, diffutils
|
||||||
|
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
|
||||||
Obsoletes: spl-dkms
|
Obsoletes: spl-dkms
|
||||||
%endif
|
%endif
|
||||||
Provides: %{module}-kmod = %{version}
|
Provides: %{module}-kmod = %{version}
|
||||||
|
|
Loading…
Reference in New Issue