+%endif
+%if %{with lustre_tests_lutf}
+Requires: python3 >= 3.6.0
+BuildRequires: python3-devel >= 3.6.0, swig
+%endif
+BuildRequires: libtool pkgconfig(yaml-0.1) pkgconfig(zlib) pkgconfig(libnl-3.0) flex bison
+%if "%{_vendor}" == "redhat"
+BuildRequires: redhat-rpm-config
+BuildRequires: pkgconfig
+%if 0%{?rhel} > 7 || 0%{?fedora} > 33 || 0%{?rhel} < 1
+Suggests: bash-completion
+%endif
+%else
+%if 0%{?openEuler}
+BuildRequires: openEuler-rpm-config
+%if %{with ldiskfs}
+BuildRequires: kernel-debugsource
+%endif
+%endif
+BuildRequires: pkg-config
+%endif
+%if %{with gss}
+BuildRequires: krb5-devel openssl-devel
+%endif
+%if %{with lustre_modules}
+# abuild (auto-build) used by SUSE Open Build Service needs kernel-source as
+# a build requirement, but the code which extracts these requirements does not
+# understand the percent-open-close-paren construct aka %%()
+# [NOTE: a percent abovie is doubled to avoid yet another rpmbuild warning]
+# such occurances as failures. So the following dance allows the requirements
+# to be seen by abuild, but ignored by lbuild.
+%if "%(echo $USER)" != "abuild"
+%else
+BuildRequires: kernel-source
+%endif
+%endif