SPECS: kernel-misc-tp_smapi.spec - don't damage CFLAGS, use EXTRA_...

zbyniu zbyniu at pld-linux.org
Wed Apr 2 13:41:25 CEST 2008


Author: zbyniu                       Date: Wed Apr  2 11:41:24 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- don't damage CFLAGS, use EXTRA_CFLAGS
- standardized

---- Files affected:
SPECS:
   kernel-misc-tp_smapi.spec (1.15 -> 1.16) 

---- Diffs:

================================================================
Index: SPECS/kernel-misc-tp_smapi.spec
diff -u SPECS/kernel-misc-tp_smapi.spec:1.15 SPECS/kernel-misc-tp_smapi.spec:1.16
--- SPECS/kernel-misc-tp_smapi.spec:1.15	Wed Apr  2 13:11:30 2008
+++ SPECS/kernel-misc-tp_smapi.spec	Wed Apr  2 13:41:19 2008
@@ -4,21 +4,21 @@
 %bcond_without	dist_kernel	# allow non-distribution kernel
 %bcond_with	verbose		# verbose build (V=1)
 
-%define		_name	tp_smapi
-%define		_rel	0.1
+%define		orig_name	tp_smapi
+%define		rel		0.2
 Summary:	sysfs interface to access ThinkPad's SMAPI functionality
 Summary(pl.UTF-8):	Interfejs sysfs do funkcjonalności SMAPI ThinkPadów
 Name:		kernel%{_alt_kernel}-misc-tp_smapi
 Version:	0.32
-Release:	%{_rel}@%{_kernel_ver_str}
+Release:	%{rel}@%{_kernel_ver_str}
 License:	GPL v2
 Group:		Base/Kernel
-Source0:	http://dl.sourceforge.net/tpctl/%{_name}-%{version}.tgz
+Source0:	http://dl.sourceforge.net/tpctl/%{orig_name}-%{version}.tgz
 # Source0-md5:	4f721dc1c1d16494ddda7ac6c6e9a92f
 URL:		http://tpctl.sourceforge.net/
 %if %{with dist_kernel}
-BuildRequires:	kernel%{_alt_kernel}-module-build >= 3:2.6.14}
-%requires_releq_kernel
+BuildRequires:	kernel%{_alt_kernel}-module-build >= 3:2.6.19}
+%requiresreleq_kernel
 Requires(postun):	%releq_kernel
 %endif
 BuildRequires:	rpmbuild(macros) >= 1.348
@@ -38,12 +38,12 @@
 
 %prep
 %setup -q -n tp_smapi-%{version}
-echo "obj-m := thinkpad_ec.o tp_smapi.o hdaps.o" > Makefile
-echo > dmi_ec_oem_string.h
+cat > Makefile <<'EOF'
+obj-m := thinkpad_ec.o tp_smapi.o hdaps.o
+EOF
 
 %build
-%define _CFLAGS CFLAGS="%{rpmcflags} -I$PWD/include -I$PWD/o/include/asm/mach-default -I$PWD/o/include2/asm/mach-default"
-%build_kernel_modules -m tp_smapi,thinkpad_ec,hdaps %{_CFLAGS}
+%build_kernel_modules -m tp_smapi,thinkpad_ec,hdaps EXTRA_CFLAGS="-I$PWD/include"
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -69,6 +69,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.16  2008-04-02 11:41:19  zbyniu
+- don't damage CFLAGS, use EXTRA_CFLAGS
+- standardized
+
 Revision 1.15  2008-04-02 11:11:30  emes
 - added include2 (WTF?)
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/kernel-misc-tp_smapi.spec?r1=1.15&r2=1.16&f=u



More information about the pld-cvs-commit mailing list