Re: 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,

Thanks for replying.

However, please read my original post. I do aware of the 'rpmbuild --define
'buildnumber 222' syntax. But for some reasons, it does not work. Is my spec
file wrong? Please correct my syntax in the spec file or show my how to use
it within the spec file.

Thanks

Barry


----- Original Message ----- 
From: <barry@xxxxxxxxxxxxxxxxxxx>
To: <rpm-list@xxxxxxxxxx>
Sent: Friday, March 05, 2004 3:34 PM
Subject: How can I change some values within the spec file during rpmbuild?


> 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
>



_______________________________________________
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