On 08/06/18 19:38, Phil Perry wrote: > 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 Try to pass bash var to rpmbuild, eg: $ _def1="_me no" $ rpmbuild --define ${_def1} > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos