summaryrefslogtreecommitdiff
path: root/rpm
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2015-04-04 03:00:21 +0200
committerJavier <dev.git@javispedro.com>2015-04-04 03:00:21 +0200
commit64e965f7b2cc99f1f0ddd94169d4c1c166b96ac4 (patch)
tree463f7f9b4d6e1a47a97bc3cc10da7adc616bfea6 /rpm
parent95ac4ede6e371b89839ceb0c70e8c33c55f04053 (diff)
downloadsaltoq-64e965f7b2cc99f1f0ddd94169d4c1c166b96ac4.tar.gz
saltoq-64e965f7b2cc99f1f0ddd94169d4c1c166b96ac4.zip
make boostable, add systemd service
Diffstat (limited to 'rpm')
-rw-r--r--rpm/saltoq.spec19
-rw-r--r--rpm/saltoq.yaml3
2 files changed, 21 insertions, 1 deletions
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'