Adjust rpmspec -P to invoke non-build parse
authorAlexey Tourbin <alexey.tourbin@gmail.com>
Tue, 22 Jan 2013 00:47:15 +0000 (00:47 +0000)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 29 Jan 2013 06:14:46 +0000 (08:14 +0200)
commit9ca9a5196b2e95e9d650f86a3c6513ea87c8ab8e
tree57722a643c744d80af63bdb1275185fc0d467fdf
parentcca565fd10665cfb6fe7f875fc0d079e0f56a913
Adjust rpmspec -P to invoke non-build parse

In the query mode, rpmspecQuery puts the parser into non-build mode
by invoking rpmSpecParse with (RPMSPEC_ANYARCH|RPMSPEC_FORCE) flags.
The same flags should be applied in the parse mode, so that it is
possible to preprocess specfiles separately, i.e. without also
installing sources and patches.

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
(cherry picked from commit 4eb824937ce536aeecdfdcab2d88e28083bba85b)
rpmspec.c