diff --git a/bluez.spec b/bluez.spec index 5928493..696b5a0 100644 --- a/bluez.spec +++ b/bluez.spec @@ -1,6 +1,6 @@ Name: bluez Version: 5.50 -Release: 2mamba +Release: 3mamba Summary: Userspace tools for the Bluetooth wireless library for Linux Group: Applications/Communication Vendor: openmamba @@ -92,11 +92,17 @@ done %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%preun +%systemd_preun bluetooth +%systemd_user_preun obex +: + %post # new install # # disable service by default as it is started by udev now /sbin/chkconfig --del bluetooth 2>&1 &>/dev/null +%systemd_post bluetooth %systemd_user_post obex if [ $1 -gt 1 ]; then # Enable on upgrade @@ -104,8 +110,13 @@ if [ $1 -gt 1 ]; then fi : -%preun -%systemd_user_preun obex +%postun +%systemd_postun bluetooth +: + +%posttrans +# clean broken old sysv links +find /etc/rc[0-6].d/ -type l -xtype l -exec rm -f {} \; : %post -n libbluetooth -p /sbin/ldconfig @@ -144,6 +155,9 @@ fi %doc ChangeLog README %changelog +* Sat Jul 20 2019 Silvan Calarco 5.50-3mamba +- enable bluetooth service with systemd + * Wed Feb 20 2019 Silvan Calarco 5.50-2mamba - enable systemd user obex service