From 28a926b37a8f92965b8f50e6b552ead2d61d825f54829b599c93c1ca523be59c Mon Sep 17 00:00:00 2001 From: Egbert Eich Date: Tue, 17 Oct 2017 14:23:03 +0000 Subject: [PATCH] Accepting request 534479 from home:eeich:branches:science - Add magic to limit the number of flavors built in the in the OBS ring. OBS-URL: https://build.opensuse.org/request/show/534479 OBS-URL: https://build.opensuse.org/package/show/science/hdf5?expand=0&rev=45 --- hdf5.changes | 6 ++++++ hdf5.spec | 10 ++++++++++ 2 files changed, 16 insertions(+) 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