blob: b56e0e3ff1871bdfb4c0002e3b9deb01975f26e7 (
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.45
Release: 1
Group: framework
License: Flora Software License
Source0: menu-daemon-%{version}.tar.gz
Source101: menu-daemon.service
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): /usr/bin/vconftool
%description
menu-daemon (Grab H/W key, Package manifest file parsing)
%prep
%setup -q
%build
export LDFLAGS+="-Wl,--hash-style=both -Wl,--as-needed"
cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
make %{?jobs:-j%jobs}
%install
%make_install
mkdir -p %{buildroot}/%{_sysconfdir}/rc.d/rc3.d
mkdir -p %{buildroot}/%{_sysconfdir}/rc.d/rc4.d
ln -sf ../init.d/menudaemon %{buildroot}/%{_sysconfdir}/rc.d/rc3.d/S46menudaemon
ln -sf ../init.d/menudaemon.fast %{buildroot}/%{_sysconfdir}/rc.d/rc4.d/S85menudaemon
mkdir -p %{buildroot}%{_libdir}/systemd/user/core-efl.target.wants
install -m 0644 %SOURCE101 %{buildroot}%{_libdir}/systemd/user/
ln -s ../menu-daemon.service %{buildroot}%{_libdir}/systemd/user/core-efl.target.wants/menu-daemon.service
%post
vconftool set -t string memory/menuscreen/desktop "0" -i -f
vconftool set -t int memory/idle-screen/is_idle_screen_launched "0" -i -u 5000 -f
%files
%manifest %{name}.manifest
%attr(0755,-,-) %{_sysconfdir}/init.d/menudaemon
%attr(0755,-,-) %{_sysconfdir}/init.d/menudaemon.fast
%attr(0755,root,root) %{_sysconfdir}/rc.d/rc3.d/S46menudaemon
%attr(0755,root,root) %{_sysconfdir}/rc.d/rc4.d/S85menudaemon
%{_bindir}/menu-daemon
%{_libdir}/systemd/user/menu-daemon.service
%{_libdir}/systemd/user/core-efl.target.wants/menu-daemon.service
|