From 64e965f7b2cc99f1f0ddd94169d4c1c166b96ac4 Mon Sep 17 00:00:00 2001 From: Javier Date: Sat, 4 Apr 2015 03:00:21 +0200 Subject: make boostable, add systemd service --- rpm/saltoq.spec | 19 +++++++++++++++++++ rpm/saltoq.yaml | 3 ++- 2 files changed, 21 insertions(+), 1 deletion(-) (limited to 'rpm') diff --git a/rpm/saltoq.spec b/rpm/saltoq.spec index 5b8cb72..cb629a6 100644 --- a/rpm/saltoq.spec +++ b/rpm/saltoq.spec @@ -32,6 +32,7 @@ BuildRequires: pkgconfig(Qt5Quick) BuildRequires: pkgconfig(Qt5DBus) BuildRequires: pkgconfig(Qt5Bluetooth) >= 5.2 BuildRequires: pkgconfig(Qt5Contacts) +BuildRequires: pkgconfig(qt5-boostable) BuildRequires: pkgconfig(mlite5) BuildRequires: pkgconfig(libiphb) BuildRequires: pkgconfig(zlib) @@ -72,8 +73,26 @@ rm -rf %{buildroot} # >> install post # << install post +%post +# >> post +if [ "$1" -ge 1 ]; then +grep -q "^/usr/bin/saltoqd" /usr/share/mapplauncherd/privileges || echo "/usr/bin/saltoqd,chmp" >> /usr/share/mapplauncherd/privileges +systemctl-user daemon-reload || : +systemctl-user restart saltoqd.service || : +fi +# << post + +%postun +# >> postun +if [ "$1" -eq 0 ]; then +systemctl-user stop saltoqd.service || : +systemctl-user daemon-reload || : +fi +# << postun + %files %defattr(-,root,root,-) %{_bindir} +%{_libdir}/systemd/user/saltoqd.service # >> files # << files diff --git a/rpm/saltoq.yaml b/rpm/saltoq.yaml index fc205a4..f82b9ef 100644 --- a/rpm/saltoq.yaml +++ b/rpm/saltoq.yaml @@ -20,6 +20,7 @@ PkgConfigBR: - Qt5DBus - Qt5Bluetooth >= 5.2 - Qt5Contacts + - qt5-boostable - mlite5 - libiphb - zlib @@ -45,4 +46,4 @@ Files: # - '%{_datadir}/%{name}' # - '%{_datadir}/applications/%{name}.desktop' # - '%{_datadir}/icons/hicolor/86x86/apps/%{name}.png' -# - '%{_libdir}/systemd/user/salmeta.service' + - '%{_libdir}/systemd/user/saltoqd.service' -- cgit v1.2.3