Packaging: fixed build error by wrong if conditional macros. 22/76322/1 accepted/tizen/common/20160623.154634 submit/tizen/20160623.111241
authorGwanglim Lee <gl77.lee@samsung.com>
Thu, 23 Jun 2016 10:55:20 +0000 (19:55 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Thu, 23 Jun 2016 10:55:20 +0000 (19:55 +0900)
Change-Id: Ia6a6ccd20ddbaa5fe89cd06e03061ab809edf9e7

packaging/enlightenment.spec

index dced8209d5ac9ba4d168646d6ad206e6341ee64f..1df79f893f040df75ab3ac5170cc099c75f335a0 100644 (file)
@@ -56,8 +56,6 @@ Development files for enlightenment
 %if "%{?profile}" == "mobile"
 %define MEMCPY_SWC use
 %endif
-%else
-%define MEMCPY_SWC nouse
 %endif
 
 %prep
@@ -71,7 +69,7 @@ export LDFLAGS+=" -pie "
 %autogen \
       --enable-function-trace \
       --enable-wayland \
-%if %{?MEMCPY_SWC} == use
+%if "%{MEMCPY_SWC}" == "use"
       --enable-memcpy_swc \
 %endif
       --enable-quick-init
@@ -80,7 +78,7 @@ make %{?_smp_mflags}
 
 %install
 %make_install
-%if %{?MEMCPY_SWC} == use
+%if "%{MEMCPY_SWC}" == "use"
 cp -af %{_builddir}/%{buildsubdir}/src/bin/libmemcpy_swc.so* %{buildroot}/%{_libdir}/
 %endif
 
@@ -89,7 +87,7 @@ cp -af %{_builddir}/%{buildsubdir}/src/bin/libmemcpy_swc.so* %{buildroot}/%{_lib
 %defattr(-,root,root,-)
 %license COPYING
 %attr(750,root,root) %{_bindir}/enlightenment*
-%if %{?MEMCPY_SWC} == use
+%if "%{MEMCPY_SWC}" == "use"
 %{_libdir}/libmemcpy_swc.so*
 %endif
 %{_libdir}/enlightenment/*