Name: esd
Summary: Event system daemon
-Version: 0.1.10
+Version: 1.0.0
Release: 1
Group: Application Framework/Service
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
Source1: esd.service
+Source1001: %{name}.manifest
BuildRequires: cmake
BuildRequires: pkgconfig(aul)
BuildRequires: pkgconfig(bundle)
+BuildRequires: pkgconfig(parcel)
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(pkgmgr-info)
BuildRequires: pkgconfig(appsvc)
BuildRequires: pkgconfig(eventsystem)
BuildRequires: pkgconfig(vconf)
BuildRequires: pkgconfig(libtzplatform-config)
-BuildRequires: pkgconfig(libsystemd-daemon)
+BuildRequires: pkgconfig(systemd)
+BuildRequires: pkgconfig(cert-svc-vcore)
BuildRequires: pkgconfig(cynara-client)
BuildRequires: pkgconfig(cynara-creds-gdbus)
BuildRequires: pkgconfig(cynara-session)
BuildRequires: pkgconfig(security-manager)
+BuildRequires: pkgconfig(uuid)
+BuildRequires: pkgconfig(sqlite3)
+BuildRequires: pkgconfig(cion)
+BuildRequires: pkgconfig(capi-system-info)
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
%description devel
Event system Daemon (devel)
+%package -n esd-mod-cion
+Summary: ESD module for cion
+Group: Application Framework/Service
+
+%description -n esd-mod-cion
+This module is for cion
+
+%package -n esd-mod-dbus-event
+Summary: ESD module for dbus-event
+Group: Application Framework/Service
+
+%description -n esd-mod-dbus-event
+This module is for event system using dbus
+
+%define _moddir %{_datadir}/esd
+
%prep
%setup -q
+cp %{SOURCE1001} .
%build
export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
+MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
+%cmake \
+ -DFULLVER=%{version} \
+ -DMAJORVER=${MAJORVER} \
+ -DESD_MODULES_DIR=%{_moddir} \
+ .
-%cmake .
make %{?jobs:-j%jobs}
%install
rm -rf %{buildroot}
%make_install
-mkdir -p %{buildroot}%{_unitdir}/graphical.target.wants
+mkdir -p %{buildroot}%{_unitdir}/multi-user.target.wants
install -m 0644 %SOURCE1 %{buildroot}%{_unitdir}/esd.service
-ln -sf ../esd.service %{buildroot}%{_unitdir}/graphical.target.wants/esd.service
+ln -sf ../esd.service %{buildroot}%{_unitdir}/multi-user.target.wants/esd.service
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
-%manifest esd.manifest
+%manifest %{name}.manifest
%config %{_sysconfdir}/dbus-1/system.d/eventsystem.conf
%defattr(-,root,root,-)
%{_bindir}/esd
+%{_libdir}/libesd.so.*
%{_unitdir}/esd.service
-%{_unitdir}/graphical.target.wants/esd.service
+%{_unitdir}/multi-user.target.wants/esd.service
+%attr(0644,root,root) %{_datadir}/dbus-1/system-services/tizen.system.event.app2esd.service
%license LICENSE
%files devel
-%defattr(-,root,root,-)
+%{_includedir}/esd/*.hh
+%{_libdir}/libesd.so
+%{_libdir}/pkgconfig/*pc
+
+%files -n esd-mod-cion
+%manifest %{name}.manifest
+%license LICENSE
+%{_moddir}/mod/libesd-mod-cion.so
+
+%files -n esd-mod-dbus-event
+%manifest %{name}.manifest
+%license LICENSE
+%{_moddir}/mod/libesd-mod-dbus-event.so