From 548edd1c225e6938d00c7b89fb8cadd976262c8eb3169b927d894c6dbf7ee4fc Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Tue, 17 Oct 2017 19:26:22 +0000 Subject: [PATCH] Accepting request 534460 from home:eeich:branches:multimedia:libs - Add magic to limit the number of flavors built in the in the OBS ring. OBS-URL: https://build.opensuse.org/request/show/534460 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/fftw3?expand=0&rev=47 --- fftw3.changes | 6 ++++++ fftw3.spec | 10 ++++++++++ 2 files changed, 16 insertions(+) diff --git a/fftw3.changes b/fftw3.changes index 17527b6..f180b3c 100644 --- a/fftw3.changes +++ b/fftw3.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Oct 17 13:23:12 UTC 2017 - eich@suse.com + +- Add magic to limit the number of flavors built in the + in the OBS ring. + ------------------------------------------------------------------- Sat Oct 14 17:13:06 UTC 2017 - eich@suse.com diff --git a/fftw3.spec b/fftw3.spec index 02a706a..a0b4bca 100644 --- a/fftw3.spec +++ b/fftw3.spec @@ -24,11 +24,21 @@ %define vers 3.3.5 %define _ver 3_3_5 +%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}" == "standard" %define mpi_flavor standard %bcond_without mpi