+# 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
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)
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}
%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