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

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

 



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

[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