From 69c4464cd53dafd48c086ecc24a5f860f67c74e3a8c1142f38548ba0fd8e06ee Mon Sep 17 00:00:00 2001 From: Egbert Eich Date: Sun, 7 Jul 2019 12:42:55 +0000 Subject: [PATCH] - Fix test for oS Factory OBS-URL: https://build.opensuse.org/package/show/network:cluster/slurm?expand=0&rev=95 --- slurm.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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