Name: i2c-tools Version: 3.0.1 %define subrel 2 Release: %mkrel 3 Summary: Heterogeneous set of I2C tools for Linux Group: System/Kernel and hardware License: GPL URL: http://www.lm-sensors.org/wiki/I2CTools Source0: http://dl.lm-sensors.org/i2c-tools/releases/i2c-tools-%{version}.tar.bz2 Source1: http://dl.lm-sensors.org/i2c-tools/releases/i2c-tools-%{version}.tar.bz2.sig Conflicts: lm_sensors < 3.0.0 Requires: udev BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %description This package contains a heterogeneous set of I2C tools for Linux: a bus probing tool, a chip dumper, register-level access helpers, EEPROM decoding scripts, and more. %package eepromer Summary: Programs for reading/writing i2c/smbus eeproms Group: System/Kernel and hardware Requires: %{name} = %{version}-%{release} %description eepromer Programs for reading/writing i2c/smbus eeproms. Notice that writing the eeproms in your system is very dangerous and is likely to render your system unusable. Do not install, let alone use this, unless you really, _really_ know what you are doing. %package -n python-smbus Summary: Python module for SMBus access via I2C Group: System/Kernel and hardware BuildRequires: python BuildRequires: python-setuptools BuildRequires: kernel-headers Requires: python %description -n python-smbus This Python module allows SMBus access through the I2C /dev interface on Linux hosts. The host kernel must have I2C support, I2C device interface support, and a bus adapter driver. %prep %setup -q %build %{make} CFLAGS="%{optflags}" pushd eepromer %{make} CFLAGS="%{optflags} -I../include" popd pushd py-smbus CFLAGS="%{optflags} -I../include" python setup.py build popd %install %{__rm} -rf %{buildroot} %{makeinstall} %{__cp} -a eepromer/eeprog eepromer/eeprom eepromer/eepromer %{buildroot}%{_sbindir} pushd py-smbus python setup.py install --root=%{buildroot} --compile --optimize=2 popd %{__rm} -r %{buildroot}%{_includedir}/linux %clean %{__rm} -rf %{buildroot} %files %defattr(0644,root,root,0755) %doc CHANGES COPYING README %attr(660,root,root) %dev(c,89,0) /lib/udev/devices/i2c-0 %attr(660,root,root) %dev(c,89,0) /lib/udev/devices/i2c-1 %attr(660,root,root) %dev(c,89,0) /lib/udev/devices/i2c-2 %attr(660,root,root) %dev(c,89,0) /lib/udev/devices/i2c-3 #%attr(0755,root,root) %{_bindir}/* #%attr(0755,root,root) %{_sbindir}/* %exclude %{_sbindir}/eeprog %exclude %{_sbindir}/eeprom %exclude %{_sbindir}/eepromer %attr(0755,root,root) %{_bindir}/ddcmon %attr(0755,root,root) %{_bindir}/decode-dimms %attr(0755,root,root) %{_bindir}/decode-edid %attr(0755,root,root) %{_bindir}/decode-vaio %attr(0755,root,root) %{_sbindir}/i2cdetect %attr(0755,root,root) %{_sbindir}/i2cdump %attr(0755,root,root) %{_sbindir}/i2cget %attr(0755,root,root) %{_sbindir}/i2cset %attr(0755,root,root) %{_sbindir}/i2c-stub-from-dump %{_mandir}/man8/i2cdetect.8* %{_mandir}/man8/i2cdump.8* %{_mandir}/man8/i2cget.8* %{_mandir}/man8/i2cset.8* %{_mandir}/man8/i2c-stub-from-dump.8* %files eepromer %defattr(0644,root,root,0755) %doc eepromer/README eepromer/README.eeprom eepromer/README.eepromer eepromer/README.eeprog %attr(0755,root,root) %{_sbindir}/eeprog %attr(0755,root,root) %{_sbindir}/eeprom %attr(0755,root,root) %{_sbindir}/eepromer %files -n python-smbus %defattr(0644,root,root,0755) %doc py-smbus/README %{py_platsitedir}/smbus* %changelog * Thu Nov 20 2008 Adam Williamson <awilliamson@mandriva.com> 3.0.1-3.2mdv2009.0 + Revision: 305335 - fix the CFLAGS for the pysmbus build to include -I../include (right fix) - drop pysmbus_include.patch (completely the wrong 'fix') - move kernel-headers BR to python-smbus section for clarity - python buildrequires / requires - add pysmbus_include.patch (fix build of py-smbus due to header issues) - build and install python-smbus too (useful for the eee) * Fri Aug 29 2008 Olivier Blin <oblin@mandriva.com> 3.0.1-3mdv2009.0 + Revision: 277375 - install udev helpers in /lib/udev (this is the default on x86_64 too now, as per upstream) * Thu Aug 07 2008 Thierry Vignaud <tvignaud@mandriva.com> 3.0.1-2mdv2009.0 + Revision: 267108 - rebuild early 2009.0 package (before pixel changes) * Sun Apr 20 2008 David Walluck <walluck@mandriva.org> 3.0.1-1mdv2009.0 + Revision: 195989 - fix file list - 3.0.1 + Olivier Blin <oblin@mandriva.com> - restore BuildRoot + Thierry Vignaud <tvignaud@mandriva.com> - kill re-definition of %%buildroot on Pixel's request * Tue Dec 11 2007 David Walluck <walluck@mandriva.org> 3.0.0-1mdv2008.1 + Revision: 117438 - import i2c-tools