]> git.pld-linux.org Git - packages/lm_sensors.git/commitdiff
This commit was manufactured by cvs2git to create tag 'lm_sensors-2_6_4-8'. lm_sensors-2_6_4-8
authorcvs2git <feedback@pld-linux.org>
Sun, 17 Nov 2002 19:44:51 +0000 (19:44 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Sprout from master 2002-10-01 17:38:58 UTC Krzysztof Taraszka <dzimi@pld-linux.org> '- remove patch for prog/dump/Make.mk, it's not nessesary'
Cherrypick from unlabeled-1.81.2 2002-11-17 19:44:51 UTC kloczek <kloczek@pld-linux.org> '- release 8: rebuild against kernel 2.2.22-6.':
    lm_sensors.spec -> 1.81.2.2

lm_sensors.spec

index 618cd01d2c0232962368d1a74b54e6c43344d3fc..406d45fa3e34fc775c0e062a5aab6184859c448d 100644 (file)
@@ -3,6 +3,9 @@
 #
 %include        /usr/lib/rpm/macros.perl
 
+%define                _kernel_ver     %(grep UTS_RELEASE %{_kernelsrcdir}/include/linux/version.h 2>/dev/null | cut -d'"' -f2)
+%define                _kernel_ver_str %(echo %{_kernel_ver} | sed s/-/_/g)
+
 Summary:       Hardware health monitoring
 Summary(pl):   Monitor stanu sprzêtu
 Summary(pt_BR):        Ferramentas para monitoração do hardware
@@ -10,7 +13,7 @@ Summary(ru):  
 Summary(uk):   õÔÉ̦ÔÉ ÄÌÑ ÍÏΦÔÏÒÉÎÇÕ ÁÐÁÒÁÔÕÒÉ
 Name:          lm_sensors
 Version:       2.6.4
-%define _rel   4
+%define _rel   8
 Release:       %{_rel}
 License:       GPL
 Group:         Applications/System
@@ -31,6 +34,8 @@ PreReq:               /sbin/ldconfig
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 Obsoletes:     liblm_sensors1
 
+%define                _kernel24       %(echo %{_kernel_ver} | grep -q '2\.[012]\.' ; echo $?)
+
 %description
 Tools for monitoring the hardware health of Linux systems containing
 hardware health monitoring hardware such as the LM78 and LM75.
@@ -256,7 +261,9 @@ fi
 %doc prog/{config,daemon,eeprom,eepromer/README*,matorb,maxilife,xeon}
 %attr(755,root,root) %{_bindir}/sensors
 %attr(755,root,root) %{_sbindir}/sensors-detect
+%if %{_kernel24}
 %attr(755,root,root) %{_sbindir}/dmidecode
+%endif
 %attr(755,root,root) %{_sbindir}/eeprom*
 %attr(755,root,root) %{_sbindir}/i2c*
 %attr(755,root,root) %{_sbindir}/isadump
This page took 0.0861769999999999 seconds and 4 git commands to generate.