Author: arekm                        Date: Mon Aug 29 21:32:00 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- more work

---- Files affected:
SPECS:
   mISDN.spec (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SPECS/mISDN.spec
diff -u SPECS/mISDN.spec:1.2 SPECS/mISDN.spec:1.3
--- SPECS/mISDN.spec:1.2        Sun Aug 28 15:17:36 2005
+++ SPECS/mISDN.spec    Mon Aug 29 23:31:53 2005
@@ -75,9 +75,9 @@
 %prep
 %setup -q -n %{name}-%{mISDN_version}
 
-mv Makefile.module Makefile
-
 %build
+cd drivers/isdn/hardware/mISDN
+sed -e 's#$(.*)#m#g' Makefile.v2.6 > Makefile
 
 for cfg in %{?with_dist_kernel:%{?with_smp:smp} 
up}%{!?with_dist_kernel:nondist}; do
        if [ ! -r "%{_kernelsrcdir}/config-$cfg" ]; then
@@ -87,6 +87,7 @@
        install -d include/{linux,config}
        ln -sf %{_kernelsrcdir}/config-$cfg .config
        ln -sf %{_kernelsrcdir}/include/linux/autoconf-$cfg.h 
include/linux/autoconf.h
+       cp -a ../../../../include/linux/*.h include/linux
        ln -sf %{_kernelsrcdir}/include/asm-%{_target_base_arch} include/asm
        touch include/config/MARKER
 
@@ -99,18 +100,27 @@
                M=$PWD O=$PWD \
                %{?with_verbose:V=1}
 
-#      mv mISDN{,-$cfg}.ko
+       for mod in *.ko; do
+               m=$(echo "$mod" | sed -e 's#.ko##g')
+               mv ${m}.ko ../${m}-${cfg}.ko
+       done
 done
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
+cd drivers/isdn/hardware
 install -d 
$RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}{,smp}/drivers/isdn/hardware/mISDN
-install mISDN-%{?with_dist_kernel:up}%{!?with_dist_kernel:nondist}.ko \
-       $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/drivers/isdn/hardware/mISDN/
+
+for mod in *-%{?with_dist_kernel:up}%{!?with_dist_kernel:nondist}.ko; do
+       m=$(echo "$mod" | sed -e 
's#-%{?with_dist_kernel:up}%{!?with_dist_kernel:nondist}.ko##g'
+       install "$mod" 
$RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/drivers/isdn/hardware/mISDN/${m}.ko
+done
+
 %if %{with smp} && %{with dist_kernel}
-install mISDN-smp.ko \
-       
$RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/drivers/isdn/hardware/mISDN/
+for mod in *-smp.ko; do
+       m=$(echo "$mod" | sed -e 's#-smp.ko##g')
+       install "$mod" 
$RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/drivers/isdn/hardware/mISDN/${m}.ko
+done
 %endif
 
 %clean
@@ -144,6 +154,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2005/08/29 21:31:53  arekm
+- more work
+
 Revision 1.2  2005/08/28 13:17:36  qboosh
 - pl desc
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/mISDN.spec?r1=1.2&r2=1.3&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to