X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre-dkms.spec.in;h=878b4727868ca804bed3195717a2bcedb01d445f;hb=fc520240ad57a7bbff990a68b8fbaff0c6ec27ae;hp=98537078c50d489fc137cc641c3b4e58b9d86614;hpb=941d59e7b9f116d69be382f940c07e5b1682cd7f;p=fs%2Flustre-release.git diff --git a/lustre-dkms.spec.in b/lustre-dkms.spec.in index 9853707..878b472 100644 --- a/lustre-dkms.spec.in +++ b/lustre-dkms.spec.in @@ -1,3 +1,13 @@ +# SPDX-License-Identifier: GPL-2.0 + +# +# This file is part of Lustre, http://www.lustre.org/ +# +# lustre-dkms.spec.in +# +# spec file template for RHEL dkms package builds +# + %bcond_without servers %bcond_without zfs %bcond_with ldiskfs @@ -92,8 +102,14 @@ Conflicts: @PACKAGE@-dkms Conflicts: @PACKAGE@-all-dkms %endif %endif -Requires: gcc, make, perl -Requires: kernel-devel +Requires: gcc, make +Requires: kernel-devel >= 3.10 +%if 0%{?rhel} > 7 || 0%{?fedora} > 33 || 0%{?rhel} < 1 +Recommends: perl +Suggests: bash-completion +%else +Requires: perl +%endif Provides: %{kmod_name} = %{version} Provides: @PACKAGE@-modules = %{version} %if %{with servers} @@ -146,8 +162,8 @@ fi %post for POSTINST in /usr/lib/dkms/common.postinst; do if [ -f $POSTINST ]; then - $POSTINST %{module} %{version} - exit $? + $POSTINST %{module} %{version} + exit $? fi echo "WARNING: $POSTINST does not exist." done