[Rpm-maint] [rpm-software-management/rpm] Improve description of conditionals + comments in spec documentation (#830)
Panu Matilainen
notifications at github.com
Mon Sep 9 12:43:33 UTC 2019
pmatilai commented on this pull request.
> +
+%if can be used for various purposes. The test can be evaluated based on
+the existence of a macro, like:
+\verbatim
+ %if %{defined with_foo} && %{undefined with_bar}
+\endverbatim
+string comparison:
+\verbatim
+ %if %{optimize_flags} != "none"
+\endverbatim
+or a mathematical statement:
+\verbatim
+ %if 0%{?fedora} > 10 || 0%{?rhel} > 7
+\endverbatim
+Generally, a mathematical statement allows to use logical operators
+&&, ||, !, relational operators !=, ==, <, > , <=, >= and parentheses.
Might as well document the rest of the mathematical operators as well (+-/*)
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/830#pullrequestreview-285478700
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20190909/d8d9fcf0/attachment.html>
More information about the Rpm-maint
mailing list