X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=packaging%2Frpm-installer.spec;h=2f610b9867c1af43b046326542c7769a184d5001;hb=c8c9b24d4dc2022b9a4d4e072ccc498d4aa677a2;hp=8ddb381594d955882de8b0d90a398bb59e13a2a2;hpb=196a642ed1054e094adcd195f65e6519ca119e6c;p=platform%2Fcore%2Fbase%2Frpm-installer.git diff --git a/packaging/rpm-installer.spec b/packaging/rpm-installer.spec index 8ddb381..2f610b9 100755 --- a/packaging/rpm-installer.spec +++ b/packaging/rpm-installer.spec @@ -1,3 +1,4 @@ +%bcond_with wayland %bcond_with x Name: rpm-installer @@ -36,9 +37,10 @@ BuildRequires: pkgconfig(edje) BuildRequires: pkgconfig(libtzplatform-config) BuildRequires: gettext-tools %if %{with x} -BuildRequires: pkgconfig(ecore-x) -%else -ExclusiveArch: +BuildRequires: pkgconfig(ecore-x) +%endif +%if %{with wayland} +BuildRequires: pkgconfig(ecore-wayland) %endif Requires: cpio @@ -51,7 +53,17 @@ cp %{SOURCE1001} . %build CFLAGS+=" -fpic" -cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} +%cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} \ +%if %{with wayland} + -DWAYLAND_SUPPORT=On \ +%else + -DWAYLAND_SUPPORT=Off \ +%endif +%if %{with x} + -DX11_SUPPORT=On +%else + -DX11_SUPPORT=Off +%endif make %{?jobs:-j%jobs}