From 2d275654b738e9a4968a67de6f419aefe31c777c 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.0 [release 0.4.0-1mamba;Tue Mar 24 2015] --- macbook-tools.spec | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/macbook-tools.spec b/macbook-tools.spec index e6b0298..f64a44e 100644 --- a/macbook-tools.spec +++ b/macbook-tools.spec @@ -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 -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 0.4.0-1mamba +- update to 0.4.0 + * Sun Apr 14 2013 Silvan Calarco 0.3.27-1mamba - update to 0.3.27