summaryrefslogtreecommitdiff
path: root/packaging/menu-daemon.spec
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/menu-daemon.spec')
-rw-r--r--packaging/menu-daemon.spec70
1 files changed, 70 insertions, 0 deletions
diff --git a/packaging/menu-daemon.spec b/packaging/menu-daemon.spec
new file mode 100644
index 0000000..b56e0e3
--- /dev/null
+++ b/packaging/menu-daemon.spec
@@ -0,0 +1,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