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
This commit is contained in:
Egbert Eich 2017-10-17 14:23:03 +00:00 committed by Git OBS Bridge
parent d14e6860a8
commit 28a926b37a
2 changed files with 16 additions and 0 deletions

View File

@ -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

View File

@ -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