diff options
author | Till Maas <[email protected]> | 2021-12-12 20:15:25 +0100 |
---|---|---|
committer | Tony Hutter <[email protected]> | 2021-12-13 13:23:48 -0800 |
commit | 24221589dd12c77ba913994cccb1c6f9011532d7 (patch) | |
tree | f298919349e7cff43e62c351cf05c83d3e35e618 /rpm/generic/zfs-dkms.spec.in | |
parent | def73c0735002ffe2b63d5450593c11f830c9b63 (diff) |
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 <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Till Maas <[email protected]>
Closes #12822
Closes #12832
Diffstat (limited to 'rpm/generic/zfs-dkms.spec.in')
-rw-r--r-- | rpm/generic/zfs-dkms.spec.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rpm/generic/zfs-dkms.spec.in b/rpm/generic/zfs-dkms.spec.in index e0c410c68..aab1d9399 100644 --- a/rpm/generic/zfs-dkms.spec.in +++ b/rpm/generic/zfs-dkms.spec.in @@ -24,9 +24,13 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch 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(post): gcc, make, perl, diffutils %if 0%{?rhel}%{?fedora}%{?mageia}%{?suse_version} Requires: kernel-devel >= @ZFS_META_KVER_MIN@, kernel-devel <= @[email protected] +Requires(post): kernel-devel >= @ZFS_META_KVER_MIN@, kernel-devel <= @[email protected] Obsoletes: spl-dkms %endif Provides: %{module}-kmod = %{version} |