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/*
This commit is contained in:
Dinis
2015-04-17 17:29:53 +01:00
parent 2123bdcc9f
commit 907b9853d7

View File

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