[Rpm-maint] [rpm-software-management/rpm] docs/macros.md: Fix expansion shorthand (PR #2739)

Frank Dana notifications at github.com
Tue Oct 31 15:36:39 UTC 2023


The Macros documentation claimed that
```spec
0%{!?with_python3:1}
```
was a shorthand for
```spec
%{?with_python3:1}%{!?with_python3:0}
```
which 'is expanded to 1 if "with_python3" is defined and 0 otherwise'.

That's true of the latter, but not the former, which would expand to `1` (actually `01`) if `with_python3` is _not_ defined. Correct to `0%{?with_python3:1}`.
You can view, comment on, or merge this pull request online at:

  https://github.com/rpm-software-management/rpm/pull/2739

-- Commit Summary --

  * docs/macros.md: Fix expansion shorthand

-- File Changes --

    M docs/manual/macros.md (2)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/2739.patch
https://github.com/rpm-software-management/rpm/pull/2739.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/2739
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/2739 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20231031/8017e795/attachment.html>


More information about the Rpm-maint mailing list