summaryrefslogtreecommitdiffhomepage
path: root/docs
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2015-10-07 11:28:06 +0300
committerGuido Günther <agx@sigxcpu.org>2015-10-19 08:59:20 +0200
commit3474d74e701fb6b3927dc485d671571fe73c1c92 (patch)
treed31061a5e02f110c27c6866d08ad9877e7c11f5e /docs
parenta64cee001c75d5ae7599d6d0b5df61b9043c8ca1 (diff)
docs: document gbp meta-tag commands of pq-rpm
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/manpages/gbp-pq-rpm.sgml39
1 files changed, 39 insertions, 0 deletions
diff --git a/docs/manpages/gbp-pq-rpm.sgml b/docs/manpages/gbp-pq-rpm.sgml
index 1716fbf6..42c1e685 100644
--- a/docs/manpages/gbp-pq-rpm.sgml
+++ b/docs/manpages/gbp-pq-rpm.sgml
@@ -194,7 +194,46 @@
</para>
</listitem>
</varlistentry>
+ <varlistentry>
+ <term><option>Gbp-Rpm: If &lt;expression&gt;</option>
+ </term>
+ <listitem>
+ <para>
+ Conditional patch. Put patch inside "%if &lt;expression&gt;" in the
+ spec file.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><option>Gbp-Rpm: IfArch&lt;expression&gt;</option>
+ </term>
+ <listitem>
+ <para>
+ Conditional patch. Put patch inside "%ifarch &lt;expression&gt;" in
+ the spec file.
+ </para>
+ </listitem>
+ </varlistentry>
</variablelist>
+ <para>
+ For example, the following commit message:
+ </para>
+ <screen>
+ Fix around a problem in Fedora
+
+ which is not applicable elsewhere.
+
+ Gbp-Rpm: If 0%{?fedora}
+ </screen>
+ <para>
+ Will result something like this in the spec file:
+ </para>
+ <screen>
+ # 0001-Fix-around-a-problem-in-Fedora.patch
+ %if 0%{?fedora}
+ %patch0 -p1
+ %endif
+ </screen>
</refsect1>
<refsect1>
<title>SEE ALSO</title>