diff --git a/README.md b/README.md index 1027b7c..cdb4901 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # macbook-tools +Utilities for Apple MacBook and MacBook Pro. +Currently contains the backlight tool for MacBook for screen backlight handling and the applesmc tool for keyboard backlight, light and motion sensors. + diff --git a/macbook-tools.spec b/macbook-tools.spec new file mode 100644 index 0000000..e6b0298 --- /dev/null +++ b/macbook-tools.spec @@ -0,0 +1,187 @@ +%define kdedir /opt/kde3 + +Name: macbook-tools +Version: 0.3.27 +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 +License: GPL +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +BuildRequires: libpci-devel >= 2.2.0 +BuildRequires: libusb-devel >= 0.1.12 +AutoReq: 0 +Requires: xbindkeys >= 1.7.3 +Requires: lirc >= 0.8.1pre1 +Requires: isight-firmware-tools +Requires: xkbset +Requires: kbd >= 1.15.3-2mamba +Obsoletes: imac-utils +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Utilities for Apple MacBook and MacBook Pro. +Currently contains the backlight tool for MacBook for screen backlight handling and the applesmc tool for keyboard backlight, light and motion sensors. + +%prep +%setup -q + +%build +%make + +%install +[ "%{buildroot}" != / ] && rm -rf %{buildroot} +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf %{buildroot} + +%post +if [ $1 -eq 1 ]; then + # new install + service macbook-tools start + /sbin/chkconfig --add macbook-tools +fi +exit 0 + +%preun +# erase +if [ $1 -eq 0 ]; then + /sbin/chkconfig --del macbook-tools +fi +exit 0 + +%files +%defattr(-,root,root) +%config(noreplace) %{_sysconfdir}/sysconfig/macbook-tools +%{_initrddir}/macbook-tools +%{_bindir}/backlight +%{_bindir}/applesmc +%{_bindir}/macbook-set-input +%{_sbindir}/macbook-lightd +/lib/modprobe.d/macbook.conf +%doc COPYING + +%changelog +* Sun Apr 14 2013 Silvan Calarco 0.3.27-1mamba +- update to 0.3.27 + +* Thu Jan 24 2013 Silvan Calarco 0.3.26-1mamba +- update to 0.3.26 + +* Sat Jan 21 2012 Silvan Calarco 0.3.25-1mamba +- update to 0.3.25 + +* Thu Sep 01 2011 Silvan Calarco 0.3.24-1mamba +- update to 0.3.24 +- don't configure it-macbook console keyboard mapping in post script + +* Mon Aug 03 2009 Silvan Calarco 0.3.23-1mamba +- update to 0.3.23 + +* Sat Jul 25 2009 Silvan Calarco 0.3.22-1mamba +- update to 0.3.22 +- added requirement for xkbset + +* Mon Jun 29 2009 Silvan Calarco 0.3.21-1mamba +- update to 0.3.21 + +* Thu Jun 25 2009 Silvan Calarco 0.3.20-2mamba +- macbook-lightd: removed debug code + +* Tue Jun 23 2009 Silvan Calarco 0.3.20-1mamba +- update to 0.3.20 + +* Tue Feb 24 2009 Silvan Calarco 0.3.19-1mamba +- update to 0.3.19 + +* Mon Apr 14 2008 Silvan Calarco 0.3.18-1mamba +- update to 0.3.18 +- added requirement for isight-firmware-tools + +* Sun Mar 09 2008 Silvan Calarco 0.3.17-1mamba +- update to 0.3.17 + +* Fri Feb 01 2008 Silvan Calarco 0.3.16-1mamba +- update to 0.3.16 + +* Tue Jan 08 2008 Silvan Calarco 0.3.15-1mamba +- update to 0.3.15 + +* Fri Nov 23 2007 Silvan Calarco 0.3.14-2mamba +- remove requirement for cpufreqd + +* Sun Nov 11 2007 Silvan Calarco 0.3.14-1mamba +- update to 0.3.14 + +* Wed Sep 12 2007 Silvan Calarco 0.3.13-1mamba +- update to 0.3.13 + +* Mon Sep 10 2007 Silvan Calarco 0.3.12-1mamba +- update to 0.3.12 + +* Fri Aug 31 2007 Silvan Calarco 0.3.11-1mamba +- update to 0.3.11 + +* Wed Aug 15 2007 Silvan Calarco 0.3.10-1mamba +- update to 0.3.10 + +* Mon Aug 06 2007 Silvan Calarco 0.3.9-1mamba +- update to 0.3.9 + +* Fri Aug 03 2007 Silvan Calarco 0.3.8-1mamba +- update to 0.3.8 + +* Fri Mar 09 2007 Silvan Calarco 0.3.7-1qilnx +- update to version 0.3.7 by autospec + +* Tue Mar 06 2007 Silvan Calarco 0.3.6-1qilnx +- update to version 0.3.6 by autospec + +* Mon Nov 20 2006 Silvan Calarco 0.3.5-1qilnx +- update to version 0.3.5 by autospec + +* Sun Nov 12 2006 Silvan Calarco 0.3.4-1qilnx +- update to version 0.3.4 by autospec + +* Fri Nov 10 2006 Silvan Calarco 0.3.3-1qilnx +- update to version 0.3.3 by autospec + +* Wed Nov 08 2006 Silvan Calarco 0.3.2-1qilnx +- update to version 0.3.2 by autospec +- add requirement for lirc + +* Wed Oct 04 2006 Silvan Calarco 0.3.1-1qilnx +- update to version 0.3.1 by autospec + +* Tue Oct 03 2006 Silvan Calarco 0.3-1qilnx +- update to version 0.3 by autospec + +* Mon Oct 02 2006 Silvan Calarco 0.2.2-1qilnx +- update to version 0.2.2 by autospec +- enable it-macbook console keyboard upon install + +* Mon Jul 24 2006 Silvan Calarco 0.2.1-1qilnx +- update to version 0.2.1 by autospec + +* Mon Jul 24 2006 Silvan Calarco 0.2-2qilnx +- added automatic initscript handling + +* Mon Jul 24 2006 Silvan Calarco 0.2-1qilnx +- update to version 0.2 by autospec + +* Thu Jul 20 2006 Silvan Calarco 0.1b-2qilnx +- added requirement for cpufreqd +- added automatic loading of speedstep-centrino module + +* Thu Jul 13 2006 Silvan Calarco 0.1a-1qilnx +- backlight tool updated +- added applesmc tool + +* Tue May 02 2006 Silvan Calarco 0.1-1qilnx +- package created by autospec