[Rpm-maint] [rpm-software-management/rpm] Add %bcond macro for defining build conditionals (#1520)
Sérgio Basto
notifications at github.com
Sun Feb 20 23:11:03 UTC 2022
Nice ,
I would like to tell you about another challenge similar to this one . I recently realized that there is a subtle difference between "with" with a space and "with" with an underscore
```
# For example (spec file):
#
# (at the beginning)
# %bcond_with extra_fonts
# %bcond_without static
# (and later)
# %if %{with extra_fonts}
# ...
# %else
# ...
# %endif
# %if ! %{with static}
# ...
# %endif
# %if %{with static}
# ...
# %endif
# %{?with_static: ... }
# %{!?with_static: ... }
# %{?with_extra_fonts: ... }
# %{!?with_extra_fonts: ... }
```
%if %{without static} works but %{?without_static: ... } doesn't work , isn't it ?
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1520#issuecomment-1046342030
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/1520/c1046342030 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220220/30ad51dc/attachment.html>
More information about the Rpm-maint
mailing list