From f81a7b636f0540187b1df587fa45920aaa39ea04 Mon Sep 17 00:00:00 2001 From: kloczek Date: Wed, 5 May 1999 16:50:46 +0000 Subject: [PATCH] - main rework spec file. Status: NTY (Not Tested Yet). Changed files: lm_sensors.spec -> 1.2 --- lm_sensors.spec | 97 +++++++++++++++++++++++-------------------------- 1 file changed, 45 insertions(+), 52 deletions(-) diff --git a/lm_sensors.spec b/lm_sensors.spec index db3c106..3da6a88 100644 --- a/lm_sensors.spec +++ b/lm_sensors.spec @@ -1,38 +1,13 @@ -Summary: Hardware health monitoring -Name: lm_sensors -Version: 2.2.2 -%define kernel 2.2.6 -%define modversion %{kernel}kernel_%{version} -Release: 5 -Source0: http://www.netroedge.com/~lm78/archive/%{name}-%{version}.tar.gz -Copyright: GPL -Group: Utilities/System -Packager: cyclic@cyclicsyn.dimensional.com -BuildRoot: /tmp/lm_sensors-root - -%changelog -* Sun Apr 25 1999 Ian Macdonald - -- compiled for kernel 2.2.6 -- hyphen changed to underscore in version number to satisfy RPM 3.0 - -* Mon Apr 5 1999 Ian Macdonald - -- compiled for kernel 2.2.5 - -* Wed Mar 24 1999 Ian Macdonald - -- compiled for kernel 2.2.4 - -* Tue Mar 8 1999 Ian Macdonald - -- compiled for kernel 2.2.3 - -* Fri Feb 26 1999 Ian Macdonald - -- updated to lm_sensors 2.2.2 and compiled for kernel 2.2.2 -- added /etc/sensors.conf -- added %post and %postun scripts +Summary: Hardware health monitoring +Name: lm_sensors +Version: 2.3.0 +Release: 1 +Source0: http://www.netroedge.com/~lm78/archive/%{name}-%{version}.tar.gz +Copyright: GPL +Group: Base/Kernel +Group(pl): Bazowe/JĀ±dro +Prereq: /sbin/depmod -a +BuildRoot: /tmp/%{name}-%{version}-root %package modules Summary: Kernel modules for various buses and monitor chips. @@ -40,34 +15,33 @@ Version: %{modversion} Group: Utilities/System %description -Tools for monitoring the hardware health of -Linux systems containing hardware health monitoring -hardware such as the LM78 and LM75. +Tools for monitoring the hardware health of Linux systems containing +hardware health monitoring hardware such as the LM78 and LM75. %description modules Kernel modules for various busses and monitor chips. %prep -%setup +%setup -q %build make %install rm -fr $RPM_BUILD_ROOT -make PREFIX=$RPM_BUILD_ROOT/usr ETCDIR=$RPM_BUILD_ROOT/etc MODDIR=$RPM_BUILD_ROOT/lib/modules/%{kernel}/misc install - -%post -ldconfig +make install \ + PREFIX=$RPM_BUILD_ROOT/usr \ + ETCDIR=$RPM_BUILD_ROOT/etc \ + MODDIR=$RPM_BUILD_ROOT/lib/modules/%{kernel}/misc -%postun -ldconfig +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig %post modules -depmod -a +/sbin/depmod -a %postun modules -depmod -a +/sbin/depmod -a %clean rm -fr $RPM_BUILD_ROOT @@ -75,13 +49,32 @@ rm -fr $RPM_BUILD_ROOT %files %config /etc/sensors.conf %doc CHANGES INSTALL README README.directories doc -%attr(644, root, root) /usr/lib/libsensors.a -%attr(755, root, root) /usr/lib/libsensors.so -%attr(755, root, root) /usr/lib/libsensors.so.0 -%attr(755, root, root) /usr/lib/libsensors.so.0.0.2 -%attr(755, root, root) /usr/bin/sensors +%attr(644,root,root) /usr/lib/libsensors.a +%attr(755,root,root) /usr/lib/libsensors.so +%attr(755,root,root) /usr/lib/libsensors.so.0 +%attr(755,root,root) /usr/lib/libsensors.so.0.0.2 +%attr(755,root,root) /usr/bin/sensors /usr/include/sensors /usr/include/linux/* %files modules /lib/modules/%{kernel}/misc/* + +%changelog +* Sun Apr 25 1999 Ian Macdonald +- compiled for kernel 2.2.6 +- hyphen changed to underscore in version number to satisfy RPM 3.0 + +* Mon Apr 5 1999 Ian Macdonald +- compiled for kernel 2.2.5 + +* Wed Mar 24 1999 Ian Macdonald +- compiled for kernel 2.2.4 + +* Tue Mar 8 1999 Ian Macdonald +- compiled for kernel 2.2.3 + +* Fri Feb 26 1999 Ian Macdonald +- updated to lm_sensors 2.2.2 and compiled for kernel 2.2.2 +- added /etc/sensors.conf +- added %post and %postun scripts -- 2.44.0