summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorLi,Limin <liminx.li@intel.com>2013-12-19 10:27:31 +0800
committerLi,Limin <liminx.li@intel.com>2013-12-20 16:09:12 +0800
commit00e564c99da29bdacb3fca608b6dc25532d4b405 (patch)
treefe61be87fc4e9a17678d1b9afab86a133053210e /packaging
parent4e6301db9eb0d2abecbfa1899423813e12ebfcbb (diff)
downloadapp-svc-00e564c99da29bdacb3fca608b6dc25532d4b405.tar.gz
app-svc-00e564c99da29bdacb3fca608b6dc25532d4b405.tar.bz2
app-svc-00e564c99da29bdacb3fca608b6dc25532d4b405.zip
The display server based on X or Wayland, is now a choice of different profile in Tizen 3.0. Basically and consistently, two macros were used "with wayland" and "with x". Below summarize the combination of the macros: | wayland | x | meaning |--------------------------- | 0 | 1 | pure X11 platform(no wayland) | 1 | 0 | pure wayland platform (no X11) | 1 | 1 | wayland but X compatibility | 0 | 0 | no X and no wayland This method unifies the meaning and usage. Deploy this method to app-svc package. Signed-off-by: Li,Limin <liminx.li@intel.com> Change-Id: Ic8867f2c35a3192088de91e592ddf6e169511607
Diffstat (limited to 'packaging')
-rw-r--r--packaging/app-svc.spec15
1 files changed, 13 insertions, 2 deletions
diff --git a/packaging/app-svc.spec b/packaging/app-svc.spec
index e6b930e..57bb777 100644
--- a/packaging/app-svc.spec
+++ b/packaging/app-svc.spec
@@ -1,3 +1,6 @@
+%bcond_with x
+%bcond_with wayland
+
Name: app-svc
Summary: Application Service
Version: 0.1.53
@@ -13,7 +16,10 @@ BuildRequires: cmake
BuildRequires: sqlite3
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(ecore)
+%if %{with x}
BuildRequires: pkgconfig(x11)
+BuildRequires: pkgconfig(ecore-x)
+%endif
BuildRequires: pkgconfig(libprivilege-control)
BuildRequires: pkgconfig(bundle)
BuildRequires: pkgconfig(dbus-glib-1)
@@ -40,9 +46,14 @@ Requires: %{name} = %{version}-%{release}
%setup -q
cp %{SOURCE1001} .
-
%build
-%cmake .
+%cmake . \
+%if %{with wayland} && !%{with x}
+-Dwith_wayland=TRUE
+%else
+-Dwith_x=TRUE
+%endif
+
make %{?jobs:-j%jobs}
%install