[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:
+	%if %{defined with_foo} && %{undefined with_bar}
+string comparison:
+	%if %{optimize_flags} != "none"
+or a mathematical statement:
+	%if 0%{?fedora} > 10 || 0%{?rhel} > 7
+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:
-------------- 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