Refactor spec handling of decrypt support 56/5556/1
authorRusty Lynch <rusty.lynch@intel.com>
Mon, 8 Jul 2013 20:02:29 +0000 (13:02 -0700)
committerRusty Lynch <rusty.lynch@intel.com>
Mon, 8 Jul 2013 20:02:29 +0000 (13:02 -0700)
Change-Id: Ia1ce892e6093bc03e18a72e9ce83bb4ad06fd856

packaging/wrt.spec

index 6719cea..36117a8 100644 (file)
@@ -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}