How to set the rpmbuild destination folder

后端 未结 5 874
孤街浪徒
孤街浪徒 2021-02-07 04:16

I noticed rpmbuild (-bb and --buildroot options) creates the .rpm in different locations depending of what OS are you using:

  • GNU/Linux Ubuntu <= 9.04: /usr/src/
5条回答
  •  孤城傲影
    2021-02-07 04:50

    You may want to use the command argument --define : For example, this will send the rpm files into the current directory.

    rpmbuild anything.spec --bb --define "_rpmdir $(pwd)"
    

    This will send the rpmsto output dir

    rpmbuild anything.spec --bb --define "_rpmdir /outputdir"
    

    Or perhaps something more complicated such as Custom gradle task for rpmbuild .

提交回复
热议问题