-%bcond_with x
-%bcond_with wayland
-
Name: app-core
Summary: Application basic
-Version: 1.2
+Version: 1.3.1
Release: 0
Group: Application Framework/Libraries
License: Apache-2.0
Source0: app-core-%{version}.tar.gz
-%if %{with x}
-BuildRequires: pkgconfig(x11)
-BuildRequires: pkgconfig(ecore-x)
-BuildRequires: pkgconfig(eina)
-%else
-%if %{with wayland}
BuildRequires: pkgconfig(ecore-wayland)
-%endif
-%endif
+BuildRequires: pkgconfig(wayland-client)
+BuildRequires: pkgconfig(tizen-extension-client)
+BuildRequires: pkgconfig(wayland-tbm-client)
Source1001: app-core.manifest
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(sensor)
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
Requires: pkgconfig(vconf)
Requires: pkgconfig(elementary)
Requires: pkgconfig(aul)
-%if %{with x}
-Requires: pkgconfig(x11)
-%endif
%description common-devel
Application basics common (devel)
%description template
Application basics template
-%if "%{?profile}" == "wearable"
-%define appfw_feature_background_management 1
-%else
-%if "%{?profile}" == "mobile"
-%define appfw_feature_background_management 1
-%else
-%if "%{?profile}" == "tv"
-%define appfw_feature_background_management 0
-%endif
-%endif
-%endif
-
%prep
%setup -q
cp %{SOURCE1001} .
%build
-%if %{with wayland}
-_WITH_WAYLAND=ON
-%endif
-%if %{with x}
-_WITH_X11=ON
-%endif
-%if 0%{?appfw_feature_background_management}
-_APPFW_FEATURE_BACKGROUND_MANAGEMENT=ON
-%endif
-
+MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
%cmake . \
- -D_WITH_WAYLAND:BOOL=${_WITH_WAYLAND} \
- -D_WITH_X11:BOOL=${_WITH_X11} \
- -D_APPFW_FEATURE_BACKGROUND_MANAGEMENT:BOOL=${_APPFW_FEATURE_BACKGROUND_MANAGEMENT} \
- -DENABLE_GTK=OFF
+ -DENABLE_GTK=OFF \
+ -DFULLVER=%{version} \
+ -DMAJORVER=${MAJORVER}
make %{?_smp_mflags}
%files efl-devel
%manifest %{name}.manifest
%{_includedir}/appcore/appcore-efl.h
+%{_includedir}/appcore/appcore_ui_base.h
%{_libdir}/libappcore-efl.so
%{_libdir}/pkgconfig/appcore-efl.pc
%{_libdir}/libappcore-common.so
%{_libdir}/pkgconfig/appcore-common.pc
%{_includedir}/appcore/appcore-common.h
-%{_includedir}/SLP_Appcore_PG.h
+%{_includedir}/appcore/appcore_base.h
+