Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save GregMefford/943561 to your computer and use it in GitHub Desktop.

Select an option

Save GregMefford/943561 to your computer and use it in GitHub Desktop.

Revisions

  1. GregMefford revised this gist Apr 27, 2011. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion fpm ruby 1.9.2 rpm build
    Original 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 src/ruby-1.9.2-p180
    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 \
  2. @thbishop thbishop created this gist Apr 15, 2011.
    24 changes: 24 additions & 0 deletions fpm ruby 1.9.2 rpm build
    Original 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"