2007-01-16 00:36:43 +01:00
|
|
|
|
#
|
2010-02-05 14:20:16 +01:00
|
|
|
|
# spec file for package sensors (Version 3.1.2)
|
2007-01-16 00:36:43 +01:00
|
|
|
|
#
|
2010-01-11 15:53:44 +01:00
|
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:36:43 +01:00
|
|
|
|
#
|
2008-09-29 18:18:11 +02:00
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
2007-01-16 00:36:43 +01:00
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
2008-03-13 19:06:12 +01:00
|
|
|
|
|
2007-01-16 00:36:43 +01:00
|
|
|
|
Name: sensors
|
2008-02-04 17:41:25 +01:00
|
|
|
|
BuildRequires: bison flex rrdtool-devel
|
2007-10-16 18:36:08 +02:00
|
|
|
|
Url: http://www.lm-sensors.org/
|
2010-02-05 14:20:16 +01:00
|
|
|
|
Version: 3.1.2
|
2010-05-07 15:39:50 +02:00
|
|
|
|
Release: 4
|
2007-01-16 00:36:43 +01:00
|
|
|
|
Summary: Hardware health monitoring for Linux
|
2009-12-07 15:26:21 +01:00
|
|
|
|
License: GPLv2+
|
2007-01-16 00:36:43 +01:00
|
|
|
|
Group: System/Monitoring
|
2007-12-03 02:04:50 +01:00
|
|
|
|
Requires: modules
|
2007-10-16 18:36:08 +02:00
|
|
|
|
AutoReqProv: on
|
2008-05-22 01:51:08 +02:00
|
|
|
|
Source0: lm_sensors-%{version}.tar.bz2
|
2009-07-30 17:01:03 +02:00
|
|
|
|
Source1: lm_sensors.init
|
2010-01-11 15:53:44 +01:00
|
|
|
|
Source2: baselibs.conf
|
2009-07-30 17:01:03 +02:00
|
|
|
|
Patch1: lm_sensors-3.1.1-build.patch
|
|
|
|
|
Patch2: lm_sensors-3.0.0-sensord-separate.patch
|
|
|
|
|
Patch3: lm_sensors-3.0.0-sysconfig_metadata.patch
|
2008-10-23 12:29:59 +02:00
|
|
|
|
Patch4: lm_sensors-3.0.3-hint-at-kernel-extra-package.patch
|
2010-02-05 14:20:16 +01:00
|
|
|
|
Patch5: lm_sensors-3.1.1-no-ipmisensors-driver.patch
|
2010-03-31 15:19:32 +02:00
|
|
|
|
Patch6: lm_sensors-r5832-adt7468-driver.patch
|
2010-05-07 15:39:50 +02:00
|
|
|
|
Patch7: lm_sensors-r5835-fix-sensord-regression.patch
|
2007-01-16 00:36:43 +01:00
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-06-05 01:12:42 +02:00
|
|
|
|
ExcludeArch: s390 s390x
|
2007-01-16 00:36:43 +01:00
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This package includes programs that show data from some sensor chips.
|
|
|
|
|
The interface /proc/bus/i2c/ is provided by loading kernel modules.
|
|
|
|
|
Which modules to load can be interactively detected as root by calling
|
|
|
|
|
/usr/sbin/sensors-detect. Warning, before using the sensors the default
|
|
|
|
|
configuration in /etc/sensors.conf has to be checked and changed to fit
|
|
|
|
|
the actual set up of the mainboard and the BIOS used on that specific
|
|
|
|
|
mainboard!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
Simon G. Vogl <simon@tk.uni-linz.ac.at>
|
|
|
|
|
Mark D. Studebaker <mds@eng.paradyne.com>
|
|
|
|
|
Philip Edelbrock <phil@netroedge.com>
|
|
|
|
|
Ky<EFBFBD>sti M<EFBFBD>lkki <kmalkki@cc.hut.fi>
|
|
|
|
|
Fons Rademakers <Fons.Rademakers@cern.ch>
|
|
|
|
|
Frodo Looijaard <frodol@dds.nl>
|
|
|
|
|
Geert Uytterhoeven <geert@linux-m68k.org>
|
|
|
|
|
|
2007-10-31 17:22:59 +01:00
|
|
|
|
%package -n sensord
|
2009-12-07 15:26:21 +01:00
|
|
|
|
License: GPLv2+
|
2007-10-31 17:22:59 +01:00
|
|
|
|
Summary: Hardware health monitoring daemon
|
|
|
|
|
Group: System/Monitoring
|
2007-11-06 00:37:57 +01:00
|
|
|
|
Provides: sensors:/usr/sbin/sensord
|
2007-10-31 17:22:59 +01:00
|
|
|
|
AutoReqProv: on
|
|
|
|
|
|
|
|
|
|
%description -n sensord
|
|
|
|
|
sensord is a daemon that can be used to periodically log sensor
|
|
|
|
|
readings from hardware health-monitoring chips to the system logs or a
|
|
|
|
|
round-robin database (RRD) and to alert when a sensor alarm is
|
|
|
|
|
signalled; for example, if a fan fails, a temperature limit is
|
|
|
|
|
exceeded, etc.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
Merlin Hughes <merlin@merlin.org>
|
|
|
|
|
|
2007-11-28 23:49:25 +01:00
|
|
|
|
%package -n libsensors4
|
2009-12-07 15:26:21 +01:00
|
|
|
|
License: GPLv2+
|
2007-11-02 16:02:53 +01:00
|
|
|
|
Summary: Hardware health monitoring library
|
2007-11-03 16:17:50 +01:00
|
|
|
|
Group: System/Libraries
|
2007-11-02 16:02:53 +01:00
|
|
|
|
AutoReqProv: on
|
|
|
|
|
|
2007-11-28 23:49:25 +01:00
|
|
|
|
%description -n libsensors4
|
2007-11-02 16:02:53 +01:00
|
|
|
|
libsensors offers a way for applications to access the hardware
|
|
|
|
|
monitoring chips of the system. A system-dependent configuration file
|
|
|
|
|
controls how the different inputs are labeled and what scaling factors
|
|
|
|
|
have to be applied for the specific hardware, so that the output makes
|
|
|
|
|
sense to the user.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
Mark D. Studebaker <mds@eng.paradyne.com>
|
|
|
|
|
Philip Edelbrock <phil@netroedge.com>
|
|
|
|
|
Ky<EFBFBD>sti M<EFBFBD>lkki <kmalkki@cc.hut.fi>
|
|
|
|
|
Frodo Looijaard <frodol@dds.nl>
|
|
|
|
|
Jean Delvare <khali@linux-fr.org>
|
|
|
|
|
Mark M. Hoffman <mhoffman@lightlink.com>
|
|
|
|
|
|
2007-11-28 23:49:25 +01:00
|
|
|
|
%package -n libsensors4-devel
|
2009-12-07 15:26:21 +01:00
|
|
|
|
License: GPLv2+
|
2007-11-02 16:02:53 +01:00
|
|
|
|
Summary: Hardware health monitoring library
|
2007-11-03 16:17:50 +01:00
|
|
|
|
Group: Development/Libraries/C and C++
|
2009-12-04 11:28:22 +01:00
|
|
|
|
Requires: libsensors4 = %{version} glibc-devel
|
2007-11-06 00:37:57 +01:00
|
|
|
|
Provides: sensors:/usr/include/sensors/sensors.h
|
2007-11-02 16:02:53 +01:00
|
|
|
|
AutoReqProv: on
|
2007-11-29 18:25:45 +01:00
|
|
|
|
Conflicts: libsensors3-devel
|
2007-11-02 16:02:53 +01:00
|
|
|
|
|
2007-11-28 23:49:25 +01:00
|
|
|
|
%description -n libsensors4-devel
|
2007-11-02 16:02:53 +01:00
|
|
|
|
libsensors offers a way for applications to access the hardware
|
|
|
|
|
monitoring chips of the system. A system-dependent configuration file
|
|
|
|
|
controls how the different inputs are labeled and what scaling factors
|
|
|
|
|
have to be applied for the specific hardware, so that the output makes
|
|
|
|
|
sense to the user.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
Mark D. Studebaker <mds@eng.paradyne.com>
|
|
|
|
|
Philip Edelbrock <phil@netroedge.com>
|
|
|
|
|
Ky<EFBFBD>sti M<EFBFBD>lkki <kmalkki@cc.hut.fi>
|
|
|
|
|
Frodo Looijaard <frodol@dds.nl>
|
|
|
|
|
Jean Delvare <khali@linux-fr.org>
|
|
|
|
|
Mark M. Hoffman <mhoffman@lightlink.com>
|
|
|
|
|
|
2007-01-16 00:36:43 +01:00
|
|
|
|
%prep
|
2007-08-15 20:36:45 +02:00
|
|
|
|
%setup -q -n lm_sensors-%{version}
|
2009-07-30 17:01:03 +02:00
|
|
|
|
%patch1 -p1
|
|
|
|
|
%patch2 -p1
|
2008-10-23 12:29:59 +02:00
|
|
|
|
%patch3 -p1
|
|
|
|
|
%patch4 -p1
|
2009-07-30 17:01:03 +02:00
|
|
|
|
%patch5 -p1
|
2010-03-31 15:19:32 +02:00
|
|
|
|
%patch6 -p1
|
2010-05-07 15:39:50 +02:00
|
|
|
|
%patch7 -p1
|
2007-01-16 00:36:43 +01:00
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
|
2010-01-11 15:53:44 +01:00
|
|
|
|
make %{?jobs:-j%jobs} PROG_EXTRA:=sensord PREFIX=%{_prefix} MANDIR=%{_mandir} LIBDIR=%{_libdir} user
|
2007-01-16 00:36:43 +01:00
|
|
|
|
|
|
|
|
|
%install
|
2008-01-21 01:12:42 +01:00
|
|
|
|
make PROG_EXTRA:=sensord PREFIX=%{_prefix} MANDIR=%{_mandir} LIBDIR=%{_libdir} DESTDIR=$RPM_BUILD_ROOT install
|
2007-01-16 00:36:43 +01:00
|
|
|
|
cd doc/
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_docdir}/sensors
|
|
|
|
|
cp -a donations $RPM_BUILD_ROOT/%{_docdir}/sensors/
|
|
|
|
|
cp -a fan-divisors $RPM_BUILD_ROOT/%{_docdir}/sensors/
|
|
|
|
|
cp -a fancontrol.txt $RPM_BUILD_ROOT/%{_docdir}/sensors/
|
|
|
|
|
cp -a temperature-sensors $RPM_BUILD_ROOT/%{_docdir}/sensors/
|
|
|
|
|
cp -a vid $RPM_BUILD_ROOT/%{_docdir}/sensors/
|
|
|
|
|
cp -a progs $RPM_BUILD_ROOT/%{_docdir}/sensors/
|
|
|
|
|
chmod -R u+rwX,g+rX,o+rX $RPM_BUILD_ROOT/%{_docdir}/sensors/
|
|
|
|
|
cd ../
|
|
|
|
|
chmod 0755 $RPM_BUILD_ROOT/%{_libdir}/libsensors.so.*
|
2009-07-30 17:01:03 +02:00
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/init.d
|
|
|
|
|
install -m 0755 %{S:1} $RPM_BUILD_ROOT/etc/init.d/lm_sensors
|
|
|
|
|
ln -sf /etc/init.d/lm_sensors $RPM_BUILD_ROOT/usr/sbin/rclm_sensors
|
2007-01-16 00:36:43 +01:00
|
|
|
|
# cleanup
|
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/src/linux/include/sensors.h
|
2009-04-23 23:33:45 +02:00
|
|
|
|
rm -f %{buildroot}%{_libdir}/libsensors.a
|
2007-01-16 00:36:43 +01:00
|
|
|
|
|
2008-10-23 04:47:18 +02:00
|
|
|
|
%clean
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
2009-07-30 17:01:03 +02:00
|
|
|
|
%post
|
|
|
|
|
sh -c '
|
|
|
|
|
CONFIG=/etc/sysconfig/lm_sensors
|
|
|
|
|
test -r "$CONFIG" || exit 0
|
|
|
|
|
unset ${!MODULE_*} $HWMON_MODULES
|
|
|
|
|
. "$CONFIG"
|
|
|
|
|
test -n "$HWMON_MODULES" && exit 0
|
|
|
|
|
for i in ${!MODULE_*} ; do
|
|
|
|
|
eval module=\$$i
|
|
|
|
|
if test -z "$HWMON_MODULES" ; then
|
|
|
|
|
HWMON_MODULES="$module"
|
|
|
|
|
else
|
|
|
|
|
HWMON_MODULES="$HWMON_MODULES $module"
|
|
|
|
|
fi
|
|
|
|
|
done
|
|
|
|
|
test -z "$HWMON_MODULES" && exit 0
|
|
|
|
|
echo >> "$CONFIG"
|
|
|
|
|
echo "# New configuration format generated by rpm post-install script" >> "$CONFIG"
|
|
|
|
|
echo "HWMON_MODULES=\"$HWMON_MODULES\"" >> "$CONFIG"
|
|
|
|
|
'
|
|
|
|
|
if test -e /etc/modprobe.d/lm_sensors -a ! -e /etc/modprobe.d/lm_sensors.conf ; then
|
|
|
|
|
mv -f /etc/modprobe.d/lm_sensors /etc/modprobe.d/lm_sensors.conf
|
|
|
|
|
fi
|
|
|
|
|
|
2009-01-12 02:14:43 +01:00
|
|
|
|
%preun
|
|
|
|
|
%{stop_on_removal lm_sensors}
|
|
|
|
|
|
2007-01-16 00:36:43 +01:00
|
|
|
|
%postun
|
|
|
|
|
%{insserv_cleanup}
|
2007-11-02 16:02:53 +01:00
|
|
|
|
|
2008-10-23 04:47:18 +02:00
|
|
|
|
%post -n libsensors4 -p /sbin/ldconfig
|
2007-11-02 16:02:53 +01:00
|
|
|
|
|
2008-10-23 04:47:18 +02:00
|
|
|
|
%postun -n libsensors4 -p /sbin/ldconfig
|
2007-01-16 00:36:43 +01:00
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
2007-05-28 15:04:57 +02:00
|
|
|
|
/etc/init.d/lm_sensors
|
2007-11-28 23:49:25 +01:00
|
|
|
|
/usr/sbin/rclm_sensors
|
2007-01-16 00:36:43 +01:00
|
|
|
|
/usr/bin/*
|
2007-10-31 17:22:59 +01:00
|
|
|
|
/usr/sbin/fancontrol
|
2007-11-02 01:39:50 +01:00
|
|
|
|
%ifarch i386 i486 i586 i686 x86_64
|
2007-10-31 17:22:59 +01:00
|
|
|
|
/usr/sbin/isadump
|
|
|
|
|
/usr/sbin/isaset
|
2007-11-02 01:39:50 +01:00
|
|
|
|
%endif
|
2007-10-31 17:22:59 +01:00
|
|
|
|
/usr/sbin/pwmconfig
|
|
|
|
|
/usr/sbin/sensors-detect
|
2007-01-16 00:36:43 +01:00
|
|
|
|
%doc %{_docdir}/sensors/
|
|
|
|
|
%doc /usr/share/man/man1/*.1.gz
|
2007-10-31 17:22:59 +01:00
|
|
|
|
%doc /usr/share/man/man8/fancontrol.8.gz
|
2007-11-02 01:39:50 +01:00
|
|
|
|
%ifarch i386 i486 i586 i686 x86_64
|
2007-10-31 17:22:59 +01:00
|
|
|
|
%doc /usr/share/man/man8/isadump.8.gz
|
|
|
|
|
%doc /usr/share/man/man8/isaset.8.gz
|
2007-11-02 01:39:50 +01:00
|
|
|
|
%endif
|
2007-10-31 17:22:59 +01:00
|
|
|
|
%doc /usr/share/man/man8/pwmconfig.8.gz
|
|
|
|
|
%doc /usr/share/man/man8/sensors-detect.8.gz
|
|
|
|
|
|
|
|
|
|
%files -n sensord
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
/usr/sbin/sensord
|
|
|
|
|
%doc /usr/share/man/man8/sensord.8.gz
|
2007-11-02 16:02:53 +01:00
|
|
|
|
|
2007-11-28 23:49:25 +01:00
|
|
|
|
%files -n libsensors4
|
2007-11-02 16:02:53 +01:00
|
|
|
|
%defattr(-,root,root)
|
2009-07-30 17:01:03 +02:00
|
|
|
|
%config /etc/sensors3.conf
|
2007-11-28 23:49:25 +01:00
|
|
|
|
%{_libdir}/libsensors.so.4*
|
2007-11-02 16:02:53 +01:00
|
|
|
|
%doc /usr/share/man/man5/*.5.gz
|
|
|
|
|
|
2007-11-28 23:49:25 +01:00
|
|
|
|
%files -n libsensors4-devel
|
2007-11-02 16:02:53 +01:00
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
/usr/include/sensors/
|
|
|
|
|
%{_libdir}/libsensors.so
|
|
|
|
|
%doc /usr/share/man/man3/*.3.gz
|
2007-11-23 01:45:54 +01:00
|
|
|
|
|
2007-02-25 23:38:40 +01:00
|
|
|
|
%changelog
|