From 55eea07d97205f48373a8238f23ac6ff16174b6b Mon Sep 17 00:00:00 2001 From: Peter Bartfai Date: Wed, 1 Mar 2017 15:19:05 +0100 Subject: [PATCH] Make OBS detection username independent --- leocad.spec | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/leocad.spec b/leocad.spec index 8e1d83d4..4f1f5963 100644 --- a/leocad.spec +++ b/leocad.spec @@ -8,11 +8,7 @@ %define dist .SUSE%(echo %{sles_version} | sed 's/0$//') %endif -%if "%{vendor}" == "obs://build.opensuse.org/home:pbartfai" -%define opensuse_bs 1 -%endif - -%if "%{vendor}" == "obs://private/home:pbartfai" +%if %(if [[ "%{vendor}" == obs://* ]] ; then echo 1 ; else echo 0 ; fi) %define opensuse_bs 1 %endif