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

Authored and Committed by pmatilai 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.
    
        
  • Build failed
    failure
    Built as rpm-4.15.90-0.git14971.9.fc33
    4 years ago
  • Build failed
    failure
    Built as rpm-4.15.90-0.git14971.9.fc33
    4 years ago
  • Build completed
    success
    Built as rpm-4.15.90-0.git14971.9.eln100.0
    4 years ago
file modified
+14 -11