2007-01-16 00:36:43 +01:00
|
|
|
|
#
|
2011-01-24 16:08:05 +01:00
|
|
|
|
# spec file for package sensors
|
2007-01-16 00:36:43 +01:00
|
|
|
|
#
|
2013-03-01 11:06:23 +01:00
|
|
|
|
# Copyright (c) 2013 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/
|
|
|
|
|
#
|
|
|
|
|
|
2008-03-13 19:06:12 +01:00
|
|
|
|
|
2007-01-16 00:36:43 +01:00
|
|
|
|
Name: sensors
|
2012-09-14 07:06:07 +02:00
|
|
|
|
BuildRequires: bison
|
|
|
|
|
BuildRequires: flex
|
|
|
|
|
BuildRequires: rrdtool-devel
|
2007-10-16 18:36:08 +02:00
|
|
|
|
Url: http://www.lm-sensors.org/
|
- Update to lm_sensors 3.3.4
* Mostly a packaging-only clean-up, as we had backported most
important changes already.
* lm_sensors-r6111-detection-Winbond-W83627SF.diff,
lm_sensors-r6112-detection-AMD-family-16h.diff,
lm_sensors-r6113-ITE-IT877x-IT878x-driver.diff,
lm_sensors-r6117-detection-ITE-IT8752F.diff,
lm_sensors-r6123-AnalogDev-ADT7410-driver.diff,
lm_sensors-r6163-pwmconfig-raise-threshold.diff,
lm_sensors-r6164-pwmconfig-drop-comment.diff,
lm_sensors-r6165-pwmconfig-multiple-fans.diff,
lm_sensors-r6172-fancontrol-absolute-paths.diff: Removed,
upstream now.
* fancontrol.service: Removed, now provided by upstream,
together with sensord.service.
* lm_sensors-3.0.0-sysconfig_metadata.patch,
lm_sensors-3.0.3-hint-at-kernel-extra-package.patch: Refreshed.
- lm_sensors-r6181-fix-service-files.patch: Fix EnvironmentFile
in service files
OBS-URL: https://build.opensuse.org/package/show/Base:System/sensors?expand=0&rev=63
2013-06-03 14:54:44 +02:00
|
|
|
|
Version: 3.3.4
|
2012-09-14 07:06:07 +02:00
|
|
|
|
Release: 0
|
2007-01-16 00:36:43 +01:00
|
|
|
|
Summary: Hardware health monitoring for Linux
|
2012-01-17 12:52:10 +01:00
|
|
|
|
License: GPL-2.0+
|
2007-01-16 00:36:43 +01:00
|
|
|
|
Group: System/Monitoring
|
2012-09-14 07:06:07 +02:00
|
|
|
|
Requires: modutils
|
2013-04-06 03:03:26 +02:00
|
|
|
|
Source0: http://dl.lm-sensors.org/lm-sensors/releases/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
|
- Update to lm_sensors 3.3.4
* Mostly a packaging-only clean-up, as we had backported most
important changes already.
* lm_sensors-r6111-detection-Winbond-W83627SF.diff,
lm_sensors-r6112-detection-AMD-family-16h.diff,
lm_sensors-r6113-ITE-IT877x-IT878x-driver.diff,
lm_sensors-r6117-detection-ITE-IT8752F.diff,
lm_sensors-r6123-AnalogDev-ADT7410-driver.diff,
lm_sensors-r6163-pwmconfig-raise-threshold.diff,
lm_sensors-r6164-pwmconfig-drop-comment.diff,
lm_sensors-r6165-pwmconfig-multiple-fans.diff,
lm_sensors-r6172-fancontrol-absolute-paths.diff: Removed,
upstream now.
* fancontrol.service: Removed, now provided by upstream,
together with sensord.service.
* lm_sensors-3.0.0-sysconfig_metadata.patch,
lm_sensors-3.0.3-hint-at-kernel-extra-package.patch: Refreshed.
- lm_sensors-r6181-fix-service-files.patch: Fix EnvironmentFile
in service files
OBS-URL: https://build.opensuse.org/package/show/Base:System/sensors?expand=0&rev=63
2013-06-03 14:54:44 +02:00
|
|
|
|
Patch5: lm_sensors-r6181-fix-service-files.patch
|
2011-07-22 19:03:35 +02:00
|
|
|
|
|
2007-01-16 00:36:43 +01:00
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-06-05 01:12:42 +02:00
|
|
|
|
ExcludeArch: s390 s390x
|
2012-11-01 18:17:08 +01:00
|
|
|
|
BuildRequires: systemd
|
|
|
|
|
%{?systemd_requires}
|
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
|
|
|
|
|
Summary: Hardware health monitoring daemon
|
2012-09-14 07:06:07 +02:00
|
|
|
|
License: GPL-2.0+
|
2007-10-31 17:22:59 +01:00
|
|
|
|
Group: System/Monitoring
|
2007-11-06 00:37:57 +01:00
|
|
|
|
Provides: sensors:/usr/sbin/sensord
|
2007-10-31 17:22:59 +01:00
|
|
|
|
|
|
|
|
|
%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
|
2007-11-02 16:02:53 +01:00
|
|
|
|
Summary: Hardware health monitoring library
|
2012-09-14 07:06:07 +02:00
|
|
|
|
License: LGPL-2.1+
|
2007-11-03 16:17:50 +01:00
|
|
|
|
Group: System/Libraries
|
2007-11-02 16:02:53 +01:00
|
|
|
|
|
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
|
2007-11-02 16:02:53 +01:00
|
|
|
|
Summary: Hardware health monitoring library
|
2012-09-14 07:06:07 +02:00
|
|
|
|
License: LGPL-2.1+
|
2007-11-03 16:17:50 +01:00
|
|
|
|
Group: Development/Libraries/C and C++
|
2012-09-14 07:06:07 +02:00
|
|
|
|
Requires: glibc-devel
|
|
|
|
|
Requires: libsensors4 = %{version}
|
2007-11-06 00:37:57 +01:00
|
|
|
|
Provides: sensors:/usr/include/sensors/sensors.h
|
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
|
2013-03-01 11:06:23 +01:00
|
|
|
|
%patch5 -p1
|
2010-11-30 15:47:02 +01:00
|
|
|
|
|
2007-01-16 00:36:43 +01:00
|
|
|
|
%build
|
|
|
|
|
RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
|
2010-11-01 09:22:42 +01:00
|
|
|
|
make %{?_smp_mflags} PROG_EXTRA:=sensord BUILD_STATIC_LIB:=0 PREFIX=%{_prefix} MANDIR=%{_mandir} LIBDIR=%{_libdir}
|
2007-01-16 00:36:43 +01:00
|
|
|
|
|
|
|
|
|
%install
|
2010-10-11 12:18:12 +02:00
|
|
|
|
make PROG_EXTRA:=sensord BUILD_STATIC_LIB:=0 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
|
2013-06-03 15:23:13 +02:00
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_unitdir}
|
|
|
|
|
cp -a prog/init/*.service $RPM_BUILD_ROOT/%{_unitdir}/
|
2010-11-30 15:47:02 +01:00
|
|
|
|
|
2012-11-01 18:17:08 +01:00
|
|
|
|
%pre
|
|
|
|
|
%service_add_pre lm_sensors.service
|
2009-07-30 17:01:03 +02:00
|
|
|
|
%post
|
2012-11-01 18:17:08 +01:00
|
|
|
|
%service_add_post lm_sensors.service
|
2009-07-30 17:01:03 +02:00
|
|
|
|
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
|
2012-11-01 18:17:08 +01:00
|
|
|
|
%service_del_preun lm_sensors.service
|
2009-01-12 02:14:43 +01:00
|
|
|
|
%{stop_on_removal lm_sensors}
|
|
|
|
|
|
2007-01-16 00:36:43 +01:00
|
|
|
|
%postun
|
2012-11-01 18:17:08 +01:00
|
|
|
|
%service_del_postun lm_sensors.service
|
2007-01-16 00:36:43 +01:00
|
|
|
|
%{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)
|
2012-11-01 18:17:08 +01:00
|
|
|
|
%{_unitdir}/lm_sensors.service
|
2013-05-18 13:59:12 +02:00
|
|
|
|
%{_unitdir}/fancontrol.service
|
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)
|
- Update to lm_sensors 3.3.4
* Mostly a packaging-only clean-up, as we had backported most
important changes already.
* lm_sensors-r6111-detection-Winbond-W83627SF.diff,
lm_sensors-r6112-detection-AMD-family-16h.diff,
lm_sensors-r6113-ITE-IT877x-IT878x-driver.diff,
lm_sensors-r6117-detection-ITE-IT8752F.diff,
lm_sensors-r6123-AnalogDev-ADT7410-driver.diff,
lm_sensors-r6163-pwmconfig-raise-threshold.diff,
lm_sensors-r6164-pwmconfig-drop-comment.diff,
lm_sensors-r6165-pwmconfig-multiple-fans.diff,
lm_sensors-r6172-fancontrol-absolute-paths.diff: Removed,
upstream now.
* fancontrol.service: Removed, now provided by upstream,
together with sensord.service.
* lm_sensors-3.0.0-sysconfig_metadata.patch,
lm_sensors-3.0.3-hint-at-kernel-extra-package.patch: Refreshed.
- lm_sensors-r6181-fix-service-files.patch: Fix EnvironmentFile
in service files
OBS-URL: https://build.opensuse.org/package/show/Base:System/sensors?expand=0&rev=63
2013-06-03 14:54:44 +02:00
|
|
|
|
%{_unitdir}/sensord.service
|
2007-10-31 17:22:59 +01:00
|
|
|
|
/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
|
2012-01-17 12:52:10 +01:00
|
|
|
|
%config /etc/sensors.d/
|
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
|