Fix syntax in app-core.spec 67/48367/1 accepted/tizen/mobile/20150922.000819 accepted/tizen/tv/20150922.000838 accepted/tizen/wearable/20150922.000853 submit/tizen/20150921.090834 submit/tizen_common/20151015.190624 submit/tizen_common/20151019.135620 tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release
authorAleksander Mistewicz <a.mistewicz@samsung.com>
Fri, 18 Sep 2015 10:36:31 +0000 (12:36 +0200)
committerAleksander Mistewicz <a.mistewicz@samsung.com>
Fri, 18 Sep 2015 10:57:26 +0000 (12:57 +0200)
"%else if" is not known by rpm's spec parser. In rpm's code
when it recognizes "%else" it nullifies the string right after.
Everything after "%else" is nonexistent. Proper syntax is:
%if ()
%else
%if ()
%endif
%endif

Thanks to Oskar Switalski for finding this bug.

Change-Id: I83e35f70592a68c7483ff67e50789601f35868ca
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
packaging/app-core.spec

index c699d5f..7ad06d5 100644 (file)
@@ -12,9 +12,11 @@ Source0:        app-core-%{version}.tar.gz
 BuildRequires:  pkgconfig(x11)
 BuildRequires:  pkgconfig(ecore-x)
 BuildRequires:  pkgconfig(eina)
-%else if %{with wayland}
+%else
+%if %{with wayland}
 BuildRequires:  pkgconfig(ecore-wayland)
 %endif
+%endif
 Source1001:     app-core.manifest
 BuildRequires:  pkgconfig(dbus-1)
 BuildRequires:  pkgconfig(sensor)
@@ -123,26 +125,22 @@ rm -rf %{buildroot}
 
 %files efl
 %manifest %{name}.manifest
-%defattr(-,root,root,-)
 %{_libdir}/libappcore-efl.so.*
 %license LICENSE
 
 %files efl-devel
 %manifest %{name}.manifest
-%defattr(-,root,root,-)
 %{_includedir}/appcore/appcore-efl.h
 %{_libdir}/libappcore-efl.so
 %{_libdir}/pkgconfig/appcore-efl.pc
 
 %files common
 %manifest %{name}.manifest
-%defattr(-,root,root,-)
 %{_libdir}/libappcore-common.so.*
 %license LICENSE
 
 %files common-devel
 %manifest %{name}.manifest
-%defattr(-,root,root,-)
 %{_libdir}/libappcore-common.so
 %{_libdir}/pkgconfig/appcore-common.pc
 %{_includedir}/appcore/appcore-common.h