SPECS: svgalib.spec - rel 8 - use macros to build kernel module

baggins baggins at pld-linux.org
Wed Sep 5 18:20:20 CEST 2007


Author: baggins                      Date: Wed Sep  5 16:20:20 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- rel 8
- use macros to build kernel module

---- Files affected:
SPECS:
   svgalib.spec (1.182 -> 1.183) 

---- Diffs:

================================================================
Index: SPECS/svgalib.spec
diff -u SPECS/svgalib.spec:1.182 SPECS/svgalib.spec:1.183
--- SPECS/svgalib.spec:1.182	Wed Sep  5 16:06:37 2007
+++ SPECS/svgalib.spec	Wed Sep  5 18:20:15 2007
@@ -10,7 +10,7 @@
 %define	alt_kernel	grsecurity
 %endif
 #
-%define	_rel	7
+%define	_rel	8
 Summary:	Library for full screen [S]VGA graphics
 Summary(de.UTF-8):	Library für Vollbildschirm-[S]VGA-Grafiken
 Summary(es.UTF-8):	Biblioteca para gráficos en pantalla llena [S]VGA
@@ -291,31 +291,7 @@
 %endif
 
 %if %{with kernel}
-cd kernel/svgalib_helper
-install -d o/include/linux
-ln -sf %{_kernelsrcdir}/config-%{?with_dist_kernel:dist}%{!?with_dist_kernel:nondist} o/.config
-ln -sf %{_kernelsrcdir}/Module.symvers-%{?with_dist_kernel:dist}%{!?with_dist_kernel:nondist} o/Module.symvers
-ln -sf %{_kernelsrcdir}/include/linux/autoconf-%{?with_dist_kernel:dist}%{!?with_dist_kernel:nondist}.h o/include/linux/autoconf.h
-%{__make} -j1 -C %{_kernelsrcdir} O=$PWD/o prepare scripts
-%ifarch ppc ppc64
-# no longer exists in 2.6.14.x
-touch o/include/asm/segment.h
-%endif
-if grep -q class_simple_create %{_kernelsrcdir}/include/linux/device.h ; then
-	CLF=-DCLASS_SIMPLE=1
-else
-	CLF=
-fi
-%{__make} -C %{_kernelsrcdir} modules \
-	CLASS_CFLAGS="$CLF" \
-	SUBDIRS=`pwd` \
-	O=`pwd`/o \
-	V=1
-rm -rf .*.cmd include include2 scripts arch
-cd -
-mv -f kernel/svgalib_helper/svgalib_helper.ko \
-	 kernel/svgalib_helper-dist.ko
-rm -f kernel/svgalib_helper/*.*o
+%build_kernel_modules -C kernel/svgalib_helper -m svgalib_helper
 %endif
 
 %install
@@ -338,9 +314,7 @@
 %endif
 
 %if %{with kernel}
-install -d $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc
-install kernel/svgalib_helper-dist.ko \
-	$RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc/svgalib_helper.ko
+%install_kernel_modules -m kernel/svgalib_helper/svgalib_helper -d misc
 %endif
 
 # hack to kill wrong symlink to README.lrmi
@@ -397,6 +371,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.183  2007/09/05 16:20:15  baggins
+- rel 8
+- use macros to build kernel module
+
 Revision 1.182  2007/09/05 14:06:37  baggins
 - rel 7
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/svgalib.spec?r1=1.182&r2=1.183&f=u



More information about the pld-cvs-commit mailing list