Skip to content

Commit

Permalink
r7655@merlin: jquelin | 2007-11-07 18:53:01 +0100
Browse files Browse the repository at this point in the history
 restricting file inclusion: including module toplevel
  • Loading branch information
jquelin committed Nov 7, 2007
1 parent 03bc407 commit 73e29d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/CPANPLUS/Dist/Mdv.pm
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ sub prepare {
#my $distsummary =
#my $distdescr =
#my $distlicense =
my ($disttoplevel) = $module->name=~ /([^:]+)::/;
my $disturl = $module->package;
my @reqs = sort keys %{ $module->status->prereqs };
my $distbreqs = join "\n", map { "BuildRequires: perl($_)" } @reqs;
Expand Down Expand Up @@ -177,6 +178,7 @@ sub prepare {
$line =~ s/DISTBUILDREQUIRES/$distbreqs/;
#$line =~ s/DISTDESCR/$distdescr/;
$line =~ s/DISTDOC/@docfiles ? "%doc @docfiles" : ''/e;
$line =~ s/DISTTOPLEVEL/$disttoplevel/;
$line =~ s/DISTEXTRA/join( "\n", @{ $status->extra_files || [] })/e;

print $specfh $line;
Expand Down Expand Up @@ -365,7 +367,7 @@ rm -rf $RPM_BUILD_ROOT
%defattr(-,root,root)
DISTDOC
%{_mandir}/man3/*
%perl_vendorlib
%perl_vendorlib/DISTTOPLEVEL
DISTEXTRA
Expand Down

0 comments on commit 73e29d6

Please sign in to comment.