Whamcloud - gitweb
LU-12518 llite: Accept EBUSY for page unaligned read
[fs/lustre-release.git] / lustre.spec.in
index 380fe87..f23dca2 100644 (file)
@@ -165,13 +165,11 @@ Requires: libselinux
 %endif
 %if %{with lustre_modules}
 
-%if 0%{?rhel} >= 8
-%if %{undefined kernel_module_package_buildreqs}
+%if 0%{?rhel} >= 8 && %{undefined kernel_module_package_buildreqs}
 BuildRequires: redhat-rpm-config kernel-rpm-macros elfutils-libelf-devel kmod
-%endif
-%endif
-
+%else
 BuildRequires: %kernel_module_package_buildreqs
+%endif
 %if %{_vendor}=="redhat"
 BuildRequires: redhat-rpm-config
 %endif