Name: lm_sensors Version: 2.8.7 Release: 1 URL: http://secure.netroedge.com/~lm78/ Source: http://secure.netroedge.com/~lm78/archive/lm_sensors-%{version}.tar.gz Source1: lm_sensors.sysconfig Source2: lm_sensors.init Patch1: lm_sensors-2.5.5-glibc22.patch Patch2: lm_sensors-2.8.3-redhat.patch Patch3: lm_sensors-2.8.0-utf8.patch Patch4: lm_sensors-2.8.2-expr.patch Patch5: lm_sensors-2.8.3-local.patch Patch6: lm_sensors-2.8.3-rpath.patch Patch7: lm_sensors-2.8.7-udev.patch Summary: Hardware monitoring tools. Group: Applications/System License: GPL Buildroot: %{_tmppath}/%{name}-root Requires: kernel-utils BuildPrereq: kernel-headers >= 2.2.16 ExclusiveArch: alpha %{ix86} x86_64 %description The lm_sensors package includes a collection of modules for general SMBus access and hardware monitoring. NOTE: this requires special support which is not in standard 2.2-vintage kernels. %package devel Summary: Development files for programs which will use lm_sensors. Group: Development/System Requires: lm_sensors = %{version} %description devel The lm_sensors-devel package includes a header files and libraries for use when building applications that make use of sensor data. %prep %setup -q %patch1 -p1 -b .glibc22 %patch2 -p1 -b .redhat %patch3 -p1 -b .utf8 %patch4 -p1 -b .expr %patch5 -p1 -b .local %patch6 -p1 -b .rpath %patch7 -p1 -b .udev %build mkdir -p kernel/include/linux ln -sf /usr/include/linux/* kernel/include/linux make user %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -fr $RPM_BUILD_ROOT make prefix=/usr exec_prefix=/usr bindir=/usr/bin sbindir=/usr/sbin sysconfdir=/etc datadir=/usr/share includedir=/usr/include libdir=%{_libdir} libexecdir=/usr/libexec localstatedir=/var sharedstatedir=/usr/com mandir=/usr/share/man infodir=/usr/share/info DESTDIR=$RPM_BUILD_ROOT user_install chmod 755 $RPM_BUILD_ROOT%{_libdir}/*.so* # remove dmidecode from the buildroot rm -f $RPM_BUILD_ROOT%{_sbindir}/dmidecode mv prog/init/README prog/init/README.initscripts # Remove userland kernel headers, belong in glibc-kernheaders. rm -rf $RPM_BUILD_ROOT%{_includedir}/linux install -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/lm_sensors mkdir -p $RPM_BUILD_ROOT%{_initrddir} install -m 0755 %{SOURCE2} $RPM_BUILD_ROOT%{_initrddir}/lm_sensors %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -fr $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %doc BACKGROUND BUGS CHANGES CONTRIBUTORS COPYING doc INSTALL QUICKSTART README* TODO prog/init/* %config(noreplace) %{_sysconfdir}/sensors.conf %{_bindir}/* %{_libdir}/*.so.* %{_mandir}/man*/* %{_sbindir}/* %config %{_initrddir}/lm_sensors %config %{_sysconfdir}/sysconfig/lm_sensors %files devel %defattr(-,root,root) %{_includedir}/sensors %{_libdir}/lib*.a %{_libdir}/lib*.so %changelog * Thu Oct 14 2004 Harald Hoyer 2.8.7-2 - added initial /etc/sysconfig/lm_sensors - added initscript - MAKEDEV the initial i2c devices in initscript and sensors-detect * Tue Jul 06 2004 Phil Knirsch 2.8.7-1 - Update to latest upstream version. * Tue Jun 15 2004 Elliot Lee - rebuilt * Tue Apr 13 2004 Phil Knirsch 2.8.6-1 - Update to latest upstream version. - Enabled build for x86_64. * Mon Mar 08 2004 Phil Knirsch 2.8.3-5 - Fixed initscript to work with 2.6 kernel and made it more quiet (#112286). - Changed proposed location of sensors (#116496). - Fixed rpath issue. * Fri Feb 13 2004 Elliot Lee - rebuilt * Thu Feb 05 2004 Phil Knirsch 2.8.3-3 - Modified sensors.conf to a noreplace config file. * Wed Feb 04 2004 Phil Knirsch 2.8.3-2 - Fixed newly included initscript (#114608). * Thu Jan 29 2004 Phil Knirsch 2.8.3-1 - Updated to latest upstream version 2.8.3 * Thu Jan 08 2004 Phil Knirsch 2.8.2-1 - Update to latest upstream version 2.8.2 - Fixed wrong & usage in if expression. - Included several new perl tools. * Fri Oct 24 2003 Phil Knirsch 2.8.1-1 - Update to latest upstream version 2.8.1 * Wed Jul 23 2003 Phil Knirsch 2.8.0-1 - Update to latest upstream version 2.8.0 * Fri Jun 27 2003 Phil Knirsch 2.6.5-6.1 - rebuilt * Fri Jun 27 2003 Phil Knirsch 2.6.5-6 - Included prog/init scripts and README (#90606). - Require kernel-utils for dmidecode (#88367, #65057). * Wed Jan 22 2003 Tim Powers 2.6.5-5 - rebuilt * Wed Dec 04 2002 Phil Knirsch 2.6.5-4 - Bump release and try to rebuild. * Tue Dec 3 2002 Tim Powers 2.6.5-3 - don't include dmidecode, conflicts with kernel-utils * Fri Nov 29 2002 Phil Knirsch 2.6.5-2 - Added patch to fix utf8 problem with sensors-detect. - Fixed Copyright: to License: in specfile * Fri Nov 29 2002 Phil Knirsch 2.6.5-1 - Updated userlevel to 2.6.5. - Include all the /usr/sbin/ apps (like dmidecode). * Fri Oct 04 2002 Phil Knirsch 2.6.3-3 - Removed Serverworks patch as it is already in sensors-detect. * Fri Jun 21 2002 Tim Powers 2.6.3-2 - automated rebuild * Tue Jun 18 2002 Phil Knirsch 2.6.3-1 - Updated of userland package to 2.6.3 - Fixed file packaging bug (#66126). * Thu May 23 2002 Tim Powers 2.6.2-2 - automated rebuild * Mon Jan 28 2002 Phil Knirsch 2.6.2-1 - Update to version 2.6.2 * Wed Aug 22 2001 Philipp Knirsch 2.5.5-6 - Added the SMBus CSB5 detection (#50468) * Mon Jul 9 2001 Philipp Knirsch - Fixed duplicate Summary: entry for devel package (#47714) * Sun Jun 24 2001 Elliot Lee - Bump release + rebuild. * Thu Feb 15 2001 Philipp Knirsch - Removed the i2c block patch as our newest kernel doesn't need it anymore. * Mon Feb 5 2001 Matt Wilson - added patch to not include sys/perm.h, as it's gone now. - added alpha to ExclusiveArch - use make "LINUX_HEADERS=/usr/include" to get kernel headers * Tue Jan 16 2001 Philipp Knirsch - Updated to 2.5.5 which includes the Serverworks drivers. Kernel modules are not included though es they have to go into the kernel package - Had to remove all references to I2C_SMBUS_I2C_BLOCK_DATA from kernel/busses/i2c-i801.c and prog/dump/i2cdump.c as this is not defined in our current kernel package * Tue Dec 19 2000 Philipp Knirsch - update to 2.5.4 - updated URL and Source entries to point to new home of lm-sensors - rebuild * Wed Aug 16 2000 Nalin Dahyabhai - fix summary * Fri Jul 28 2000 Harald Hoyer - added static library to devel package * Thu Jul 20 2000 Nalin Dahyabhai - update to 2.5.2 - build against a kernel that actually has new i2c code in it * Wed Jul 12 2000 Prospector - automatic rebuild * Mon Jun 12 2000 Nalin Dahyabhai - initial package without kernel support