https://bugzilla.redhat.com/show_bug.cgi?id=829865
--- Comment #5 from Iain Arnell iarnell@gmail.com --- (In reply to comment #4)
Thanks, BuildRequires: perl(ExtUtils::MakeMaker) added.
The permissions problem is indeed weird, and actually matches what's happening in perl-MARC-Record. If you remove the %attr specification for %{_bindir} here, you get:
perl-MARC-XML.noarch: E: non-standard-executable-perm /usr/bin/xml2marc 0555L
(This is weird because ExtUtil::MakeMaker says that the default permission for EXE_FILES is supposed to be 755, and I don't see anything overriding that default in Makefile.PL for this module).
Over in perl-MARC-Record, the solution I inherited had been to "chmod -R u+w $RPM_BUILD_ROOT/*". That seemed a bit bunt, which is why I went with the %attr approach to resolve the problem specifically with the contents of %{_bindir}.
Aha. That rings a bell. The standard approach is to add
%{_fixperms} %{buildroot}/*
to the end of %install section.