From 907b9853d7a63d790355ead3e7bcb8d1afa65311 Mon Sep 17 00:00:00 2001 From: Dinis Date: Fri, 17 Apr 2015 17:29:53 +0100 Subject: [PATCH] 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/* --- cpanspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpanspec b/cpanspec index f22e9e2..38a7696 100755 --- a/cpanspec +++ b/cpanspec @@ -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")) {