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