summaryrefslogtreecommitdiff
path: root/packaging/menu-daemon.spec
blob: 8ef1b98af632e19873e1a51a5bca5197c29b5d73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
%define _optdir /opt
%define _appdir %{_optdir}/apps
%define _opt_datadir %{_optdir}/share

Name:       menu-daemon
Summary:    Menu daemon
Version:    0.2.43
Release:    1
Group:      apps
License:    Flora Software License
Source0:    menu-daemon-%{version}.tar.gz
Source1001: 	menu-daemon.manifest
BuildRequires:  pkgconfig(ail)
BuildRequires:  pkgconfig(aul)
BuildRequires:  pkgconfig(capi-system-media-key)
BuildRequires:  pkgconfig(db-util)
BuildRequires:  pkgconfig(dlog)
BuildRequires:  pkgconfig(ecore)
BuildRequires:  pkgconfig(eet)
BuildRequires:  pkgconfig(eina)
BuildRequires:  pkgconfig(elementary)
BuildRequires:  pkgconfig(evas)
BuildRequires:  pkgconfig(heynoti)
BuildRequires:  pkgconfig(syspopup-caller)
BuildRequires:  pkgconfig(utilX)
BuildRequires:  pkgconfig(vconf)
BuildRequires:  pkgconfig(x11)

BuildRequires:  cmake
BuildRequires:  edje-bin
BuildRequires:  embryo-bin
BuildRequires:  eet-bin
BuildRequires:  gettext-tools
Requires(post): tizen-platform-config
Requires(post): /usr/bin/vconftool

%description
menu-daemon (Grab H/W key, Package manifest file parsing)

%prep
%setup -q
cp %{SOURCE1001} .

%build
export LDFLAGS+="-Wl,--hash-style=both -Wl,--as-needed"
cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
make %{?jobs:-j%jobs}

%install
rm -rf %{buildroot}
%make_install
chmod +x %{buildroot}/etc/init.d/menudaemon
chmod +x %{buildroot}/etc/init.d/menudaemon.fast

%post
source /etc/tizen-platform.conf
GID=$(getent group $TZ_SYS_USER_GROUP | cut -f 3 -d :)
vconftool set -t string memory/menuscreen/desktop "0" -i -f
vconftool set -t int memory/idle-screen/is_idle_screen_launched "0" -i -g $GID -f

ln -sf /etc/init.d/menudaemon /etc/rc.d/rc3.d/S46menudaemon
ln -sf /etc/init.d/menudaemon.fast /etc/rc.d/rc4.d/S85menudaemon

%files
%manifest %{name}.manifest
%defattr(-,root,root,-)
%{_sysconfdir}/init.d/menudaemon
%{_sysconfdir}/init.d/menudaemon.fast
%{_bindir}/menu-daemon