61ad836 Allow to combine %pycached with other macros (e.g. %exclude or %ghost)

Authored and Committed by churchyard 3 years ago
    Allow to combine %pycached with other macros (e.g. %exclude or %ghost)
    
    Previous implementation allowed for only one argument to be passed to
    the %pycached macro, which made it impossible to combine it with other macros.
    
    Current implementation allows to pass other macros as arguments to
    %pycached.
    
    Example:
    
        %pycached %exclude /path/to/foo.py
    
    For macro expansion limitations, the opposite order is not possible.
    That is to be documented in the guidelines:
    https://pagure.io/packaging-committee/pull-request/986
    
    Added some tests.
    
    Resolves https://bugzilla.redhat.com/show_bug.cgi?id=1838992
    
    Co-authored-by: Marcel Plch <mplch@redhat.com>
    
        
file modified
+1 -1
file modified
+4 -1
file modified
+57 -4