[Rpm-maint] [rpm-software-management/rpm] Unclosed %if (when defined inside %define) (#1198)
Mihai Moldovan
notifications at github.com
Wed Jun 1 02:11:29 UTC 2022
I'm actually looking for a way to use conditionals in a macro definition file.
Do I understand correctly that escaping the conditionals will work with both 4.14 and 4.15 (and even after future changes that add a warning if used unescaped) and produce the intended result?
I currently have something like this in mind:
```spec
%bar \
%%if 0%{!?foo:1} \
val1 \
%%else \
val2 \
%%endif \
%{nil}
```
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1198#issuecomment-1143041479
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/1198/1143041479 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220531/94cffcd4/attachment-0001.html>
More information about the Rpm-maint
mailing list