From 0fd98364d6c17076f8bc53a48157cd065a4943f5 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 06:39:21 +0100 Subject: [PATCH] update to 0.4.1 [release 0.4.1-1mamba;Wed Aug 05 2015] --- macbook-tools.spec | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/macbook-tools.spec b/macbook-tools.spec index f64a44e..b213a42 100644 --- a/macbook-tools.spec +++ b/macbook-tools.spec @@ -1,7 +1,7 @@ %define kdedir /opt/kde3 Name: macbook-tools -Version: 0.4.0 +Version: 0.4.1 Release: 1mamba Summary: Utilities for Apple MacBook and MacBook Pro Group: System/Kernel and Hardware @@ -43,10 +43,23 @@ Currently contains the backlight tool for MacBook for screen backlight handling [ "%{buildroot}" != / ] && rm -rf %{buildroot} %post -[ -e /etc/init.d/macbook-tools ] && /sbin/chkconfig --del macbook-tools > /dev/null || true +# remove obsolete lp modprobe line in modprobe.conf +[ -e /etc/modprobe.conf ] && sed -i "/parport_pc/d" /etc/modprobe.conf +if [ $1 -ge 1 ]; then + systemctl -q daemon-reload + systemctl -q enable applesmcd.service +fi +exit 0 + +%preun +if [ $1 -eq 0 ]; then + systemctl -q disable applesmcd.service +fi exit 0 %posttrans +# legacy +[ -e /etc/init.d/macbook-tools ] && /sbin/chkconfig --del macbook-tools > /dev/null || true # cleanup obsolete sysv broken links systemctl -q daemon-reload 2>&1 || : find /etc/rc*.d/* -xtype l -delete 2>/dev/null @@ -54,7 +67,6 @@ exit 0 %files %defattr(-,root,root) -%{_unitdir}/appleir.service %{_unitdir}/applesmcd.service %{_bindir}/backlight %{_bindir}/applesmc @@ -64,6 +76,9 @@ exit 0 %doc COPYING %changelog +* Wed Aug 05 2015 Silvan Calarco 0.4.1-1mamba +- update to 0.4.1 + * Tue Mar 24 2015 Silvan Calarco 0.4.0-1mamba - update to 0.4.0