diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2015-10-07 11:28:06 +0300 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2015-10-19 08:59:20 +0200 |
commit | 3474d74e701fb6b3927dc485d671571fe73c1c92 (patch) | |
tree | d31061a5e02f110c27c6866d08ad9877e7c11f5e /docs | |
parent | a64cee001c75d5ae7599d6d0b5df61b9043c8ca1 (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.sgml | 39 |
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 <expression></option> + </term> + <listitem> + <para> + Conditional patch. Put patch inside "%if <expression>" in the + spec file. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><option>Gbp-Rpm: IfArch<expression></option> + </term> + <listitem> + <para> + Conditional patch. Put patch inside "%ifarch <expression>" 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> |