3c208f1 Improve detection of %autorel/%autochangelog use

Authored and Committed by nphilipp 4 years ago
    Improve detection of %autorel/%autochangelog use
    
    Previously, it wouldn't detect the optional forms of the macros, i.e.
    %{?autorel} or %{?autochangelog}, respectively.
    
    This change relaxes the regular expressions involved that they can cope
    with this and (optionally) the inverted macro, so that maintainers can
    use this to specify fallbacks if the macros aren't installed.
    
    Signed-off-by: Nils Philippsen <nils@redhat.com>