packaging: cleanup and make it build for wl + x11 18/21518/1 accepted/tizen_3.0.2014.q3_common tizen_3.0.2014.q3_common submit/tizen_common/20140522.140947 submit/tizen_mobile/20141120.000000 tizen_3.0.2014.q3_common_release
authorPhilippe Coval <philippe.coval@open.eurogiciel.org>
Thu, 22 May 2014 08:16:24 +0000 (10:16 +0200)
committerPhilippe Coval <philippe.coval@open.eurogiciel.org>
Thu, 22 May 2014 08:46:16 +0000 (10:46 +0200)
Using those conventions :
https://wiki.tizen.org/wiki/X11_equivalent_Wayland_calls_and_notes

Change-Id: Ic7cbae746d3c80bb61b7642761ad4a9e547ab13b
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
packaging/org.tizen.net-popup.spec

index aabcf8e..bff405f 100644 (file)
@@ -1,4 +1,5 @@
 %bcond_with wayland
+%bcond_with x
 
 %define _usrdir /usr
 %define _appdir %{_usrdir}/apps
@@ -6,11 +7,11 @@
 Name:       org.tizen.net-popup
 Summary:    Network Notification Popup application
 Version:    0.2.1_17
-Release:    1
+Release:    0
 Group:      App/Network
-License:    Flora License
+License:    Flora-1.1
 Source0:    %{name}-%{version}.tar.gz
-Source1001:    org.tizen.net-popup.manifest
+Source1001:    org.tizen.net-popup.manifest
 BuildRequires: cmake
 BuildRequires: pkgconfig(appcore-efl)
 BuildRequires: pkgconfig(bundle)
@@ -23,8 +24,8 @@ BuildRequires: pkgconfig(syspopup)
 BuildRequires: pkgconfig(syspopup-caller)
 BuildRequires: pkgconfig(glib-2.0)
 BuildRequires: pkgconfig(status)
-BuildRequires: pkgconfig(notification)
-BuildRequires: pkgconfig(appsvc)
+BuildRequires: pkgconfig(notification)
+BuildRequires: pkgconfig(appsvc)
 BuildRequires: gettext
 
 %description
@@ -38,12 +39,18 @@ cp %{SOURCE1001} .
 %build
 %cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} \
 %if %{with wayland}
-        -DWAYLAND_SUPPORT=On
+        -DWAYLAND_SUPPORT=On \
 %else
-        -DWAYLAND_SUPPORT=Off
+        -DWAYLAND_SUPPORT=Off \
 %endif
+%if %{with x}
+        -DX11_SUPPORT=On \
+%else
+        -DX11_SUPPORT=Off \
+%endif
+        #eol
 
-make %{?_smp_mflags}
+make %{?_smp_mflags} V=1
 
 
 %install
@@ -60,5 +67,5 @@ cp LICENSE.Flora %{buildroot}%{_datadir}/license/org.tizen.net-popup
 %manifest %{name}.manifest
 %{_appdir}/org.tizen.net-popup/bin/net-popup
 %{_datadir}/packages/org.tizen.net-popup.xml
-%{_datadir}/license/org.tizen.net-popup
+%license %{_datadir}/license/org.tizen.net-popup
 %{_datadir}/locale/*/LC_MESSAGES/net-popup.mo