how to generate version and release numbers in spec files dynamically?

Greg_Swift at aotx.uscourts.gov Greg_Swift at aotx.uscourts.gov
Fri Jun 25 14:13:01 UTC 2010


You could utilize a system call in a macro definition, BUT if you are
cleanly updating the changelog section as well, you'd still have to add
something there.

Greg Swift
Sent with mobile device, please pardon errors.



-------- Original Message --------

>From :      rpm-list-bounces at lists.rpm.org
To :         rpm-list at lists.rpm.org
Cc :
Sent on : 06/25/2010 09:47:02 AM
Subject : how to generate version and release numbers in spec files
dynamically?

At the top of spec files we have entries for version and release
information like:

Version:    1.0
Release:    5

I'd like this information to be auto-retrieved from values in files in the
build/source
directories, so that my 'make' process can bump the release number every
time
there was a build, without me having to go in and edit the spec file every
time.

sort of the equivalent of:

Release: %{<file_containing_release_number}

Is this possible?  how?

TIA
Fulko


_______________________________________________
Rpm-list mailing list
Rpm-list at lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-list



More information about the Rpm-list mailing list