Author: glen                         Date: Sat Sep 10 11:54:47 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- detect BuildArch from specfile and enforce --target (as for --target noarch 
some arch dependant postinstall stages are skipped)

---- Files affected:
SPECS:
   builder (1.327 -> 1.328) 

---- Diffs:

================================================================
Index: SPECS/builder
diff -u SPECS/builder:1.327 SPECS/builder:1.328
--- SPECS/builder:1.327 Wed Sep  7 20:20:59 2005
+++ SPECS/builder       Sat Sep 10 13:54:42 2005
@@ -1636,6 +1636,13 @@
        set -v;
 fi
 
+if [ -n "$SPECFILE" ] && [ -z "$TARGET" ]; then
+        tmp=$(awk  '/^BuildArch:/ { print $NF}' $SPECFILE)
+        if [ "$tmp" ]; then
+                 TARGET="$tmp"
+        fi
+fi
+
 if [ -n "$TARGET" ]; then
        case "$RPMBUILD" in
                "rpmbuild")
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/builder?r1=1.327&r2=1.328&f=u

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

Reply via email to