update to 0.4.0 [release 0.4.0-1mamba;Tue Mar 24 2015]

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

View File

@ -1,15 +1,15 @@
%define kdedir /opt/kde3
Name: macbook-tools
Version: 0.3.27
Version: 0.4.0
Release: 1mamba
Summary: Utilities for Apple MacBook and MacBook Pro
Group: System/Kernel and Hardware
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.mambasoft.it
Source: macbook-tools-%{version}.tar.bz2
URL: http://gitlab.openmamba.org/openmamba/macbook-tools
Source: http://gitlab.mambasoft.it/openmamba/macbook-tools.git/macbook-tools-%{version}.tar.bz2
License: GPL
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
@ -22,6 +22,7 @@ Requires: isight-firmware-tools
Requires: xkbset
Requires: kbd >= 1.15.3-2mamba
Obsoletes: imac-utils
%systemd_requires
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
@ -42,32 +43,30 @@ Currently contains the backlight tool for MacBook for screen backlight handling
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%post
if [ $1 -eq 1 ]; then
# new install
service macbook-tools start
/sbin/chkconfig --add macbook-tools
fi
[ -e /etc/init.d/macbook-tools ] && /sbin/chkconfig --del macbook-tools > /dev/null || true
exit 0
%preun
# erase
if [ $1 -eq 0 ]; then
/sbin/chkconfig --del macbook-tools
fi
%posttrans
# cleanup obsolete sysv broken links
systemctl -q daemon-reload 2>&1 || :
find /etc/rc*.d/* -xtype l -delete 2>/dev/null
exit 0
%files
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/sysconfig/macbook-tools
%{_initrddir}/macbook-tools
%{_unitdir}/appleir.service
%{_unitdir}/applesmcd.service
%{_bindir}/backlight
%{_bindir}/applesmc
%{_bindir}/macbook-set-input
%{_sbindir}/macbook-lightd
%{_sbindir}/applesmcd
/lib/modprobe.d/macbook.conf
%doc COPYING
%changelog
* Tue Mar 24 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.0-1mamba
- update to 0.4.0
* Sun Apr 14 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.27-1mamba
- update to 0.3.27