aboutsummaryrefslogtreecommitdiffstats
path: root/build_rpm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2002-06-06 09:57:52 +0000
committerFrancois Pons <fpons@mandriva.com>2002-06-06 09:57:52 +0000
commit507d79f646464f20a758ca8a41a3638c8ac4fc83 (patch)
tree1cbe2579e78736e64fee257cdabb3990b0889f1d /build_rpm
parent977a0031a904f6690d377d184a5461f639d49201 (diff)
downloadperl-URPM-507d79f646464f20a758ca8a41a3638c8ac4fc83.tar
perl-URPM-507d79f646464f20a758ca8a41a3638c8ac4fc83.tar.gz
perl-URPM-507d79f646464f20a758ca8a41a3638c8ac4fc83.tar.bz2
perl-URPM-507d79f646464f20a758ca8a41a3638c8ac4fc83.tar.xz
perl-URPM-507d79f646464f20a758ca8a41a3638c8ac4fc83.zip
0.03-1mdk
Diffstat (limited to 'build_rpm')
-rwxr-xr-xbuild_rpm1
1 files changed, 1 insertions, 0 deletions
diff --git a/build_rpm b/build_rpm
index c52078c..aa4c794 100755
--- a/build_rpm
+++ b/build_rpm
@@ -4,6 +4,7 @@ RPM=`rpm --eval '%{_topdir}'`
[ -d "$RPM/SPECS" -a -d "$RPM/SOURCES" ] || exit 1
VERSION=`perl -ne '/VERSION\s+=[^0-9\.]*([0-9\.]+)/ and print "$1\n"' URPM.pm`
+perl -pi -e 's/^%define\s+version\s+(\S+)/%define version '$VERSION'/' perl-URPM.spec
echo "building URPM version $VERSION"