ruby2.5-rubygem-net-ldap.aarch64: W: hidden-file-or-dir /usr/lib64/ruby/gems/2.5.0/gems/net-ldap-0.16.1/.rubocop.yml ruby2.5-rubygem-net-ldap.aarch64: W: hidden-file-or-dir /usr/lib64/ruby/gems/2.5.0/gems/net-ldap-0.16.1/.rubocop_todo.yml ruby2.5-rubygem-net-ldap.aarch64: W: hidden-file-or-dir /usr/lib64/ruby/gems/2.5.0/gems/net-ldap-0.16.1/.travis.yml The file or directory is hidden. You should see if this is normal, and delete it from the package if not. ruby2.5-rubygem-net-ldap-testsuite.aarch64: W: pem-certificate /usr/lib64/ruby/gems/2.5.0/gems/net-ldap-0.16.1/test/fixtures/ca/cacert.pem Shipping a PEM certificate is likely wrong. If used for the default configuration, this is insecure ( since the certificate is public ). If this is used for validation, ie a CA certificate store, then this must be kept up to date due to CA compromise. The only valid reason is for testing purpose, so ignore this warning if this is the case. ruby2.5-rubygem-net-ldap.aarch64: W: version-control-internal-file /usr/lib64/ruby/gems/2.5.0/gems/net-ldap-0.16.1/.gitignore ruby2.5-rubygem-net-ldap-testsuite.aarch64: W: version-control-internal-file /usr/lib64/ruby/gems/2.5.0/gems/net-ldap-0.16.1/test/support/vm/openldap/.gitignore You have included file(s) internally used by a version control system in the package. Move these files out of the package and rebuild it. ruby2.5-rubygem-net-ldap.aarch64: E: env-script-interpreter (Badness: 9) /usr/lib64/ruby/gems/2.5.0/gems/net-ldap-0.16.1/script/install-openldap /usr/bin/env sh ruby2.5-rubygem-net-ldap.aarch64: E: env-script-interpreter (Badness: 9) /usr/lib64/ruby/gems/2.5.0/gems/net-ldap-0.16.1/script/package /usr/bin/env bash ruby2.5-rubygem-net-ldap.aarch64: E: env-script-interpreter (Badness: 9) /usr/lib64/ruby/gems/2.5.0/gems/net-ldap-0.16.1/script/release /usr/bin/env bash This script uses 'env' as an interpreter. For the rpm runtime dependency detection to work, the shebang #!/usr/bin/env python needs to be patched into #!/usr/bin/python otherwise the package dependency generator merely adds a dependency on /usr/bin/env rather than the actual interpreter /usr/bin/python. Alternatively, if the file should not be executed, then ensure that it is not marked as executable or don't install it in a path that is reserved for executables. 4 packages and 0 specfiles checked; 3 errors, 6 warnings.