Open v6 opened 9 years ago
i think package is named rpm-build
ps, what's with the "//" everywhere you write?
As @glensc says, the package is called rpm-build
and is documented in the CentOS and Fedora packaging guidelines. I think the mistake here is assuming FPM reimplements everything. As much as we'd like to be native Ruby (see projects like arr-pm), it isn't feasible so often we fall back to the regular tools and wrap them in a consistent way. The error message and tests are pretty clear on what's going on here so while FPM doesn't expect you to know what's required on target systems, it does expect your local system to be properly setup. People tend to use the tools they're comfortable with so I think this is a fair expectation.
Thanks for the feedback on tests, we could always write more but it's good to see the effort we've put into them being appreciated :smile:
Have the same issue on Ubuntu, seems that the docs are invalid since it needs package "rpm" too on Ubunu/Deb:
sudo apt-get install rpm
For macOS:
brew install rpm
yum provides */rpmbuild
would give you a list of the packages that provide any file named rpmbuild.. This is just for information purposes
yum search rpm
could have also been of help
yum provides */rpmbuild
would give you a list of the packages that provide any file named rpmbuild.. This is just for information purposes
yum search rpm
could have also been of help
dnf install rpm-build.x86_64
For macOS:
brew install rpm
This is no longer possible since RPM now requires Linux in brew
This is no longer possible since RPM now requires Linux in brew
ahh that’s a bummer. I’m sorry this now seems out of our hands. I do hope to eventually move away from requiring rpmbuild which would help with this problem. If this becomes more important to folks, I’m available for hire to improve fpm such that rpm and rpmbuild are not required for building rpms.
the change in brew’s rpm recipe is here: https://github.com/Homebrew/homebrew-core/pull/144033 with a small note in the commit message that they believe rpm has no use on macos.
I don’t know why GitHub reopened this when I commented 🤷♂️
I don’t know why GitHub reopened this when I commented 🤷♂️
Because there are two buttons in closed issues where you have enough mana to re-open issue
// , Shouldn't the README mention the need for rpmbuild, or for the Debian equivalent, for building
.rpm
or .deb` files?This might seem obvious, but it stumped me for a few minutes, at least:
Perhaps I'm assuming too low of a common denominator among my fellow developers, but this does seem like it's worth mentioning in the README, at least.
P.S. Whoever is doing the dirty work to keep the tests and niggly weirder parts of FPM going, you have my silent appreciation. It's saved me many an hour.