From fcc6124211247352b01e52a4012189bdc284a22d7381f9c8e32ae3eb162d4590 Mon Sep 17 00:00:00 2001 From: Egbert Eich Date: Tue, 17 Oct 2017 13:39:15 +0000 Subject: [PATCH] - Add magic to limit the number of flavors built in the in the OBS ring. OBS-URL: https://build.opensuse.org/package/show/science/openblas?expand=0&rev=56 --- openblas.changes | 6 ++++++ openblas.spec | 10 ++++++++++ 2 files changed, 16 insertions(+) diff --git a/openblas.changes b/openblas.changes index e52cd2c..288ee16 100644 --- a/openblas.changes +++ b/openblas.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Oct 17 13:38:47 UTC 2017 - eich@suse.com + +- Add magic to limit the number of flavors built in the + in the OBS ring. + ------------------------------------------------------------------- Thu Oct 12 10:01:10 UTC 2017 - eich@suse.com diff --git a/openblas.spec b/openblas.spec index 702249a..2da38bf 100644 --- a/openblas.spec +++ b/openblas.spec @@ -22,11 +22,21 @@ %define vers 0.2.20 %define pname openblas +%bcond_with ringdisabled + %if "%flavor" == "" %define package_name %{pname} ExclusiveArch: do_not_build %endif +# Magic for OBS Staging. Only build the flavors required by +# other packages in the ring. +%if %{with ringdisabled} + %if "%flavor" != "serial" +ExclusiveArch: do_not_build + %endif +%endif + %global build_flags USE_THREAD=1 USE_OPENMP=1 %if "%flavor" == "serial"