Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build rpms without requiring rpmbuild #54

Open
jordansissel opened this issue Jun 21, 2011 · 11 comments
Open

Build rpms without requiring rpmbuild #54

jordansissel opened this issue Jun 21, 2011 · 11 comments

Comments

@jordansissel
Copy link
Owner

rpmbuild isn't available on some systems without going through pains to install it manually.

The RPM format is poorly documented, but in general, it should be doable to generate RPMs directly from ruby instead of rpmbuild. This would also let me avoid any workarounds I might require to use rpmbuild.

@jneen
Copy link
Collaborator

jneen commented Jun 22, 2011

+1. It would be awesome for people to be able to build all sorts of packages in one go, on the same box.

@jordansissel
Copy link
Owner Author

Exactly. I already generate .deb files without the help of any debian tools. rpm's internal format is some serious bullshit, but I made headway a few weeks ago (see lib/rpm/ in the fpm source tree).

@howardjones
Copy link

Or at least document that it requires rpmbuild :-) The docs don't appear to mention external dependencies at all...

(but +1 for being able to build rpm and deb on anything!)

@ankurcha
Copy link

Any update on this?

@jordansissel
Copy link
Owner Author

Not yet, I haven't had energy yet to implement the 'write an rpm file' library in Ruby.

@ankurcha
Copy link

Is this something I can help with? I have some spare cycles that I can give.

If you have any notes or something I can give it a whirl.

@jordansissel
Copy link
Owner Author

The ruby library I wrote "arr-pm" implements reading an RPM. It needs write support (which should include setting any property in the rpm, adding files, signing, etc)

http://github.com/jordansissel/ruby-arr-pm

@kevinkjt2000
Copy link

This is the one thing keeping me from using fpm for rpm creation. Adding the pure ruby capability of writing rpm files would be exactly in line with the first bit of the README.

  • If fpm is not helping you make packages easily, then there is a bug in fpm.
  • If you are having a bad time with fpm, then there is a bug in fpm.

Should this issue be labeled with bug?

@jordansissel
Copy link
Owner Author

@kevinkjt2000 I don't make much strong use of github issue labels in this project. If it comforts you, I can add a bug label.

This is the one thing keeping me from using fpm for rpm creation

Can you describe your situation more? What about rpmbuild prevents you from using it?

@kevinkjt2000
Copy link

Can you describe your situation more? What about rpmbuild prevents you from using it?

Sure thing 😄

rpmbuild isn't available on some systems without going through pains to install it manually.

@jarondl
Copy link

jarondl commented Jul 14, 2019

It does not handle most metadata yet (significantly package requirements), but if all you want is to put files in an rpm, you may consider rpmpack (tar2rpm), written in golang without calling rpmbuild.
https://github.com/google/rpmpack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants