From a95f2355d073ca2a43e8de9170aee8fd161763300513084c4bd655e17649b7cc Mon Sep 17 00:00:00 2001 From: Christian Goll Date: Wed, 24 Jan 2024 14:43:56 +0000 Subject: [PATCH] Accepting request 1141020 from home:dimstar:Factory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix dependency of testsuite when building without hdf5 (have_hdf5=0). The previously use construct %{?have_hdf5:%ts_depends: does not behave as intended by the line-author: %{?…:} does not include a question of value, but only if the variable is defined or undefind. OBS-URL: https://build.opensuse.org/request/show/1141020 OBS-URL: https://build.opensuse.org/package/show/network:cluster/slurm?expand=0&rev=286 --- slurm.changes | 9 +++++++++ slurm.spec | 6 ++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/slurm.changes b/slurm.changes index 3d89146..c85a128 100644 --- a/slurm.changes +++ b/slurm.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Tue Jan 23 15:59:07 UTC 2024 - Dominique Leuenberger + +- Fix dependency of testsuite when building without hdf5 + (have_hdf5=0). The previously use construct + %{?have_hdf5:%ts_depends: does not behave as intended by the + line-author: %{?…:} does not include a question of value, but + only if the variable is defined or undefind. + ------------------------------------------------------------------- Fri Jan 12 11:08:01 UTC 2024 - Christian Goll diff --git a/slurm.spec b/slurm.spec index 1185d82..9f683a9 100644 --- a/slurm.spec +++ b/slurm.spec @@ -1,5 +1,5 @@ # -# spec file +# spec file for package slurm # # Copyright (c) 2024 SUSE LLC # @@ -584,7 +584,9 @@ Requires: %{name} = %version Requires: %{name}-auth-none = %version Requires: %{name}-cray = %version Requires: %{name}-devel = %version -%{?have_hdf5:%ts_depends: %{name}-hdf5 = %version} +%if %{?have_hdf5} +%ts_depends: %{name}-hdf5 = %version +%endif Requires: %{name}-lua = %version Requires: %{name}-munge = %version Requires: %{name}-node = %version