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