On Mon, Apr 6, 2020 at 2:03 AM Petr Pisar <ppisar@redhat.com> wrote:

The dist-bound conditional should be specified outside the spec file,
preferably on a distribution-level. E.g. RHEL decides that it does not
want to distribute a documentation, then it defines "%_without_docs 1" in srpm
build root macros.

This way the package becomes fully agnostic of the distribution it builds in.
No hard-coded exceptions anymore.

That may work fine for distro based decisions but 100% of the distro based conditionals I use are to work around package dependency versioning or availability, which that wouldn't solve.

Thanks,
RichardÂ