Search
j0ke.net Open Build Service
>
Projects
>
stresslinux
>
sensors
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 9
[-]
[+]
Added
sensors.spec
@@ -0,0 +1,425 @@ +# +# spec file for package sensors (Version 3.0.0) +# +# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild + +Name: sensors +BuildRequires: bison flex rrdtool-devel sysfsutils +Url: http://www.lm-sensors.org/ +Version: 3.0.0 +Release: 9 +Summary: Hardware health monitoring for Linux +License: GPL v2 or later +Group: System/Monitoring +Requires: modules +AutoReqProv: on +Source0: lm_sensors-3.0.0.tar.bz2 +Patch: lm_sensors-3.0.0.dif +Patch1: lm_sensors-3.0.0-sensord-separate.dif +Patch2: lm_sensors-3.0.0-sysconfig_metadata.patch +Patch3: lm_sensors-3.0.0-sensord-fix-rrd-support.patch +Patch4: lm_sensors-3.0.0-sensors.conf-fix-voltage-references.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-build +ExcludeArch: s390 s390x + +%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östi Mälkki <kmalkki@cc.hut.fi> + Fons Rademakers <Fons.Rademakers@cern.ch> + Frodo Looijaard <frodol@dds.nl> + Geert Uytterhoeven <geert@linux-m68k.org> + +%package -n sensord +Summary: Hardware health monitoring daemon +Group: System/Monitoring +Provides: sensors:/usr/sbin/sensord +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> + +%package -n libsensors4 +Summary: Hardware health monitoring library +Group: System/Libraries +AutoReqProv: on + +%description -n libsensors4 +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östi Mälkki <kmalkki@cc.hut.fi> + Frodo Looijaard <frodol@dds.nl> + Jean Delvare <khali@linux-fr.org> + Mark M. Hoffman <mhoffman@lightlink.com> + +%package -n libsensors4-devel +Summary: Hardware health monitoring library +Group: Development/Libraries/C and C++ +Requires: libsensors4 = %{version} +Requires: sysfsutils +Provides: sensors:/usr/include/sensors/sensors.h +AutoReqProv: on +Conflicts: libsensors3-devel + +%description -n libsensors4-devel +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östi Mälkki <kmalkki@cc.hut.fi> + Frodo Looijaard <frodol@dds.nl> + Jean Delvare <khali@linux-fr.org> + Mark M. Hoffman <mhoffman@lightlink.com> + +%prep +%setup -q -n lm_sensors-%{version} +%patch +%patch1 +%patch2 +%patch3 +%patch4 + +%build +RPM_OPT_FLAGS="$RPM_OPT_FLAGS" + make PROG_EXTRA:=sensord LIBDIR=%{_libdir} user + +%install + make user_install PROG_EXTRA:=sensord LIBDIR=%{_libdir} DESTDIR=$RPM_BUILD_ROOT + cd doc/ + mkdir -p $RPM_BUILD_ROOT/%{_docdir}/sensors + cp -a FAQ $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.* + mkdir -p $RPM_BUILD_ROOT/etc/init.d + install -m 0755 prog/init/lm_sensors.init.suse $RPM_BUILD_ROOT/etc/init.d/lm_sensors + ln -sf /etc/init.d/lm_sensors $RPM_BUILD_ROOT/usr/sbin/rclm_sensors +# cleanup +rm -f $RPM_BUILD_ROOT/usr/src/linux/include/sensors.h + +%postun +%{insserv_cleanup} + +%post -n libsensors4 +%run_ldconfig + +%postun -n libsensors4 +%run_ldconfig + +%files +%defattr(-,root,root) +/etc/init.d/lm_sensors +/usr/sbin/rclm_sensors +/usr/bin/* +/usr/sbin/fancontrol +%ifarch i386 i486 i586 i686 x86_64 +/usr/sbin/isadump +/usr/sbin/isaset +%endif +/usr/sbin/pwmconfig +/usr/sbin/sensors-detect +%doc %{_docdir}/sensors/ +%doc /usr/share/man/man1/*.1.gz +%doc /usr/share/man/man8/fancontrol.8.gz +%ifarch i386 i486 i586 i686 x86_64 +%doc /usr/share/man/man8/isadump.8.gz +%doc /usr/share/man/man8/isaset.8.gz +%endif +%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 + +%files -n libsensors4 +%defattr(-,root,root) +%config(noreplace) /etc/sensors3.conf +%{_libdir}/libsensors.so.4* +%doc /usr/share/man/man5/*.5.gz + +%files -n libsensors4-devel +%defattr(-,root,root) +/usr/include/sensors/ +%{_libdir}/libsensors.a