packages: pearize.sh - ensure rpm macros present

glen glen at pld-linux.org
Sun Aug 22 10:51:14 CEST 2010


Author: glen                         Date: Sun Aug 22 08:51:14 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- ensure rpm macros present

---- Files affected:
packages:
   pearize.sh (1.55 -> 1.56) 

---- Diffs:

================================================================
Index: packages/pearize.sh
diff -u packages/pearize.sh:1.55 packages/pearize.sh:1.56
--- packages/pearize.sh:1.55	Sat Aug 21 18:16:14 2010
+++ packages/pearize.sh	Sun Aug 22 10:51:08 2010
@@ -103,6 +103,10 @@
 # create backup
 bak=$(cp -fbv $spec $spec | awk '{print $NF}' | tr -d "['\`]" )
 
+# ensure rpm-build-macros is present
+if ! grep -q "^BuildRequires:.*rpmbuild(macros)" $preamble; then
+	sed -i -e "/^BuildRequires:.*rpm-php-pearprov/aBuildRequires:\trpmbuild(macros) >= 1.300" $spec
+fi
 # parse requires
 requires=$(grep '^BuildRequires:' $template || :)
 if [ -n "$requires" ]; then
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/pearize.sh?r1=1.55&r2=1.56&f=u



More information about the pld-cvs-commit mailing list