teknoraver / rpms / rpm

Forked from rpms/rpm 4 months ago
Clone

1b2c14 Fix questionable uses of %{name} and %{version} in the spec

Authored and Committed by Panu Matilainen 4 years ago
1 file changed. 14 lines added. 11 lines removed.
    Fix questionable uses of %{name} and %{version} in the spec
    
    %{name} and %{version} refer to the name and version strings of the
    package that will be built and shouldn't be used for things that
    do not honor those macros. Such as pre-existing or predetermined
    filenames.
    
    De-facto packaging practises over multiple decade liberally (ab)use
    these and various other macros in places they don't belong - if rpm itself
    doesn't follow its own rules then how can we expect anybody else to do so...
    
    This doesn't change anything as is, but enables both Name: and Version:
    to be changed arbitrarily without breaking the package build, which is
    how it should optimally be. If this was strictly followed then scl-utils
    would've been a walk in the park. Relatively speaking.
    
        
file modified
+14 -11