Strip leading [Vv]\.? from spec Version.

This commit is contained in:
stevenpritchard
2006-05-05 22:01:04 +00:00
parent 99660272fa
commit 972c700e29
2 changed files with 6 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
1.66
* Fix $summary modification.
* Strip leading [Vv]\.? from spec Version.
1.65 2006-04-26

View File

@@ -10,7 +10,7 @@
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# $Id: cpanspec,v 1.23 2006/05/04 16:18:17 stevenpritchard Exp $
# $Id: cpanspec,v 1.24 2006/05/05 22:01:04 stevenpritchard Exp $
our $NAME="cpanspec";
our $VERSION='1.66';
@@ -782,9 +782,11 @@ for my $file (@ARGV) {
}
}
my $packageversion=$version;
$packageversion=~s/^v\.?(\d)/$1/i;
print $spec <<END;
Name: $prefix$name
Version: $version
Version: $packageversion
Release: $release$disttag
Summary: $summary
License: $license
@@ -987,7 +989,7 @@ END
\%{_mandir}/man3/*
\%changelog
* $date $packager $version-$release
* $date $packager $packageversion-$release
- Specfile autogenerated by $NAME $VERSION.
END