Changes

Jump to navigation Jump to search
Line 88: Line 88:  
in a script you can use this from your spec file
 
in a script you can use this from your spec file
 
  version=$(grep -sri 'define version' *.spec | sed 's/%define version //gI')
 
  version=$(grep -sri 'define version' *.spec | sed 's/%define version //gI')
 +
or also
 +
        # Informations needed from the spec file
 +
        version=$(rpm -q --qf "%{version}\n" --specfile $name.spec | head -1)
 +
        release=$(rpm -q --qf "%{release}\n" --specfile $name.spec | head -1| sed s/\.el.//)
    
===find and bump release number===
 
===find and bump release number===

Navigation menu