Greetings, I am trying to make a Fedora compliant rpm package and I have found myself in need of guidance. The software I am trying to package contains a test suite that compiles a few c files at build time. When installing with a prefix, the test suite and examples are installed in ${PREFIX}/share/doc/charliecloud/test and ${PREFIX}/share/doc/charliecloud/examples respectively. The spec file uses the standard %{_prefix} macro, thus the test suite installs to /usr/share/, which is reserved for architecture-independent files. The presence of the compiled test suite and example binaries causes rpmlint to complain with 'arch- dependent-file-in-usr-share' errors (among others). Any guidance or advice is greatly appreciated. Note I am an upstream developer of this software and we would prefer to keep the contents of the test suite and examples together. Where they should be located for compliance with Fedora and the FHS is a little unclear to me (/usr/libexec ?). Finally, note that I am new to rpm packaging (this is my first spec file...) and this community. Forgive me if the scope or content of this message is inappropriate or malformed for this forum. Spec file: https://github.com/hpc/charliecloud/blob/epel-package/packaging/epel-7/0.9.6/charliecloud.spec rpmlint output (non-verbose and pruned, i.e., removed errors and warnings not relevant to this discussion): charliecloud.x86_64: E: arch-dependent-file-in-usr-share /usr/share/doc/charliecloud/test/sotest/sotest charliecloud.x86_64: E: arch-dependent-file-in-usr-share /usr/share/doc/charliecloud/examples/syscalls/userns charliecloud.x86_64: E: arch-dependent-file-in-usr-share /usr/share/doc/charliecloud/examples/syscalls/pivot_root charliecloud.x86_64: E: arch-dependent-file-in-usr-share /usr/share/doc/charliecloud/test/sotest/bin/sotest charliecloud.x86_64: E: arch-dependent-file-in-usr-share /usr/share/doc/charliecloud/test/sotest/lib/libsotest.so.1.0 charliecloud.x86_64: E: no-ldconfig-symlink /usr/share/doc/charliecloud/test/sotest/lib/libsotest.so.1.0 charliecloud.x86_64: E: arch-dependent-file-in-usr-share /usr/share/doc/charliecloud/test/sotest/libsotest.so.1.0 charliecloud.x86_64: W: dangling-relative-symlink /usr/share/doc/charliecloud/test/bin ../../../../bin charliecloud.x86_64: W: spurious-executable-perm /usr/share/doc/charliecloud/test/sotest/sotest charliecloud.x86_64: W: spurious-executable-perm /usr/share/doc/charliecloud/examples/syscalls/userns charliecloud.x86_64: W: spurious-executable-perm /usr/share/doc/charliecloud/examples/syscalls/pivot_root charliecloud.x86_64: W: spurious-executable-perm /usr/share/doc/charliecloud/test/sotest/bin/sotest charliecloud.x86_64: W: doc-file-dependency /usr/share/doc/charliecloud/test/Build.missing /bin/bash charliecloud.x86_64: W: doc-file-dependency /usr/share/doc/charliecloud/test/chtest/Build /bin/bash charliecloud.x86_64: W: doc-file-dependency /usr/share/doc/charliecloud/test/chtest/fs_perms.py /usr/bin/env charliecloud.x86_64: W: doc-file-dependency /usr/share/doc/charliecloud/test/chtest/signal_out.py /usr/bin/env charliecloud.x86_64: W: doc-file-dependency /usr/share/doc/charliecloud/test/chtest/dev_proc_sys.py /usr/bin/env charliecloud.x86_64: W: doc-file-dependency /usr/share/doc/charliecloud/test/make-auto /usr/bin/env charliecloud.x86_64: W: doc-file-dependency /usr/share/doc/charliecloud/test/make-perms-test /usr/bin/env charliecloud.x86_64: W: doc-file-dependency /usr/share/doc/charliecloud/test/chtest/bind_priv.py /usr/bin/env _______________________________________________ packaging mailing list -- packaging@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to packaging-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/packaging@xxxxxxxxxxxxxxxxxxxxxxx