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.
i.e.
rpm -qil 'package_name'
Would return something like:
Name: package_name
Version: 1.5
Release: 000001
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.
Thanks in advance!
If you don't mind having epoch as a release number, you could do this:
Release: 0.%(perl -e 'print time()')
The reason I put 0. in front is so if you want to ever use something other than epoch as the release tag, and not change the version, you can.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With