rgem2rpm is a gem to make a rpm package out of a .gem file. The intent is to provide a minimal and flexible way to easily package a gem into an rpm. With this done you can use all the facilities provided by Linux Red Hat systems to manage your ruby software.
rgem2rpm provides a sane set of out-of-the box defaults that should allow most gem files to assemble and Just Work.
-
Install the gem:
gem install rgem2rpm
. -
Run the command: rgem2rpm <gemfilename>
-
Get the rpm file in the ./rpmbuild/RPMS/<arch>/
rgem2rpm’s rgem2rpm
command is an executable that provides the capability to assemble rpm’s using gem files. Run the next command to get help:
$ rgem2rpm --help Usage: rgem2rpm [options] [gemfilename] options: --template SPECTEMPLATE Define new rpm spec template. --release RPMRELEASE Define rpm spec release. --rpmgroup RPMGROUPNAME Define rpm spec group. --osuser USERNAME Define rpm spec os install user. --osgroup GROUPNAME Define rpm spec os install group. --osinstalldir INSTALLDIR Define rpm spec os install directory. --help Show this message. --version Show version.