update to 0.4.1 [release 0.4.1-1mamba;Wed Aug 05 2015]

This commit is contained in:
Silvan Calarco 2024-01-06 06:39:21 +01:00
parent 2d275654b7
commit 0fd98364d6

View File

@ -1,7 +1,7 @@
%define kdedir /opt/kde3 %define kdedir /opt/kde3
Name: macbook-tools Name: macbook-tools
Version: 0.4.0 Version: 0.4.1
Release: 1mamba Release: 1mamba
Summary: Utilities for Apple MacBook and MacBook Pro Summary: Utilities for Apple MacBook and MacBook Pro
Group: System/Kernel and Hardware Group: System/Kernel and Hardware
@ -43,10 +43,23 @@ Currently contains the backlight tool for MacBook for screen backlight handling
[ "%{buildroot}" != / ] && rm -rf %{buildroot} [ "%{buildroot}" != / ] && rm -rf %{buildroot}
%post %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 exit 0
%posttrans %posttrans
# legacy
[ -e /etc/init.d/macbook-tools ] && /sbin/chkconfig --del macbook-tools > /dev/null || true
# cleanup obsolete sysv broken links # cleanup obsolete sysv broken links
systemctl -q daemon-reload 2>&1 || : systemctl -q daemon-reload 2>&1 || :
find /etc/rc*.d/* -xtype l -delete 2>/dev/null find /etc/rc*.d/* -xtype l -delete 2>/dev/null
@ -54,7 +67,6 @@ exit 0
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%{_unitdir}/appleir.service
%{_unitdir}/applesmcd.service %{_unitdir}/applesmcd.service
%{_bindir}/backlight %{_bindir}/backlight
%{_bindir}/applesmc %{_bindir}/applesmc
@ -64,6 +76,9 @@ exit 0
%doc COPYING %doc COPYING
%changelog %changelog
* Wed Aug 05 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.1-1mamba
- update to 0.4.1
* Tue Mar 24 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.0-1mamba * Tue Mar 24 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.0-1mamba
- update to 0.4.0 - update to 0.4.0