[mapplauncherd] Install mapplauncherd.target for systemd startup

pull/1/head
John Brooks 13 years ago
parent 07a233fb3b
commit 9dd3ef92cb

@ -65,3 +65,5 @@ install(DIRECTORY doc/implementation-documentation DESTINATION /usr/share/doc/ap
install(DIRECTORY doc/user-documentation DESTINATION /usr/share/doc/applauncherd OPTIONAL)
install(DIRECTORY doc/mdeclarativecache-documentation DESTINATION /usr/share/doc/applauncherd OPTIONAL)
# Install systemd target
install(FILES data/mapplauncherd.target DESTINATION /usr/lib/systemd/user)

@ -0,0 +1,2 @@
[Unit]
Description=Application launch boosters

@ -103,6 +103,9 @@ mv %{buildroot}/usr/share/applauncherd-tests %{buildroot}/usr/lib
(cd %{buildroot}/usr/share; ln -s ../lib/applauncherd-tests)
# Don't use %exclude, remove at install phase
rm -f %{buildroot}/usr/share/fala_images/fala_qml_helloworld
mkdir %{buildroot}/usr/lib/systemd/user/mapplauncherd.target.wants || true
ln -s ../booster-e.service %{buildroot}/usr/lib/systemd/user/mapplauncherd.target.wants/
# << install post
@ -113,10 +116,12 @@ rm -f %{buildroot}/usr/share/fala_images/fala_qml_helloworld
%files
%defattr(-,root,root,-)
%{_bindir}/invoker
%{_bindir}/single-instance
%{_libdir}/libapplauncherd.so*
%{_libdir}/systemd/user/mapplauncherd.target
%{_libexecdir}/mapplauncherd/ebooster
%{_libdir}/systemd/user/booster-e.service
%{_bindir}/single-instance
%{_libdir}/systemd/user/mapplauncherd.target.wants/booster-e.service
# >> files
# << files

@ -31,10 +31,13 @@ Obsoletes:
Builder: make
Files:
- "%{_bindir}/invoker"
- "%{_bindir}/single-instance"
- "%{_libdir}/libapplauncherd.so*"
- "%{_libdir}/systemd/user/mapplauncherd.target"
- "%{_libexecdir}/mapplauncherd/ebooster"
- "%{_libdir}/systemd/user/booster-e.service"
- "%{_bindir}/single-instance"
- "%{_libdir}/systemd/user/mapplauncherd.target.wants/booster-e.service"
SubPackages:
- Name: devel
Group: Development/Tools

Loading…
Cancel
Save