summaryrefslogtreecommitdiff
path: root/rpm
diff options
context:
space:
mode:
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'