如何让 rpmbuild 下载特定 .spec 的所有源代码? [英] How do I get rpmbuild to download all of the sources for a particular .spec?
本文介绍了如何让 rpmbuild 下载特定 .spec 的所有源代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在通过 URL 将一些源添加到现有的 rpm .spec
文件,但尚未下载它们.有没有办法让 rpmbuild
下载源代码而不是手动下载?
I am adding some sources to an existing rpm .spec
file by URL and don't have them downloaded yet. Is there a way to get rpmbuild
to download the sources rather than doing it manually?
推荐答案
spectool
实用程序来自 rpmdevtools
包可以做到这一点.只需安装 rpmdevtools
并将 spectools
指向 .spec
,如下所示:
The spectool
utility from the rpmdevtools
package can do this. Just install rpmdevtools
and point spectools
at the .spec
like so:
spectool -g -R SPECS/nginx.spec
它会将任何丢失的源下载到 rpm 的 %{_sourcedir}
(通常是 SOURCES
)目录中.
It will download any missing sources into rpm's %{_sourcedir}
(usually SOURCES
) directory.
这篇关于如何让 rpmbuild 下载特定 .spec 的所有源代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文