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:
1 parent
2123bdcc9f
commit
907b9853d7
1 file changed
+1
-1
@@ -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")) {
|
||||||
|
|||||||
Reference in new issue
Block a user