How can I change some values within the spec file during rpmbuild?

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

 



All,

How can I change something within the spec file while building the 
rpm package using rpmbuild command?

For example, if I have a build number that I need to reflect it in 
the "release:" field, then can I say something like:

%define buildnumber 111
...
Release: %{buildnumber}

and when execute rpmbuild, then I type "rpmbuild -bb specfile --
define 'buildnumber 222'  ???

Please comment and correct my syntax.

Thanks.

BArry





_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/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