Name: app-core
Summary: Application basic
-Version: 1.2
+Version: 1.3.0
Release: 0
Group: Application Framework/Libraries
License: Apache-2.0
%else
%if %{with wayland}
BuildRequires: pkgconfig(ecore-wayland)
+BuildRequires: pkgconfig(wayland-client)
+BuildRequires: pkgconfig(tizen-extension-client)
+BuildRequires: pkgconfig(wayland-tbm-client)
%endif
%endif
Source1001: app-core.manifest
-BuildRequires: pkgconfig(dbus-1)
+BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(sensor)
BuildRequires: pkgconfig(vconf)
BuildRequires: pkgconfig(aul)
BuildRequires: pkgconfig(ecore)
BuildRequires: pkgconfig(gobject-2.0)
BuildRequires: pkgconfig(glib-2.0)
-BuildRequires: pkgconfig(libtzplatform-config)
BuildRequires: pkgconfig(pkgmgr-info)
+BuildRequires: pkgconfig(ttrace)
BuildRequires: cmake
+BuildRequires: pkgconfig(capi-system-info)
%description
SLP common application basic
%description template
Application basics template
-
%prep
-%setup -q
+%setup -q
cp %{SOURCE1001} .
-
%build
-
-%cmake . \
%if %{with wayland}
--Dwith_wayland=TRUE\
+_WITH_WAYLAND=ON
%endif
%if %{with x}
--Dwith_x11=TRUE\
+_WITH_X11=ON
%endif
--DENABLE_GTK=OFF
+
+MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
+%cmake . \
+ -D_WITH_WAYLAND:BOOL=${_WITH_WAYLAND} \
+ -D_WITH_X11:BOOL=${_WITH_X11} \
+ -DENABLE_GTK=OFF \
+ -DFULLVER=%{version} \
+ -DMAJORVER=${MAJORVER}
make %{?_smp_mflags}