Can I use rpm to expand the macros in a specfile?

后端 未结 5 1655
时光取名叫无心
时光取名叫无心 2021-02-01 20:06

The concrete example being I have lots of specfiles with Source0: or other Source lines containing macros. How can I have these macros expanded without

5条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-01 20:35

    Since rpm 4.9 you can use:

    rpmspec -P 
    

    This will print out expanded spec file on stdout

提交回复
热议问题