]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- ensure rpm macros present
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 22 Aug 2010 08:51:08 +0000 (08:51 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    pearize.sh -> 1.56

pearize.sh

index 481a8dcc943842aa3b941c5052e838bcf25b5ea6..61efa3209513cde87224ef6e4cd98b2a70da75d0 100644 (file)
@@ -103,6 +103,10 @@ sed -ne '/^Name:/,/^BuildRoot/p' $spec > $preamble
 # 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
This page took 0.048647 seconds and 4 git commands to generate.