[CentOS] rpmbuild --define | some rpm sorcerer around?
Phil Perry
pperry at elrepo.org
Fri Jun 8 18:38:47 UTC 2018
On 08/06/18 15:54, lejeczek wrote:
> hi
>
> how do you pass vars to rpmbuild for definition? eg
>
> rpmbuild --define \'"${_definition2}"\'
>
> I've been fiddling with ways to escape, but none is fricking working..
> I mean, rpmbuild rushes to work(no errors nor failure) so if you try
> just the command line do not believe it, because later as it executes
> %if you will see process does not see these definitions.
>
> many thanks, L
I'm not sure what you are trying to define above.
Normal convention where one wishes to define _foobar as "foo" for
example would be:
rpmbuild --define '_foobar foo'
or generically
rpmbuild --define 'SomeVariable SomeValue'
Hope that helps
More information about the CentOS
mailing list