Skip to content

Define a macro if it is not defined #2342

Answered by pmatilai
vhaispdeaded asked this question in Q&A
Discussion options

You must be logged in to vote

%global itself expands to empty, not the defined value. Eg.

[pmatilai🎩︎localhost ~]$ rpm --eval "%global major 22"

[pmatilai🎩︎localhost ~]$ rpm --eval "%global major 22" --eval "%{major}"

22

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pmatilai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants