From: Rusty Lynch Date: Mon, 8 Jul 2013 20:02:29 +0000 (-0700) Subject: Refactor spec handling of decrypt support X-Git-Tag: accepted/tizen/20130708.234009~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=88e9575cb88cf115ab656de64cb81d3cb5c65ae6;p=platform%2Fframework%2Fweb%2Fwrt.git Refactor spec handling of decrypt support Change-Id: Ia1ce892e6093bc03e18a72e9ce83bb4ad06fd856 --- diff --git a/packaging/wrt.spec b/packaging/wrt.spec index 6719cea..36117a8 100644 --- a/packaging/wrt.spec +++ b/packaging/wrt.spec @@ -1,4 +1,5 @@ %bcond_with wayland +%bcond_with decrypt Name: wrt Summary: Web runtime Version: 0.8.198.3 @@ -48,7 +49,7 @@ BuildRequires: pkgconfig(wrt-popup-ace-runner) BuildRequires: pkgconfig(sysman) BuildRequires: pkgconfig(app2sd) BuildRequires: pkgconfig(capi-system-system-settings) -%if !%{with wayland} +%if %{with decrypt} BuildRequires: pkgconfig(osp-appfw) BuildRequires: osp-appfw-internal-devel Requires: osp-appfw @@ -94,12 +95,16 @@ export LDFLAGS+="-Wl,--rpath=%{_libdir}" -DPROJECT_VERSION=%{version} \ -DCMAKE_BUILD_TYPE=%{?build_type:%build_type} \ %if %{with wayland} - -DDECRYPT_SUPPORT=Off \ -DX11_SUPPORT=Off \ %else - -DDECRYPT_SUPPORT=On \ -DX11_SUPPORT=On \ %endif +%if %{with decrypt} + -DDECRYPT_SUPPORT=On \ +%else + -DDECRYPT_SUPPORT=Off \ +%endif + %{?WITH_TESTS:-DWITH_TESTS=%WITH_TESTS} make %{?jobs:-j%jobs}