provide systemd init script [release 3.2.1-2mamba;Sat Aug 02 2014]

This commit is contained in:
Silvan Calarco 2024-01-05 21:02:00 +01:00
parent 7ab0cc234c
commit cd5c8ff90d

View File

@ -2,7 +2,7 @@
%define bumblebeeuserid 65430
Name: bumblebee
Version: 3.2.1
Release: 1mamba
Release: 2mamba
Summary: A project aiming to support NVIDIA Optimus technology under Linux.
Group: System/Kernel and Hardware
Vendor: openmamba
@ -36,6 +36,8 @@ A project aiming to support NVIDIA Optimus technology under Linux.
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
install -D -m0755 scripts/systemd/bumblebeed.service %{buildroot}%{_unitdir}/bumblebeed.service
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@ -47,6 +49,12 @@ if [ $1 -ge 1 ]; then
fi
exit 0
%post
if [ $1 -ge 1 ]; then
systemctl -q daemon-reload
fi
:
%preun
if [ $1 -eq 0 ]; then
/usr/sbin/groupdel bumblebee 2>/dev/null
@ -65,6 +73,7 @@ exit 0
%{_bindir}/bumblebee-bugreport
%{_bindir}/optirun
%{_sbindir}/bumblebeed
%{_unitdir}/bumblebeed.service
/lib/udev/rules.d/99-bumblebee-nvidia-dev.rules
%{_datadir}/doc/bumblebee/README.markdown
%{_datadir}/doc/bumblebee/RELEASE_NOTES_*
@ -73,6 +82,9 @@ exit 0
%doc COPYING
%changelog
* Sat Aug 02 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 3.2.1-2mamba
- provide systemd init script
* Sun Apr 28 2013 Automatic Build System <autodist@mambasoft.it> 3.2.1-1mamba
- automatic version update by autodist