]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- update noautoreq from command packaging 0.2
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 21 Aug 2010 10:54:51 +0000 (10:54 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    pearize.sh -> 1.51

pearize.sh

index 157c1e42295e9e607360eb4dfa40c5d02e1664b2..68445e288e776ecde424770c10d3202033c1bd88 100644 (file)
@@ -148,9 +148,17 @@ optional=$(grep '^Suggests:' $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%\'}
+                       case "$req" in
+                       php-pear-*)
+                               # convert pear package name to file pattern
+                               req=$(echo "$req" | sed -e 's,^php-pear-,pear(,;y,-,/,;s,$,.*),')
+                               ;;
+                       *)
+                               # process only php-pear-* packages
+                               continue
+                               ;;
+                       esac
+
                        m=$(grep "^%define.*_noautoreq" $spec || :)
                        if [ -z "$m" ]; then
                                sed -i -e "/^BuildRoot:/{
This page took 0.029403 seconds and 4 git commands to generate.