Commit e7909be7 authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmbph: replace %release with the real value due using in Source: and Patch:

parent 106eccea
...@@ -23,6 +23,7 @@ local SPECNAME ...@@ -23,6 +23,7 @@ local SPECNAME
SPECNAME=$1 SPECNAME=$1
BASERELEASE=$(get_numrelease $SPECNAME) BASERELEASE=$(get_numrelease $SPECNAME)
RELEASE=$(get_release $SPECNAME)
FIXPATCHFUZZ="%define _default_patch_fuzz 3" FIXPATCHFUZZ="%define _default_patch_fuzz 3"
...@@ -209,6 +210,9 @@ fi ...@@ -209,6 +210,9 @@ fi
# Fedora 10 does mismatch for Patch: and %patch0 # Fedora 10 does mismatch for Patch: and %patch0
subst "s|Patch:|Patch0:|g" $SPECNAME subst "s|Patch:|Patch0:|g" $SPECNAME
# Due using %release in Source: and Patch: names
subst "s|%release|$RELEASE|g" $SPECNAME
# for systems with ash as sh # for systems with ash as sh
subst "s|^pushd \(.*\)|cd \1 >/dev/null|g" $SPECNAME subst "s|^pushd \(.*\)|cd \1 >/dev/null|g" $SPECNAME
subst "s|^popd|cd - >/dev/null|g" $SPECNAME subst "s|^popd|cd - >/dev/null|g" $SPECNAME
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment