Compare commits

1 Commits

Author SHA1 Message Date
Dinis
907b9853d7 Don't assume bin in %files from package files
Do not assume module has scripts to install just because the package ships with scripts/tools/bin folder(s). This causes most modules to include extra contents in the %files section:
%{_bindir}/*
%{_mandir}/man1/*
2015-04-17 17:29:53 +01:00

View File

@@ -882,7 +882,7 @@ for my $file (@args) {
# TODO It's possible these need to be listed instead of just detected. # TODO It's possible these need to be listed instead of just detected.
my $uses_autoinstall = grep /Module\/AutoInstall.pm/, @files; my $uses_autoinstall = grep /Module\/AutoInstall.pm/, @files;
my $scripts=(grep /^(?:bin|scripts?|tools)\//, @files); my $scripts=0;
my $makecontent; my $makecontent;
if (grep /^Makefile\.PL$/, @files if (grep /^Makefile\.PL$/, @files
and $makecontent=extract($archive, $type, "$path/Makefile.PL")) { and $makecontent=extract($archive, $type, "$path/Makefile.PL")) {