title: Rpm package information: Auto incrementing version
body: <p>I wondering if any one knew if there was a way to auto increment the Version/Release number for the information found in an rpm package.</p>
  
  <p>i.e.</p>
  
  <blockquote>
    <p>rpm -qil 'package_name'</p>
  </blockquote>
  
  <p>Would return something like: </p>
  
  <pre><code>Name: package_name
  Version: 1.5
  Release: 000001
  </code></pre>
  
  <p>Is there a way to auto increment the release number every time i perform an rpmbuild? The rpm information is located in a spec file. </p>
  
  <p>Thanks in advance!</p>