From 2f94c5b3021f1d9c28d077a97974ceee580a730e Mon Sep 17 00:00:00 2001 From: Aleksander Mistewicz Date: Fri, 18 Sep 2015 12:36:31 +0200 Subject: [PATCH] Fix syntax in app-core.spec "%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 --- packaging/app-core.spec | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packaging/app-core.spec b/packaging/app-core.spec index c699d5f..7ad06d5 100644 --- a/packaging/app-core.spec +++ b/packaging/app-core.spec @@ -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 -- 2.7.4