diff options
Diffstat (limited to 'build_rpm')
-rwxr-xr-x | build_rpm | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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" |