"v" fix, take 3.

This commit is contained in:
stevenpritchard committed 2007-08-02 23:11:50 +00:00
1 parent 434b302875
commit 21f3a81eda
1 file changed
+4 -2
+4 -2
View File
@@ -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.55 2007/08/02 22:51:41 stevenpritchard Exp $ # $Id: cpanspec,v 1.56 2007/08/02 23:11:50 stevenpritchard Exp $
our $NAME="cpanspec"; our $NAME="cpanspec";
our $VERSION='1.74'; our $VERSION='1.74';
@@ -1026,13 +1026,15 @@ Source99: $name-filter-provides.sh
END END
} }
my $buildpath=$path;
$buildpath=~s/$version/\%{version}/;
print $spec <<END; print $spec <<END;
\%description \%description
$description $description
\%prep \%prep
\%setup -q@{[($noprefix ? "" : " -n $name-\%{version}")]} \%setup -q@{[($noprefix ? "" : " -n $buildpath")]}
END END
if (@filter_requires) { if (@filter_requires) {