X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre-dkms.spec.in;h=878b4727868ca804bed3195717a2bcedb01d445f;hb=refs%2Fchanges%2F44%2F50344%2F9;hp=755a3b56df3be424d51697ee78099cbc59128b70;hpb=4e7622074296872f63235bdc7790bcb2d1f9b7db;p=fs%2Flustre-release.git diff --git a/lustre-dkms.spec.in b/lustre-dkms.spec.in index 755a3b5..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 @@ -50,8 +60,7 @@ Version: @VERSION@ Release: %{buildid}%{?dist} Summary: Kernel module(s) (dkms) -Group: System Environment/Kernel -License: GPLv2+ +License: GPL-2.0-only URL: http://lustre.opensfs.org/ Source0: @PACKAGE@-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -61,6 +70,7 @@ BuildArch: noarch # (ie, "BUILD_DEPENDS[#]="), and have latest DKMS fixes integrated # for bugs that prevented our module to build/install. Requires: dkms >= 2.2.0.3-28.git.7c3e7c5 +Requires: flex bison libmount-devel libmount # for lnetctl Requires: libyaml-devel Requires: zlib-devel @@ -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