This commit is contained in:
parent
a4877b620e
commit
0b02fe5022
@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 2 14:16:43 CET 2007 - jdelvare@suse.de
|
||||
|
||||
- Package libsensors separately. I've named the package
|
||||
"libsensors3" because it is going to fade out quickly in favor
|
||||
of the new, incompatible version from lm-sensors 3.
|
||||
- Don't remove the build root before installing. rpmlint was
|
||||
compaining about that.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 1 12:16:57 CET 2007 - jdelvare@suse.de
|
||||
|
||||
|
85
sensors.spec
85
sensors.spec
@ -14,11 +14,11 @@ Name: sensors
|
||||
BuildRequires: bison flex rrdtool-devel sysfsutils
|
||||
Url: http://www.lm-sensors.org/
|
||||
Version: 2.10.5
|
||||
Release: 5
|
||||
Release: 6
|
||||
Summary: Hardware health monitoring for Linux
|
||||
License: GPL v2 or later
|
||||
Group: System/Monitoring
|
||||
Requires: modules
|
||||
Requires: modules /etc/sensors.conf
|
||||
AutoReqProv: on
|
||||
Source0: lm_sensors-2.10.5.tar.bz2
|
||||
Source1: README.SuSE
|
||||
@ -54,6 +54,7 @@ Authors:
|
||||
%package -n sensord
|
||||
Summary: Hardware health monitoring daemon
|
||||
Group: System/Monitoring
|
||||
Requires: /etc/sensors.conf
|
||||
AutoReqProv: on
|
||||
|
||||
%description -n sensord
|
||||
@ -69,6 +70,52 @@ Authors:
|
||||
--------
|
||||
Merlin Hughes <merlin@merlin.org>
|
||||
|
||||
%package -n libsensors3
|
||||
Summary: Hardware health monitoring library
|
||||
Group: System/Monitoring
|
||||
AutoReqProv: on
|
||||
|
||||
%description -n libsensors3
|
||||
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 libsensors3-devel
|
||||
Summary: Hardware health monitoring library
|
||||
Group: System/Monitoring
|
||||
AutoReqProv: on
|
||||
|
||||
%description -n libsensors3-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
|
||||
@ -82,7 +129,6 @@ RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
|
||||
make PROG_EXTRA:=sensord LIBDIR=%{_libdir} user
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make user_install PROG_EXTRA:=sensord LIBDIR=%{_libdir} DESTDIR=$RPM_BUILD_ROOT
|
||||
cd doc/
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_docdir}/sensors
|
||||
@ -102,16 +148,17 @@ RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
|
||||
# cleanup
|
||||
rm -f $RPM_BUILD_ROOT/usr/src/linux/include/sensors.h
|
||||
|
||||
%post
|
||||
%run_ldconfig
|
||||
|
||||
%postun
|
||||
%{insserv_cleanup}
|
||||
|
||||
%post -n libsensors3
|
||||
%run_ldconfig
|
||||
|
||||
%postun -n libsensors3
|
||||
%run_ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%config(noreplace) /etc/sensors.conf
|
||||
/etc/init.d/lm_sensors
|
||||
/usr/bin/*
|
||||
/usr/sbin/fancontrol
|
||||
@ -123,12 +170,7 @@ rm -f $RPM_BUILD_ROOT/usr/src/linux/include/sensors.h
|
||||
/usr/sbin/pwmconfig
|
||||
/usr/sbin/sensors-detect
|
||||
%doc %{_docdir}/sensors/
|
||||
/usr/include/sensors/
|
||||
%{_libdir}/libsensors.a
|
||||
%{_libdir}/libsensors.so*
|
||||
%doc /usr/share/man/man1/*.1.gz
|
||||
%doc /usr/share/man/man3/*.3.gz
|
||||
%doc /usr/share/man/man5/*.5.gz
|
||||
%doc /usr/share/man/man8/fancontrol.8.gz
|
||||
%ifarch i386 i486 i586 i686 x86_64
|
||||
%doc /usr/share/man/man8/isadump.8.gz
|
||||
@ -141,7 +183,26 @@ rm -f $RPM_BUILD_ROOT/usr/src/linux/include/sensors.h
|
||||
%defattr(-,root,root)
|
||||
/usr/sbin/sensord
|
||||
%doc /usr/share/man/man8/sensord.8.gz
|
||||
|
||||
%files -n libsensors3
|
||||
%defattr(-,root,root)
|
||||
%config(noreplace) /etc/sensors.conf
|
||||
%{_libdir}/libsensors.so.3*
|
||||
%doc /usr/share/man/man5/*.5.gz
|
||||
|
||||
%files -n libsensors3-devel
|
||||
%defattr(-,root,root)
|
||||
/usr/include/sensors/
|
||||
%{_libdir}/libsensors.a
|
||||
%{_libdir}/libsensors.so
|
||||
%doc /usr/share/man/man3/*.3.gz
|
||||
%changelog
|
||||
* Fri Nov 02 2007 - jdelvare@suse.de
|
||||
- Package libsensors separately. I've named the package
|
||||
"libsensors3" because it is going to fade out quickly in favor
|
||||
of the new, incompatible version from lm-sensors 3.
|
||||
- Don't remove the build root before installing. rpmlint was
|
||||
compaining about that.
|
||||
* Thu Nov 01 2007 - jdelvare@suse.de
|
||||
- Fix packaging breakage introduced by the following change:
|
||||
ppc and ia64 packages do not include isadump nor isaset.
|
||||
|
Loading…
Reference in New Issue
Block a user