了解 rpm 规范文件中的构建部分

Understanding build section in an rpm spec file

在 rpm 规范文件中,我看到以下几行:

%build
./configure
make

谁能给我解释一下每一行的作用?

 %build

= 构建部分的开始。列表如下:

 ./configure
 make

只是您要执行以 构建 您的应用程序的命令。如果您不了解这些步骤,恐怕在尝试使用 spec 文件之前需要了解更多基础知识。您可以从这里开始阅读:https://robots.thoughtbot.com/the-magic-behind-configure-make-make-install.