diff --git a/bumblebee.spec b/bumblebee.spec index d232495..8e0caf0 100644 --- a/bumblebee.spec +++ b/bumblebee.spec @@ -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 3.2.1-2mamba +- provide systemd init script + * Sun Apr 28 2013 Automatic Build System 3.2.1-1mamba - automatic version update by autodist