update to 0.4.1 [release 0.4.1-1mamba;Wed Aug 05 2015]
This commit is contained in:
parent
2d275654b7
commit
0fd98364d6
@ -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 <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
|
||||
- update to 0.4.0
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user