]> git.pld-linux.org Git - packages/rpm-build-tools.git/blobdiff - pearize.sh
- fiddle with pear vs core only requires line
[packages/rpm-build-tools.git] / pearize.sh
index 68445e288e776ecde424770c10d3202033c1bd88..7c227519d721615c3fa780860a50dab1be381588 100644 (file)
@@ -74,21 +74,8 @@ template=.$template~
 add_epoch() {
        local dep="$@"
        local pkg="$1"
-       local qual="$2"
        local ver="$3"
 
-       if [ "$pkg" == "php-pear-PEAR" ]; then
-               pkg="php-pear-PEAR-core"
-       fi
-
-       case "$pkg" in
-       php-pear-PEAR-core)
-               ver=$(echo "$ver" | sed -e 's,1.4.0b1,1.4.0-0.b1,')
-               ;;
-       esac
-
-       dep="$pkg $qual $ver"
-
        # already have epoch
        if [[ "$ver" = *:* ]]; then
                echo "$dep"
@@ -127,6 +114,7 @@ if [ -n "$requires" ]; then
        echo "$requires" | while read tag dep; do
                dep=$(add_epoch $dep)
                if ! grep -q "^Requires:.*$dep" $preamble; then
+                       dep=$(echo "$dep" | sed -e 's,php-pear-PEAR\b,php-pear-PEAR-core,')
                        sed -i -e "/^BuildRoot/iRequires:\t$dep" $spec
                fi
        done
@@ -239,4 +227,3 @@ if ! diff -u $bak $spec > $diff; then
 else
        echo "$spec: No diffs"
 fi
-#exit 1
This page took 0.027055 seconds and 4 git commands to generate.