[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:31:29 UTC 2019


pmatilai commented on this pull request.



> @@ -214,24 +214,67 @@ can express this as
 	BuildConflicts: gcc <= 2.7.2.1
 \endverbatim
 
+\section comments Comments
+
+Comments in spec file have # at the start of the line.
+\verbatim
+	# this is a comment
+\endverbatim
+Macros are expanded in comments, thus if a macro is in comment use two percent
+characters before it:

I'd make that more like:
```
Macros are expanded even in comment lines. If this is undesireable, escape the macro with an extra percent sign (%):
<...example..>
```

Now that we have such a thing, it'd be good to mention %dnl as a less quirky way of adding comments to specs.

-- 
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-285472092
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20190909/3ee9e4d7/attachment.html>


More information about the Rpm-maint mailing list