On 3/5/06, Erez Zilber <erezz voltaire com> wrote:
Hi,
How can I set the version & release number dynamically in a spec file?
Currently, I do that in the following way:
%define version 3
%define release 456
Version : %{version}
Release : %{release}
I'd like to do something like:
version = grep a value from some file
release = grep a value from some file
So use %() which is lick `` in the shell, as in:
Version: %(grep version: some_file|cut -d: -f2)
Cheers...james
_______________________________________________
Rpm-list mailing list
Rpm-list redhat com
https://www.redhat.com/mailman/listinfo/rpm-list