SPECS: lm_sensors.spec - up to 3.0.1, kernel >= 2.6.5

wolvverine wolvverine at pld-linux.org
Sun Apr 27 14:32:02 CEST 2008


Author: wolvverine                   Date: Sun Apr 27 12:32:02 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- up to 3.0.1, kernel >= 2.6.5

---- Files affected:
SPECS:
   lm_sensors.spec (1.180 -> 1.181) 

---- Diffs:

================================================================
Index: SPECS/lm_sensors.spec
diff -u SPECS/lm_sensors.spec:1.180 SPECS/lm_sensors.spec:1.181
--- SPECS/lm_sensors.spec:1.180	Sun Mar  9 13:08:21 2008
+++ SPECS/lm_sensors.spec	Sun Apr 27 14:31:57 2008
@@ -1,7 +1,5 @@
 # $Revision$, $Date$
 # TODO
-# - unpackaged:
-#   /usr/sbin/fancontrol.pl (isn't that the same as sh fancontrol script?)
 # - a big trigger warning how to use fancontrol and to init it first
 #
 %define		cmodule		/etc/sysconfig/sensors_modules
@@ -16,12 +14,12 @@
 Summary(ru.UTF-8):	Утилиты для мониторинга аппаратуры
 Summary(uk.UTF-8):	Утиліти для моніторингу апаратури
 Name:		lm_sensors
-Version:	2.10.5
-Release:	3
+Version:	3.0.1
+Release:	1
 License:	GPL v2+
 Group:		Applications/System
-Source0:	http://dl.lm-sensors.org/lm-sensors/releases/%{name}-%{version}.tar.gz
-# Source0-md5:	77f96bc8a7773e95b2990d756e4925d6
+Source0:	http://dl.lm-sensors.org/lm-sensors/releases/%{name}-%{version}.tar.bz2
+# Source0-md5:	dace0c6bb031bd097a46a336de60587c
 Source1:	sensors.init
 Source2:	sensors.sysconfig
 Source3:	fancontrol.init
@@ -29,10 +27,9 @@
 Source5:	sensors.sh
 Source6:	sensors_modules.init
 Source7:	sensors_modules.sysconfig
-Patch0:		%{name}-make.patch
-Patch1:		%{name}-ppc.patch
-Patch2:		%{name}-iconv-in-libc.patch
-Patch3:		%{name}-sensors-detect-PATH.patch
+Patch0:		%{name}-ppc.patch
+Patch1:		%{name}-iconv-in-libc.patch
+Patch2:		%{name}-sensors-detect-PATH.patch
 URL:		http://www.lm-sensors.org/
 BuildRequires:	bison
 BuildRequires:	flex >= 2.5.1
@@ -42,6 +39,7 @@
 BuildRequires:	rrdtool-devel >= 1.2.10
 BuildRequires:	sysfsutils-devel
 Requires:	%{name}-libs = %{version}-%{release}
+Requires:	kernel >= 2.6.5
 Requires:	dev >= 2.9.0-13
 Requires:	dmidecode
 Requires:	%{name}-config
@@ -195,22 +193,16 @@
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
-%patch3 -p1
 
 %build
 %{__make} user \
 	CC="%{__cc}" \
 	OPTS="%{rpmcflags}" \
-	LIBDIR=%{_libdir} \
-	LINUX=/dev/null \
-	LINUX_HEADERS=%{_kernelsrcdir}/include \
-	I2C_HEADERS=/usr/include \
+	SYSFS_SUPPORT:=1 \
 	PROG_EXTRA:="sensord" \
 	SYSFS_SUPPORT:=1
 
-%{__make} -C prog/eepromer \
-	CC="%{__cc}" \
-	CFLAGS="%{rpmcflags} -I../../kernel/include"
+
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -225,11 +217,7 @@
 	LIBDIR=%{_libdir} \
 	MANDIR=%{_mandir} \
 	PROG_EXTRA:="sensord" \
-	LINUX=/dev/null \
-	LINUX_HEADERS=%{_kernelsrcdir}/include \
-	I2C_HEADERS=/usr/include
-
-install prog/eepromer/{eeprom,eepromer}	$RPM_BUILD_ROOT%{_sbindir}
+	SYSFS_SUPPORT:=1
 
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/sensors
 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/sensors
@@ -239,9 +227,6 @@
 install %{SOURCE6} $RPM_BUILD_ROOT/etc/rc.d/init.d/sensors_modules
 install %{SOURCE7} $RPM_BUILD_ROOT/etc/sysconfig/sensors_modules
 
-# i2c API for userspace - included in linux-libc-headers
-rm -f $RPM_BUILD_ROOT%{_includedir}/linux/i2c-dev.h
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -329,15 +314,12 @@
 
 %files
 %defattr(644,root,root,755)
-%doc BACKGROUND BUGS CHANGES README README.thinkpad TODO doc/{busses,chips}
+%doc CHANGES README doc/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
+%doc prog/{daemon,maxilife}
+%attr(755,root,root) %{_bindir}/sensors-conf-convert
 %attr(755,root,root) %{_bindir}/sensors
 %attr(755,root,root) %{_bindir}/sensors.sh
-%attr(755,root,root) %{_sbindir}/eeprom*
-%attr(755,root,root) %{_sbindir}/i2c*
 %attr(755,root,root) %{_sbindir}/sensors-detect
 %ifarch %{ix86} %{x8664}
 %attr(755,root,root) %{_sbindir}/isadump
@@ -347,12 +329,11 @@
 %endif
 %{_mandir}/man1/sensors.1*
 %{_mandir}/man5/sensors.conf.5*
-%{_mandir}/man8/i2c*.8*
 %attr(754,root,root) /etc/rc.d/init.d/sensors_modules
 
 %files config-default
 %defattr(644,root,root,755)
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sensors.conf
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sensors3.conf
 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/sensors_modules
 
 %files libs
@@ -362,10 +343,9 @@
 
 %files devel
 %defattr(644,root,root,755)
-%doc doc/{developers,kernel}
+%doc doc/developers
 %attr(755,root,root) %{_libdir}/libsensors.so
 %{_includedir}/sensors
-%{_includedir}/linux/sensors.h
 %{_mandir}/man3/libsensors.3*
 
 %files static
@@ -395,6 +375,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.181  2008-04-27 12:31:57  wolvverine
+- up to 3.0.1, kernel >= 2.6.5
+
 Revision 1.180  2008-03-09 12:08:21  qboosh
 - updated sensors_modules for modern kernels (allow empty BUS, up to date lists)
 - release 3
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/lm_sensors.spec?r1=1.180&r2=1.181&f=u



More information about the pld-cvs-commit mailing list