4b56a4c freeipa.spec.in: unify spec files across upstream RHEL, and Fedora

1 file Authored by abbra a year ago, Committed by rcritten a year ago,
    freeipa.spec.in: unify spec files across upstream RHEL, and Fedora
    In order to reduce maintenance burden and to be able to use automatic
    build tools, bring up the differences between RPM spec files in
    upstream, RHEL, and Fedora to a minimum.
    This gives us an opportunity to:
    - start using proper conditional macros (%bcond_with/%bcond_without)
    - remove old cruft where Fedora 31+ and RHEL8+ are already the same
    - remove Group lines which already deprecated in Fedora packaging
    - remove buildroot cleanup
    - support release candidate designations: mostly affects downstreams but
      it is better to have macro support in the common spec file.
    There is also a special handling of the %SOURCE1 (detached tarball
    signature). In developer builds we wouldn't have the signature generated
    but RPM needs all files mentioned as sources and patches to exist. The
    solution is to filter out detached signature if the final component of
    the IPA_VERSION starts with 'dev'. This should cover both in-source
    builds (also used in Azure CI and COPR) and PR CI.
    Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
    Reviewed-By: Thomas Woerner <twoerner@redhat.com>
    Reviewed-By: Christian Heimes <cheimes@redhat.com>
    Reviewed-By: Rob Crittenden <rcritten@redhat.com>
    Reviewed-By: Armando Neto <abiagion@redhat.com>
file modified
+225 -138