]> git.pld-linux.org Git - packages/lm_sensors.git/blobdiff - lm_sensors.spec
- enabled compilation of i2c-ipmi and bmcsensors modules
[packages/lm_sensors.git] / lm_sensors.spec
index fabeea17d6b6cec6bc21435ad41723483c1216e7..17ff6a9fe34dc671fc1f31e0a6f16ec822dc0a5d 100644 (file)
@@ -4,7 +4,11 @@
 %bcond_without smp             # don't build SMP modules
 %bcond_without kernel          # build kernel 2.4 modules
 %bcond_without userspace       # don't build userspace utilities
-#
+
+%ifarch amd64
+%undefine with_kernel
+%endif
+
 %include       /usr/lib/rpm/macros.perl
 Summary:       Hardware health monitoring
 Summary(pl):   Monitor stanu sprzêtu
@@ -12,19 +16,20 @@ Summary(pt_BR):     Ferramentas para monitora
 Summary(ru):   õÔÉÌÉÔÙ ÄÌÑ ÍÏÎÉÔÏÒÉÎÇÁ ÁÐÐÁÒÁÔÕÒÙ
 Summary(uk):   õÔÉ̦ÔÉ ÄÌÑ ÍÏΦÔÏÒÉÎÇÕ ÁÐÁÒÁÔÕÒÉ
 Name:          lm_sensors
-Version:       2.8.7
-%define _rel   1
+Version:       2.9.1
+%define _rel   2
 Release:       %{_rel}
 License:       GPL
 Group:         Applications/System
 Source0:       http://secure.netroedge.com/~lm78/archive/%{name}-%{version}.tar.gz
-# Source0-md5: 64b4a4f547b2e1eab8a574d871867ca5
+# Source0-md5: f5af615e39441d95471bdb72a3f01709
 Source1:       sensors.init
 Source2:       sensors.sysconfig
 Patch0:                %{name}-make.patch
 Patch1:                %{name}-ppc.patch
 Patch2:                %{name}-iconv-in-libc.patch
-Patch3:                %{name}-gcc34.patch
+Patch3:                %{name}-sensors-detect-PATH.patch
+Patch4:                %{name}-ipmi.patch
 URL:           http://www.lm-sensors.nu/
 BuildRequires: rpmbuild(macros) >= 1.118
 %if %{with userspace}
@@ -35,13 +40,14 @@ BuildRequires:      rpm-perlprov >= 3.0.3-16
 BuildRequires: rrdtool-devel
 %endif
 %if %{with kernel} && %{with dist_kernel}
-BuildRequires: kernel-i2c-devel >= 2.8.3
-BuildRequires: kernel-headers >= 2.4.0
-BuildRequires: kernel-headers < 2.5.0
+BuildRequires: kernel24-i2c-devel >= 2.9.0
+BuildRequires: kernel24-headers >= 2.4.0
+BuildRequires: kernel24-headers < 2.5.0
 %endif
+Requires:      dev >= 2.9.0-13
 Requires:      dmidecode
-BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 Obsoletes:     liblm_sensors1
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _kernelsrcdir           /usr/src/linux-2.4
 
@@ -176,6 +182,7 @@ Modu
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
 
 %build
 %if %{with kernel} && %{with smp}
@@ -185,6 +192,9 @@ install -d fakelinux
 %ifarch %{ix86}
 echo 'CONFIG_X86=y' >> fakelinux/.config
 %endif
+%ifarch %{ix86} amd64 alpha ppc
+echo 'CONFIG_IPMI_HANDLER=m' >> fakelinux/.config
+%endif
 
 # SMP
 %{__make} all-kernel-busses all-kernel-chips \
@@ -318,6 +328,7 @@ fi
 %doc BACKGROUND BUGS CHANGES README README.thinkpad TODO doc/{busses,chips}
 %doc doc/{FAQ,donations,fan-divisors,progs,temperature-sensors,*html,vid}
 %doc prog/{config,daemon,eepromer/README*,matorb,maxilife}
+%attr(755,root,root) %{_bindir}/ddcmon
 %attr(755,root,root) %{_bindir}/decode-*.pl
 %attr(755,root,root) %{_bindir}/sensors
 %attr(755,root,root) %{_sbindir}/sensors-detect
@@ -332,17 +343,19 @@ fi
 %endif
 %attr(755,root,root) %{_sbindir}/pwmconfig
 %attr(755,root,root) %{_libdir}/lib*.so.*.*
-%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/sensors.conf
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sensors.conf
 %{_mandir}/man1/sensors.1*
 %{_mandir}/man5/sensors.conf.5*
+%{_mandir}/man8/fancontrol.8*
 %{_mandir}/man8/i2c*.8*
+%{_mandir}/man8/pwmconfig.8*
 %{_mandir}/man8/sensors-detect.8*
 
 %files sensord
 %defattr(644,root,root,755)
 %attr(754,root,root) %{_sbindir}/sensord
 %attr(754,root,root) /etc/rc.d/init.d/sensors
-%config(noreplace) %verify(not size mtime md5) /etc/sysconfig/sensors
+%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/sensors
 %{_mandir}/man8/sensord.8*
 
 %files devel
This page took 0.073696 seconds and 4 git commands to generate.