35a610020ba4ec0b44b811a8ca9048f455a9d94d
[platform/core/appfw/event-system.git] / packaging / esd.spec
1 Name:       esd
2 Summary:    Event system daemon
3 Version:    0.2.4
4 Release:    1
5 Group:      Application Framework/Service
6 License:    Apache-2.0
7 Source0:    %{name}-%{version}.tar.gz
8 Source1:    esd.service
9 BuildRequires:  cmake
10 BuildRequires:  pkgconfig(aul)
11 BuildRequires:  pkgconfig(bundle)
12 BuildRequires:  pkgconfig(parcel)
13 BuildRequires:  pkgconfig(dlog)
14 BuildRequires:  pkgconfig(pkgmgr-info)
15 BuildRequires:  pkgconfig(appsvc)
16 BuildRequires:  pkgconfig(gio-2.0)
17 BuildRequires:  pkgconfig(glib-2.0)
18 BuildRequires:  pkgconfig(pkgmgr)
19 BuildRequires:  pkgconfig(eventsystem)
20 BuildRequires:  pkgconfig(vconf)
21 BuildRequires:  pkgconfig(libtzplatform-config)
22 BuildRequires:  pkgconfig(systemd)
23 BuildRequires:  pkgconfig(cert-svc-vcore)
24 BuildRequires:  pkgconfig(cynara-client)
25 BuildRequires:  pkgconfig(cynara-creds-gdbus)
26 BuildRequires:  pkgconfig(cynara-session)
27 BuildRequires:  pkgconfig(security-manager)
28 BuildRequires:  pkgconfig(uuid)
29 BuildRequires:  pkgconfig(sqlite3)
30 BuildRequires:  pkgconfig(cion)
31 BuildRequires:  pkgconfig(capi-system-info)
32
33 Requires(post): /sbin/ldconfig
34 Requires(postun): /sbin/ldconfig
35
36 %description
37 Event System Daemon
38
39 %package devel
40 Summary:    Event system daemon (devel)
41 Group:      Development/Libraries
42 Requires:   %{name} = %{version}-%{release}
43
44 %description devel
45 Event system Daemon (devel)
46
47 %prep
48 %setup -q
49
50 %build
51 export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
52 export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
53 export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
54
55
56 %cmake .
57 make %{?jobs:-j%jobs}
58
59 %install
60 rm -rf %{buildroot}
61 %make_install
62
63 mkdir -p %{buildroot}%{_unitdir}/multi-user.target.wants
64 install -m 0644 %SOURCE1 %{buildroot}%{_unitdir}/esd.service
65 ln -sf ../esd.service %{buildroot}%{_unitdir}/multi-user.target.wants/esd.service
66
67 %post -p /sbin/ldconfig
68
69 %postun -p /sbin/ldconfig
70
71 %files
72 %manifest esd.manifest
73 %config %{_sysconfdir}/dbus-1/system.d/eventsystem.conf
74 %defattr(-,root,root,-)
75 %{_bindir}/esd
76 %{_unitdir}/esd.service
77 %{_unitdir}/multi-user.target.wants/esd.service
78 %attr(0644,root,root) %{_datadir}/dbus-1/system-services/tizen.system.event.app2esd.service
79 %license LICENSE
80
81 %files devel
82 %defattr(-,root,root,-)