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:

  1. what -q for?
  2. how come cannot see expansions? missing something?
  3. 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?

what -q for?

see https://docs.fedoraproject.org/en-us/fedora_draft_documentation/0.1/html-single/rpm_guide/index.html#id366540

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

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -