lm_sensors/lm_sensors.spec

411 lines
13 KiB
RPMSpec
Raw Normal View History

Name: lm_sensors
Version: 3.0.0
Release: 3%{?dist}
URL: http://www.lm-sensors.org/
2007-11-24 19:35:11 +00:00
Source: http://dl.lm-sensors.org/lm-sensors/releases/%{name}-%{version}.tar.bz2
Source1: lm_sensors.sysconfig
# these 2 were taken from PLD-linux, Thanks!
Source2: sensord.sysconfig
Source3: sensord.init
2007-08-22 15:07:08 +00:00
Patch0: lm_sensors-2.10.4-service-default-off.patch
Patch1: lm_sensors-3.0.0-sensord.patch
Patch2: lm_sensors-3.0.0-sensors.conf.patch
Summary: Hardware monitoring tools
Group: Applications/System
License: GPLv2+
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%ifarch %{ix86} x86_64
Requires: /usr/sbin/dmidecode
%endif
Requires(preun): chkconfig
Requires(post): chkconfig
Requires(post): /sbin/ldconfig
BuildRequires: kernel-headers >= 2.2.16, bison, libsysfs-devel, flex, gawk
BuildRequires: rrdtool-devel
2007-07-17 05:47:09 +00:00
ExcludeArch: s390 s390x
%description
The lm_sensors package includes a collection of modules for general SMBus
access and hardware monitoring.
%package devel
Summary: Development files for programs which will use lm_sensors
Group: Development/System
Requires: %{name} = %{version}-%{release}
%description devel
The lm_sensors-devel package includes a header files and libraries for use
when building applications that make use of sensor data.
%package sensord
Summary: Daemon that periodically logs sensor readings
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
%description sensord
Daemon that periodically logs sensor readings to syslog or a round-robin
database, and warns of sensor alarms.
%prep
2007-11-24 19:35:11 +00:00
%setup -q
2007-08-22 15:07:08 +00:00
%patch0 -p1
%patch1 -p1
%patch2 -p1
mv prog/init/README prog/init/README.initscripts
chmod -x prog/init/fancontrol.init
%build
export CFLAGS="%{optflags}"
make PREFIX=%{_prefix} LIBDIR=%{_libdir} MANDIR=%{_mandir} EXLDFLAGS= \
PROG_EXTRA=sensord user
%install
rm -fr $RPM_BUILD_ROOT
make PREFIX=%{_prefix} LIBDIR=%{_libdir} MANDIR=%{_mandir} PROG_EXTRA=sensord \
DESTDIR=$RPM_BUILD_ROOT user_install
rm $RPM_BUILD_ROOT%{_libdir}/libsensors.a
# Remove userland kernel headers, belong in glibc-kernheaders.
rm -rf $RPM_BUILD_ROOT%{_includedir}/linux
2004-10-14 14:05:56 +00:00
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/lm_sensors
install -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/sensord
mkdir -p $RPM_BUILD_ROOT%{_initrddir}
install -p -m 755 prog/init/lm_sensors.init \
$RPM_BUILD_ROOT%{_initrddir}/lm_sensors
install -p -m 755 %{SOURCE3} $RPM_BUILD_ROOT%{_initrddir}/sensord
%clean
rm -fr $RPM_BUILD_ROOT
# For conversion of sensors.conf on upgrades from 2.10.x to 3.x.x
# First mv any /etc/sensors.conf.rpmsave from previous updates out of the way
# Then after uninstall check if /etc/sensors.conf.rpmsave is created, if it
# is the user was using a non pristine /etc/sensors.conf, so convert it
%triggerun -- lm_sensors <= 2.10.999
if [ -f /etc/sensors.conf.rpmsave ]; then
mv /etc/sensors.conf.rpmsave /etc/sensors.conf.rpmsave.old
fi
%triggerpostun -- lm_sensors <= 2.10.999
if [ -f /etc/sensors.conf.rpmsave ]; then
mv /etc/sensors3.conf /etc/sensors3.conf.rpmnew
%{_bindir}/sensors-conf-convert < /etc/sensors.conf.rpmsave > \
/etc/sensors3.conf
rm /etc/sensors.conf.rpmsave
fi
if [ -f /etc/sensors.conf.rpmsave.old ]; then
mv /etc/sensors.conf.rpmsave.old /etc/sensors.conf.rpmsave
fi
2006-01-16 17:29:20 +00:00
%pre
if [ -f /var/lock/subsys/sensors ]; then
mv -f /var/lock/subsys/sensors /var/lock/subsys/lm_sensors
2006-01-16 17:29:20 +00:00
fi
2004-10-14 14:05:56 +00:00
%post
/sbin/ldconfig
/sbin/chkconfig --add lm_sensors
%postun -p /sbin/ldconfig
2004-10-14 14:05:56 +00:00
%preun
if [ $1 = 0 ]; then
/sbin/chkconfig --del lm_sensors
fi
%post sensord
/sbin/chkconfig --add sensord
%preun sensord
if [ $1 = 0 ]; then
/sbin/chkconfig --del sensord
fi
%files
%defattr(-,root,root)
%doc CHANGES CONTRIBUTORS COPYING doc README*
%doc prog/init/fancontrol.init prog/init/README.initscripts
%config(noreplace) %{_sysconfdir}/sensors3.conf
%{_bindir}/*
%{_libdir}/*.so.*
2007-07-17 05:47:09 +00:00
%{_mandir}/man1/*
%{_mandir}/man5/*
%{_mandir}/man8/*
%{_sbindir}/*
%{_initrddir}/lm_sensors
2004-10-14 14:05:56 +00:00
%config(noreplace) %{_sysconfdir}/sysconfig/lm_sensors
%exclude %{_sbindir}/sensord
2007-07-17 19:45:50 +00:00
%exclude %{_mandir}/man8/sensord.8.gz
%files devel
%defattr(-,root,root)
%{_includedir}/sensors
%{_libdir}/lib*.so
2007-07-17 05:47:09 +00:00
%{_mandir}/man3/*
%files sensord
%defattr(-,root,root,-)
%doc prog/sensord/README
%{_sbindir}/sensord
2007-07-17 19:45:50 +00:00
%{_mandir}/man8/sensord.8.gz
%{_initrddir}/sensord
%config(noreplace) %{_sysconfdir}/sysconfig/sensord
%changelog
* Tue Dec 18 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 3.0.0-3
- Fix sensors.conf errors with certain chips (patch send in by upstream)
* Thu Dec 13 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 3.0.0-2
- Fix sensord rdd mode (patch send in by upstream)
2007-11-24 19:35:11 +00:00
* Sat Nov 24 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 3.0.0-1
- New upstream release 3.0.0 (final)
* Sat Nov 10 2007 Hans de Goede <j.w.r.degoede@hhs.nl> - 3.0.0-0.1.rc3
- New upstream release 3.0.0-rc3
- Remove eeprommer sub-package as eeprommer (and the other i2c-tools)
have moved to the new i2c-tools package
* Wed Aug 22 2007 Hans de Goede <j.w.r.degoede@hhs.nl> - 2.10.4-2
- Update License tag for new Licensing Guidelines compliance
- Disable service by default (no use without any sensors being configured),
enable it automatically on a successfull sensors-detect run (bz 253750)
* Thu Jul 19 2007 Hans de Goede <j.w.r.degoede@hhs.nl> - 2.10.4-1
- New upstream release 2.10.4
- Drop upstreamed patches 4, 5, 7 and 8
- Drop no longer need patch 3
2007-07-17 05:47:09 +00:00
- Move libsensors.3 manpage to -devel sub-package
2007-07-17 19:45:50 +00:00
- Move sensord.8 manpage to -sensord sub-package
2007-07-17 05:47:09 +00:00
- Switch from ExclusiveArch: alph ix86 x86_64, to ExcludeArch: s390 s390x,
so that we get build on ppc, arm, etc. too. (bz 181037 amongst others)
* Mon Jul 9 2007 Hans de Goede <j.w.r.degoede@hhs.nl> - 2.10.3-3
- Remove no longer needed patches 1, 2 & 6
- Various specfile cleanups to match the Fedora packaging guidelines
this fixes bz 238787 amongst other things
- Use lm_sensors provided initscript instead of our own private one, this
stops the sometimes unnecessary loading of i2c-dev
- No longer ship a static version of the library in -devel
- Compile sensord and eepromer extra programs and put each in its own
subpackage (bz 236904)
* Tue Apr 17 2007 Phil Knirsch <pknirsch@redhat.com> - 2.10.3-2
- Fixed one more problem with sensors-detect (#215984)
2007-04-17 12:11:59 +00:00
* Tue Apr 17 2007 Phil Knirsch <pknirsch@redhat.com> - 2.10.3-1
- Update to lm_sensors-2.10.3
* Thu Mar 15 2007 Phil Knirsch <pknirsch@redhat.com> - 2.10.2-2
- Only require dmidecode on supported archs (#232264)
2007-02-06 12:33:04 +00:00
* Tue Feb 06 2007 Florian La Roche <laroche@redhat.com> - 2.10.2-1
- Update to lm_sensors-2.10.2
* Thu Nov 23 2006 Phil Knirsch <pknirsch@redhat.com> - 2.10.1-1.fc7
- Update to lm_sensors-2.10.1
- Tiny specfile updates
2006-07-12 07:14:10 +00:00
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 2.10.0-3.1
- rebuild
* Sun Jul 09 2006 Warren Togami <wtogami@redhat.com> 2.10.0-3
- change buildreq from sysfsutils-devel to libsysfs-devel (#198055)
* Mon Jun 05 2006 Jesse Keating <jkeating@redhat.com> 2.10.0-2
- Fix BuildRequires, added flex. (#193511) Changed to Requires(post) and
(postun)
* Fri May 12 2006 Phil Knirsch <pknirsch@redhat.com> 2.10.0-1
- Update to lm_sensors-2.10.0
- Added missing buildprereq on sysfsutils-devel (#189196)
- Added missing prereq on chkconfig (#182838)
- Some fiddling to make it build on latest kernels
* Wed Feb 15 2006 Phil Knirsch <pknirsch@redhat.com> 2.9.2-2
- Added missing dependency to chkconfig
* Fri Feb 10 2006 Phil Knirsch <pknirsch@redhat.com> 2.9.2-1
- Update to lm_sensors-2.9.2
- Fixed wrong subsys locking (#176965)
- Removed lm_sensors pwmconfig, has been fixed upstream now
2006-02-07 12:52:39 +00:00
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 2.9.1-6.1
- rebuilt for new gcc4.1 snapshot and glibc changes
2006-01-16 17:29:20 +00:00
* Mon Jan 16 2006 Peter Jones <pjones@redhat.com> 2.9.1-6
- fix initscript subsys locking
* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com> 2.9.1-5.1
2005-12-16 23:21:30 +00:00
- rebuilt for new gcj
2005-11-08 14:08:13 +00:00
* Tue Nov 08 2005 Phil Knirsch <pknirsch@redhat.com> 2.9.1-5
- Fixed lm_sensors pwmconfig patch.
* Tue Sep 01 2005 Phil Knirsch <pknirsch@redhat.com> 2.9.1-4
- Fixed CAN-2005-2672 lm_sensors pwmconfig insecure temporary file usage
(#166673)
- Fixed missing optflags during build (#166910)
* Mon May 23 2005 Phil Knirsch <pknirsch@redhat.com> 2.9.1-3
2005-05-23 15:11:50 +00:00
- Update to lm_sensors-2.9.1
- Fixed wrong/missing location variables for make user
- Fixed missing check for /etc/modprobe.conf in sensors-detect (#139245)
2005-05-23 15:11:50 +00:00
2005-03-02 16:13:33 +00:00
* Wed Mar 02 2005 Phil Knirsch <pknirsch@redhat.com> 2.8.8-5
- bump release and rebuild with gcc 4
* Tue Jan 11 2005 Dave Jones <davej@redhat.com> 2.8.8-4
- Add dependancy on dmidecode rather than the obsolete kernel-utils.
- Don't delete dmidecode from the buildroot.
2004-12-23 15:07:20 +00:00
* Thu Dec 23 2004 Phil Knirsch <pknirsch@redhat.com> 2.8.8-2
- Fixed typo in initscript (#139030)
* Tue Dec 21 2004 Phil Knirsch <pknirsch@redhat.com> 2.8.8-1
- Added Buildprereq for bison (#138888)
- Update to lm_sensors-2.8.8
* Thu Oct 14 2004 Harald Hoyer <harald@redhat.com> 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 <pknirsch@redhat.com> 2.8.7-1
- Update to latest upstream version.
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
- rebuilt
* Tue Apr 13 2004 Phil Knirsch <pknirsch@redhat.com> 2.8.6-1
- Update to latest upstream version.
- Enabled build for x86_64.
* Mon Mar 08 2004 Phil Knirsch <pknirsch@redhat.com> 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 <sopwith@redhat.com>
- rebuilt
* Thu Feb 05 2004 Phil Knirsch <pknirsch@redhat.com> 2.8.3-3
- Modified sensors.conf to a noreplace config file.
* Wed Feb 04 2004 Phil Knirsch <pknirsch@redhat.com> 2.8.3-2
- Fixed newly included initscript (#114608).
* Thu Jan 29 2004 Phil Knirsch <pknirsch@redhat.com> 2.8.3-1
- Updated to latest upstream version 2.8.3
* Thu Jan 08 2004 Phil Knirsch <pknirsch@redhat.com> 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 <pknirsch@redhat.com> 2.8.1-1
- Update to latest upstream version 2.8.1
* Wed Jul 23 2003 Phil Knirsch <pknirsch@redhat.com> 2.8.0-1
- Update to latest upstream version 2.8.0
* Fri Jun 27 2003 Phil Knirsch <pknirsch@redhat.com> 2.6.5-6.1
- rebuilt
* Fri Jun 27 2003 Phil Knirsch <pknirsch@redhat.com> 2.6.5-6
- Included prog/init scripts and README (#90606).
- Require kernel-utils for dmidecode (#88367, #65057).
* Wed Jan 22 2003 Tim Powers <timp@redhat.com> 2.6.5-5
- rebuilt
* Wed Dec 04 2002 Phil Knirsch <pknirsch@redhat.com> 2.6.5-4
- Bump release and try to rebuild.
* Tue Dec 3 2002 Tim Powers <timp@redhat.com> 2.6.5-3
- don't include dmidecode, conflicts with kernel-utils
* Fri Nov 29 2002 Phil Knirsch <pknirsch@redhat.com> 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 <pknirsch@redhat.com> 2.6.5-1
- Updated userlevel to 2.6.5.
- Include all the /usr/sbin/ apps (like dmidecode).
* Fri Oct 04 2002 Phil Knirsch <pknirsch@redhat.com> 2.6.3-3
- Removed Serverworks patch as it is already in sensors-detect.
* Fri Jun 21 2002 Tim Powers <timp@redhat.com> 2.6.3-2
- automated rebuild
* Tue Jun 18 2002 Phil Knirsch <pknirsch@redhat.com> 2.6.3-1
- Updated of userland package to 2.6.3
- Fixed file packaging bug (#66126).
* Thu May 23 2002 Tim Powers <timp@redhat.com> 2.6.2-2
- automated rebuild
* Mon Jan 28 2002 Phil Knirsch <pknirsch@redhat.com> 2.6.2-1
- Update to version 2.6.2
* Wed Aug 22 2001 Philipp Knirsch <pknirsch@redhat.de> 2.5.5-6
- Added the SMBus CSB5 detection (#50468)
* Mon Jul 9 2001 Philipp Knirsch <pknirsch@redhat.de>
- Fixed duplicate Summary: entry for devel package (#47714)
* Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
- Bump release + rebuild.
* Thu Feb 15 2001 Philipp Knirsch <pknirsch@redhat.de>
- Removed the i2c block patch as our newest kernel doesn't need it anymore.
* Mon Feb 5 2001 Matt Wilson <msw@redhat.com>
- 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 <pknirsch@redhat.de>
- 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 <pknirsch@redhat.de>
- 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 <nalin@redhat.com>
- fix summary
* Fri Jul 28 2000 Harald Hoyer <harald@redhat.de>
- added static library to devel package
* Thu Jul 20 2000 Nalin Dahyabhai <nalin@redhat.com>
- update to 2.5.2
- build against a kernel that actually has new i2c code in it
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
- automatic rebuild
* Mon Jun 12 2000 Nalin Dahyabhai <nalin@redhat.com>
- initial package without kernel support