Hi, lejeczek via users wrote: > 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 > command line do not believe it, because later as it executes %if you will > see process does not see these definitions. The format would be --define '_definition2 value'. The you would use %{_definition2} in your spec file, (which I'm presuming you already have, it's just not being defined). The man page explains is this way: -D, --define='MACRO EXPR' Defines MACRO with value EXPR. -- Todd ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ It's not denial. I'm just very selective about what I accept as reality. -- Calvin ("Calvin and Hobbes")
Attachment:
signature.asc
Description: PGP signature
_______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx/message/DTIIF332XVZNYJMB2PQT4BGMEFYMD3BV/