-Requires: attr, rsync, perl, lsof, libtool, /usr/bin/getconf
+%endif
+%if %{with lustre_tests_lutf}
+Requires: python3 >= 3.6.0
+%endif
+Requires: attr, rsync, lsof, /usr/bin/getconf
+Requires: /usr/sbin/getenforce, acl, /usr/bin/killall, /usr/bin/ping, bc
+# Of the supported targets, only rhel7 doesn't support Recommends.
+%if 0%{?rhel} > 7 || 0%{?fedora} > 33 || 0%{?rhel} < 1
+Recommends: perl, dbench, iozone
+# Either of these is sufficient
+Suggests: pdsh, clush
+%endif
+%if %{with mpi}
+%if "%{mpi_name}" == "mpich"
+BuildRequires: mpich-devel
+%endif
+%if "%{mpi_name}" == "openmpi"
+%if "%{_vendor}" == "redhat" || 0%{?openEuler} || 0%{?suse_version} < 1500
+BuildRequires: openmpi-devel
+%else
+BuildRequires: openmpi2-devel
+%endif
+# openmpi
+%endif
+# mpi
+%endif