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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx
To :         rpm-list@xxxxxxxxxxxxx
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@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list

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



[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux