Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# Packaging ruby with fpm is a bit meta
# You need ruby install to use fpm
# I used an RVM install on a VM install fpm in a packaging gemset
# Install EPEL if you don't have it already
rpm -Uvh
# Install deps for ruby build
yum install rpm-build readline-devel.x86_64 libffi-devel.x86_64 libyaml-devel.x86_64 zlib-devel.x86_64 openssl-devel.x86_64
tar -zxvf ruby-1.9.2-p180.tar.gz
cd src/ruby-1.9.2-p180
time (./configure --prefix=/usr && make && make install DESTDIR=/tmp/installdir)
fpm --prefix=/ -s dir -t rpm -n ruby -v 1.9.2p180 -C /tmp/installdir \
-p ruby-VERSION_ARCH.rpm \
-d "libstdc++ >= 4.1.2" \
-d "glibc >= 2.5" \
-d "libffi >= 3.0.5" \
-d "zlib >= 1.2.3" \
-d "readline >= 5.1" \
-d "libyaml >= 0.1.2" \
-d "openssl >= 0.9.8"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.