I already fixed most of Fedora's ansible collection packages to BuildRequire ansible-packaging (see https://bugzilla.redhat.com/2126894), but I was unable to fix this package given the complexity and illegibility of its specfile. Please consider removing the RHEL conditionals from this package's Fedora specfile or otherwise making it more legible. For the EPEL packages I maintain, I also prefer to use the same specfile for both Fedora and EPEL, but I avoid doing so when it would require too many conditionals or other complexity. From the Packaging Guidelines: > All spec files MUST be legible and maintained in such a way that the community of packagers is able to understand and work with them. -- https://docs.fedoraproject.org/en-US/packaging-guidelines/#_spec_legibility You can look at https://src.fedoraproject.org/rpms/ansible-collection-community-rabbitmq for an example of a collection package. I am working on[1] writing official packaging guidelines for Ansible collections, as well. [1]: https://pagure.io/packaging-committee/pull-request/1201
The %ansible_collection_build_install macro defined in this package is also problematic. Building should occur in %build and installation should occur in %install. Please use %ansible_collection_build and %ansible_collection_install in the appropriate places.
This bug appears to have been reported against 'rawhide' during the Fedora Linux 38 development cycle. Changing version to 38.
Hi Maxwell, I recently noticed that this ticket remained open, I cleaned the code but forgot about the ticket. I did all the simplifications to the spec file that you requested, and recently did some more to store more RHEL related code in a separate sources like linux-system-roles spec. So I'll resolve this ticket, feel free to re-open if you have any further concerns. Thank you