Strip leading [Vv]\.? from spec Version.
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
1.66
|
1.66
|
||||||
|
|
||||||
* Fix $summary modification.
|
* Fix $summary modification.
|
||||||
|
* Strip leading [Vv]\.? from spec Version.
|
||||||
|
|
||||||
1.65 2006-04-26
|
1.65 2006-04-26
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
# 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 $NAME="cpanspec";
|
||||||
our $VERSION='1.66';
|
our $VERSION='1.66';
|
||||||
@@ -782,9 +782,11 @@ for my $file (@ARGV) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
my $packageversion=$version;
|
||||||
|
$packageversion=~s/^v\.?(\d)/$1/i;
|
||||||
print $spec <<END;
|
print $spec <<END;
|
||||||
Name: $prefix$name
|
Name: $prefix$name
|
||||||
Version: $version
|
Version: $packageversion
|
||||||
Release: $release$disttag
|
Release: $release$disttag
|
||||||
Summary: $summary
|
Summary: $summary
|
||||||
License: $license
|
License: $license
|
||||||
@@ -987,7 +989,7 @@ END
|
|||||||
\%{_mandir}/man3/*
|
\%{_mandir}/man3/*
|
||||||
|
|
||||||
\%changelog
|
\%changelog
|
||||||
* $date $packager $version-$release
|
* $date $packager $packageversion-$release
|
||||||
- Specfile autogenerated by $NAME $VERSION.
|
- Specfile autogenerated by $NAME $VERSION.
|
||||||
END
|
END
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user