macros - What is `%setup -q` in RPM spec? -
if create .spec
file vim, editor use skeleton it. quite handy!
it bugs me generated %setup
macro has -q
flag not find anywhere.
i didn't find mention on max-rpm guide page on macros, , not expanded rpmspec
: rpmspec --eval '%setup'
returns %setup
, , -p
not change anything. not mentioned in other relevant docs also.
with further investigation noticed there's plenty of macros don't expanded rpmspec
, if find plenty of macros in /usr/lib/rpm
(on fedora).
so i'm wondering:
- what
-q
for? - how come cannot see expansions? missing something?
- the aforementioned max rpm guide claims existence of
--test
flagrpm -b
commands. see on system there's norpm -b
, , jobrpmbuild
. inrpmbuild
there's no--test
flag. how see expanded scripts?
what -q for?
it stands for: run quietly minimal output.
how come cannot see expansions? missing something?
i'm not 100% sure, %setup term , handled rpm internals. same %if, not expanded well.
the aforementioned max rpm guide claims existence of --test flag rpm -b commands. see on system there's no rpm -b, , job rpmbuild. in rpmbuild there's no --test flag. how see expanded scripts?
the max rpm old. written in 2000. , not updated since then. while still 1 of best , comprehensive guides. things changed. 1 of them. not aware of equivalent of --test. there exist on "rpm --eval" , "rpm --showrc". last 1 shows defined macros on system.
Comments
Post a Comment