Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在规范文件中运行 shell 命令?我想执行类似的东西:
uname -r | sed s/(...stuff...)/(...stuff...)
如果您需要在%defineor%global或宏之类的东西中使用它,您可以使用“ %(shell_command)”。注意()不是{}。
%define
%global
%(shell_command)
()
{}