SPECS: klibc.spec - support multiple ppc headers.

pluto pluto at pld-linux.org
Mon Nov 28 03:50:51 CET 2005


Author: pluto                        Date: Mon Nov 28 02:50:51 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- support multiple ppc headers.

---- Files affected:
SPECS:
   klibc.spec (1.46 -> 1.47) 

---- Diffs:

================================================================
Index: SPECS/klibc.spec
diff -u SPECS/klibc.spec:1.46 SPECS/klibc.spec:1.47
--- SPECS/klibc.spec:1.46	Mon Oct 10 19:30:15 2005
+++ SPECS/klibc.spec	Mon Nov 28 03:50:46 2005
@@ -7,7 +7,7 @@
 Summary(pl):	Zminimalizowany podzbiór biblioteki C do używania z initramfs
 Name:		klibc
 Version:	1.1.1
-Release:	1
+Release:	2
 License:	BSD/GPL
 Group:		Libraries
 Source0:	http://www.kernel.org/pub/linux/libs/klibc/Testing/%{name}-%{version}.tar.bz2
@@ -95,10 +95,19 @@
 %patch4 -p1
 
 %build
+rm -rf include/{asm,asm-generic,linux}
+%ifarch ppc powerpc
+if [ -d %{_kernelsrcdir}/include/asm-powerpc ]; then
+	install -d include/asm
+	cp -a %{_kernelsrcdir}/include/asm-ppc/* include/asm/
+	cp -a %{_kernelsrcdir}/include/asm-powerpc/* include/asm/
+else
+	ln -sf %{_kernelsrcdir}/include/asm-%{_target_base_arch} include/asm
+fi
+%else
+	ln -sf %{_kernelsrcdir}/include/asm-%{_target_base_arch} include/asm
+%endif
 cd include
-rm -rf asm asm-generic linux
-ln -sf %{_kernelsrcdir}/include/asm-%{_target_base_arch} .
-ln -sf asm-%{_target_base_arch} asm
 ln -sf %{_kernelsrcdir}/include/asm-generic .
 ln -sf %{_kernelsrcdir}/include/linux .
 %if %{with dist_kernel}
@@ -169,6 +178,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.47  2005/11/28 02:50:46  pluto
+- support multiple ppc headers.
+
 Revision 1.46  2005/10/10 17:30:15  pluto
 - TODO fixed in recent pld 2.6.14 kernel
   http://cvs.pld-linux.org/cgi-bin/cvsweb/SOURCES/kernel-hotfixes.patch?r1=1.1.2.62&r2=1.1.2.63
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/klibc.spec?r1=1.46&r2=1.47&f=u




More information about the pld-cvs-commit mailing list