如何设置 rpmbuild 目标文件夹 [英] How to set the rpmbuild destination folder
本文介绍了如何设置 rpmbuild 目标文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我注意到 rpmbuild(-bb 和 --buildroot 选项)根据您使用的操作系统在不同位置创建 .rpm:
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/rpm/...
- GNU/Linux Ubuntu >= 9.10:/home/rpmbuild/...
- GNU/Linux Fedora:/usr/src/redhat/...
那么如何手动设置所有操作系统的目标文件夹?
So how can I set manually the destination folder for all OS?
推荐答案
回复自己,补充:
%define _rpmdir /outputdir
到 .spec 文件.
to .spec file.
这篇关于如何设置 rpmbuild 目标文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文