packaging: use %else and %if seperately
authorChanho Park <chanho61.park@samsung.com>
Mon, 2 Feb 2015 02:21:55 +0000 (11:21 +0900)
committerChanho Park <chanho61.park@samsung.com>
Mon, 2 Feb 2015 02:21:55 +0000 (11:21 +0900)
This patch fixes previous patch because it's wrong. There is no %else if
grammar in rpmbuild. So, we should use %else %if seperately.

Change-Id: I7284ecfbd0a96f1a6dde435f91023d0862c881c8
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
packaging/emuld.spec

index 2cc725d023b2e1508fd417b0efb279f645073c5a..4eb2d39b453c1cbaf6ccf3d90bf5087d3977e75f 100644 (file)
@@ -19,9 +19,11 @@ A emulator daemon is used for communication between guest and host
 
 %if "%{?tizen_profile_name}" == "mobile"
 export CFLAGS+=" -DMOBILE"
-%elseif "%{?tizen_profile_name}" == "wearable"
+%else
+%if "%{?tizen_profile_name}" == "wearable"
 export CFLAGS+=" -DWEARABLE"
 %endif
+%endif
 
 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}