]> git.pld-linux.org Git - packages/rpm-build-tools.git/blobdiff - pearize.sh
- skip apostrophes in _noautoreq
[packages/rpm-build-tools.git] / pearize.sh
index 2d8ad944adbbbaadd8a7de5a0e02aa6a49e168b1..12d80f97475e88c0dd35b498b37e1cf43bb084da 100644 (file)
@@ -128,6 +128,9 @@ optional=$(grep '^Optional:' $template || :)
 if [ -n "$optional" ]; then
        echo "$optional" | while read tag dep; do
                for req in $dep; do
+                       # strip single quotes that default template includes in @optional@ expand
+                       # TODO: remove in php-pear-PEAR_Command_Packaging package
+                       req=${req#\'} req=${req%\'}
                        m=$(grep "^%define.*_noautoreq" $spec || :)
                        if [ -z "$m" ]; then
                                sed -i -e "/^BuildRoot:/{
This page took 0.190336 seconds and 4 git commands to generate.