-
-
Save GregMefford/943561 to your computer and use it in GitHub Desktop.
Revisions
-
GregMefford revised this gist
Apr 27, 2011 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,7 +10,7 @@ yum install rpm-build readline-devel.x86_64 libffi-devel.x86_64 libyaml-devel.x8 wget ftp://ftp.ruby-lang.org//pub/ruby/1.9/ruby-1.9.2-p180.tar.gz tar -zxvf ruby-1.9.2-p180.tar.gz cd 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 \ -
thbishop created this gist
Apr 15, 2011 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,24 @@ # 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 http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm # 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 wget ftp://ftp.ruby-lang.org//pub/ruby/1.9/ruby-1.9.2-p180.tar.gz 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"