Created attachment 860343 [details] mk-rpmbuild-test - short reproducer (bash script) demonstrating the issue rpmbuild autogenerates dependencies. This autogeneration behaves differently depending on the mode of source files. It looks like the dependency step is ignoring %attrs defined in the %files section. For a given bash script foo: chmod 644 foo %files %attr(0750,-,-) foo ...does not produce a Requires: /bin/bash. This is surprising, and caused some confusion across a package rebuild. Reproducer (attached) is one short example demonstrating how a simple difference in a source tarball or git repo could produce surprisingly different results. rpm-4.11.1-3.fc19 but also present in RHEL6.
This is actually intentional, been that way forever. The file permissions used to be the only way of controlling automatic dependency generation on per-file level, and changing that would just break existing intentional uses.