-
-Name: app-core
-Summary: Application basic
-Version: 1.2
-Release: 26
-Group: TO_BE/FILLED_IN
-License: Apache License, Version 2.0
-Source0: app-core-%{version}.tar.gz
+Name: app-core
+Summary: Application basic
+Version: 1.8.0
+Release: 0
+Group: Application Framework/Libraries
+License: Apache-2.0
+Source0: app-core-%{version}.tar.gz
+BuildRequires: pkgconfig(ecore-wayland)
+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(vconf)
BuildRequires: pkgconfig(aul)
BuildRequires: pkgconfig(rua)
BuildRequires: pkgconfig(dlog)
-BuildRequires: pkgconfig(x11)
-BuildRequires: pkgconfig(sysman)
BuildRequires: pkgconfig(elementary)
BuildRequires: pkgconfig(ecore)
-BuildRequires: pkgconfig(ecore-x)
BuildRequires: pkgconfig(gobject-2.0)
BuildRequires: pkgconfig(glib-2.0)
+BuildRequires: pkgconfig(pkgmgr-info)
+BuildRequires: pkgconfig(ttrace)
BuildRequires: cmake
-BuildRequires: sysman-devel
-
+BuildRequires: pkgconfig(capi-system-info)
%description
SLP common application basic
-
%package efl
Summary: App basic EFL
Group: Development/Libraries
%description efl
Application basic EFL
+
%package efl-devel
Summary: App basic EFL (devel)
Group: Development/Libraries
%description efl-devel
Application basic EFL (devel)
+%package multiwindow
+Summary: Application core for multiwindow
+Group: Development/Libraries
+Requires(post): /sbin/ldconfig
+Requires(postun): /sbin/ldconfig
+
+%description multiwindow
+Application core for multiwindow
+
+%package multiwindow-devel
+Summary: Application core for multiwindow (devel)
+Group: Development/Libraries
+Requires: %{name}-multiwindow = %{version}-%{release}
+Requires: %{name}-common-devel = %{version}-%{release}
+
+%description multiwindow-devel
+Application core for multiwindow (devel)
+
%package common
Summary: App basics common
Group: Development/Libraries
%description common
Application basics common
+
%package common-devel
Summary: App basics common (devel)
Group: Development/Libraries
%description common-devel
Application basics common (devel)
+
%package template
Summary: App basics template
Group: Development/Libraries
%description template
Application basics template
-
%prep
-%setup -q
+%setup -q
+cp %{SOURCE1001} .
%build
-CFLAGS="-I/usr/lib/glib-2.0/include/ -I/usr/include/glib-2.0 -I/usr/lib/dbus-1.0/include -I/usr/include/dbus-1.0 -I/usr/include/e_dbus-1 -I/usr/include/ethumb-0 -I/usr/include/edje-1 -I/usr/include/efreet-1 -I/usr/include/embryo-1 -I/usr/include/ecore-1 -I/usr/include/eet-1 -I/usr/include/evas-1 -I/usr/include/eina-1 -I/usr/include/eina-1/eina $(CFLAGS)" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DENABLE_GTK=OFF
+MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
+%cmake . \
+ -DENABLE_GTK=OFF \
+ -DFULLVER=%{version} \
+ -DMAJORVER=${MAJORVER}
+make %{?_smp_mflags}
-make %{?jobs:-j%jobs}
%install
rm -rf %{buildroot}
%make_install
-%post efl -p /sbin/ldconfig
-
-%postun efl -p /sbin/ldconfig
+%post -n app-core-efl -p /sbin/ldconfig
-%post common -p /sbin/ldconfig
+%postun -n app-core-efl -p /sbin/ldconfig
-%postun common -p /sbin/ldconfig
+%post -n app-core-multiwindow -p /sbin/ldconfig
+%postun -n app-core-multiwindow -p /sbin/ldconfig
+%post -n app-core-common -p /sbin/ldconfig
+%postun -n app-core-common -p /sbin/ldconfig
%files efl
-%defattr(-,root,root,-)
+%manifest %{name}.manifest
%{_libdir}/libappcore-efl.so.*
+%license LICENSE
%files efl-devel
-%defattr(-,root,root,-)
+%manifest %{name}.manifest
%{_includedir}/appcore/appcore-efl.h
+%{_includedir}/appcore/appcore_ui_base.h
%{_libdir}/libappcore-efl.so
%{_libdir}/pkgconfig/appcore-efl.pc
+%files multiwindow
+%manifest %{name}.manifest
+%{_libdir}/libappcore-multiwindow.so.*
+%license LICENSE
+
+%files multiwindow-devel
+%manifest %{name}.manifest
+%{_includedir}/appcore/appcore_multiwindow_base.h
+%{_libdir}/libappcore-multiwindow.so
+%{_libdir}/pkgconfig/appcore-multiwindow.pc
+
%files common
-%defattr(-,root,root,-)
+%manifest %{name}.manifest
%{_libdir}/libappcore-common.so.*
+%license LICENSE
%files common-devel
-%defattr(-,root,root,-)
+%manifest %{name}.manifest
%{_libdir}/libappcore-common.so
%{_libdir}/pkgconfig/appcore-common.pc
%{_includedir}/appcore/appcore-common.h
-%{_includedir}/SLP_Appcore_PG.h
+%{_includedir}/appcore/appcore_base.h