If you create a .spec
file with ViM, the editor will use a skeleton for it. Quite handy!
It bugs me however that the generated %setup
macro has this -q
flag which I could not find anywhere.
I didn't find any mention on the max-rpm guide page on macros, and does not get expanded by rpmspec
: rpmspec --eval '%setup'
only returns %setup
, and the -p
does not change anything. It is not mentioned in other relevant docs also.
With further investigation I noticed that there's plenty of macros which don't get expanded by rpmspec
, even if I could find plenty of macros in /usr/lib/rpm
(on my Fedora).
So I'm wondering:
- What is the
-q
for? - How come I cannot see all expansions? Am I missing something?
- The aforementioned Max RPM guide claims the existence of a
--test
flag forrpm -b
commands. I could see on my system there's norpm -b
, and actually I do all the job withrpmbuild
. Inrpmbuild
there's no--test
flag. How do I see the expanded scripts?