diff --git a/hdf5.changes b/hdf5.changes index 25c7b2a..9f22b15 100644 --- a/hdf5.changes +++ b/hdf5.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Oct 17 14:07:15 UTC 2017 - eich@suse.com + +- Add magic to limit the number of flavors built in the + in the OBS ring. + ------------------------------------------------------------------- Fri Sep 8 14:35:32 UTC 2017 - eich@suse.com diff --git a/hdf5.spec b/hdf5.spec index aacb421..6b25b72 100644 --- a/hdf5.spec +++ b/hdf5.spec @@ -28,11 +28,21 @@ %define src_ver %{version}-patch1 %define pname hdf5 +%bcond_with ringdisabled + %if "%{flavor}" == "" ExclusiveArch: do_not_build %define package_name %pname %endif +# Magic for OBS Staging. Only build the flavors required by +# other packages in the ring. +%if %{with ringdisabled} + %if "%flavor" != "standard" +ExclusiveArch: do_not_build + %endif +%endif + %if "%{flavor}" == "serial" %undefine suffix %undefine mpi_flavor