SHA256
1
0
forked from pool/mvapich2

Fix order as factory parser is dumb

OBS-URL: https://build.opensuse.org/package/show/science:HPC/mvapich2?expand=0&rev=14
This commit is contained in:
Nicolas Morey-Chaisemartin 2017-07-03 14:41:27 +00:00 committed by Git OBS Bridge
parent 56f5ea6ff5
commit 4488fcb8df

View File

@ -16,13 +16,11 @@
#
%global flavor @BUILD_FLAVOR@%nil
%define unset_flavor BUILD_FLAVOR
# Tricker to detect if BUILD_FLAVOR was not replaced and handle it gracefully
%if "%{flavor}" == "" || "%{flavor}" == "@%{unset_flavor}@"
%define pack_suff %{nil}
%else
%if "%{flavor}" != ""
%define pack_suff -%{flavor}
%else
%define pack_suff %{nil}
%endif
%if "%flavor" == "testsuite"