diff --git a/slurm.spec b/slurm.spec index ffa4536..8b87725 100644 --- a/slurm.spec +++ b/slurm.spec @@ -56,7 +56,8 @@ %define have_netloc 1 %endif -%if 0%{?is_opensuse:1} || 0%{?sle_version} >= 150000 +%define is_factory ( 0%{?is_opensuse:1} && 0%{!?sle_version:1} ) +%if %is_factory || 0%{?sle_version} >= 150000 %define have_hdf5 1 %define have_boolean_deps 1 %endif @@ -135,8 +136,12 @@ BuildRequires: pkgconfig BuildRequires: postgresql-devel >= 8.0.0 BuildRequires: readline-devel %if 0%{?suse_version} > 1310 || 0%{?sle_version} + %if 0%{?sle_version} >= 120200 +BuildRequires: infiniband-diags-devel + %else BuildRequires: libibmad-devel BuildRequires: libibumad-devel + %endif %endif %if 0%{?suse_version} > 1140 BuildRequires: libhwloc-devel