如何在MacOS系统上构建RPM? [英] How can I build an RPM on my MacOS system?
问题描述
我正在运行Mac OS X 10.6.6.我有一些我想构建的仅数据RPM.
I'm running Mac OS X 10.6.6. I have some data-only RPMs that I'd like to build.
直到最近,我已经在运行CentOS的VM上完成了大部分开发工作,但是我能够一一将这些任务迁移到Mac上.我一直在使用 Fink 来访问所需的打开/免费"工具,但是我还没准备好去Fink不稳定的地方, RPM5软件包已经存在了一段时间.
Until recently I've done most of my development on a VM running CentOS, but one by one I've been able to transition these tasks to the Mac proper. I've been using Fink to access the Open/Free tools I need, but I'm not ready to go to Fink unstable, where the RPM5 package has been for a while.
我还尝试从源代码构建RPM实用程序,到目前为止运气不佳.
I've also tried to build the RPM utilities from source, with little luck so far.
是否有人在Mac上本地构建RPM?如果可以,怎么办?
Is anyone else building RPMs natively on a Mac? If so, how?
推荐答案
您可以使用Homebrew软件包管理器在MacOS上安装rpmbuild.
You can install rpmbuild on MacOS using Homebrew package manager.
brew install rpm
这将安装一堆软件包,其中包括用于构建rpm的rpmbuild.然后,您可以运行以下命令来创建rpm
This installs a bunch of packages including rpmbuild which is used to build an rpm. You can then run the following command to create an rpm
rpmbuild <specfile>
这篇关于如何在MacOS系统上构建RPM?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!