From 88e9575cb88cf115ab656de64cb81d3cb5c65ae6 Mon Sep 17 00:00:00 2001 From: Rusty Lynch Date: Mon, 8 Jul 2013 13:02:29 -0700 Subject: [PATCH] Refactor spec handling of decrypt support Change-Id: Ia1ce892e6093bc03e18a72e9ce83bb4ad06fd856 --- packaging/wrt.spec | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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} -- 2.7.4