[CentOS] rpm spec files for ruby

Ross S. W. Walker rwalker at medallion.com
Fri Sep 7 13:49:01 UTC 2007

From: centos-bounces at centos.org 
[mailto:centos-bounces at centos.org] On Behalf Of James B. Byrne
> I am trying to package ruby-1.8.6 for CentOS-4.5 and I would 
> like to take
> a look at the spec files used for ruby-1.8.1 that ships with 
> CentOS. Is
> there any place that I can see these or could someone do me 
> the kindness
> of sending them to me?

Download the SRPMS off of http://mirror.centos.org/centos

> I am also confused as to how one breaks out the component 
> parts of a build
> into separate rpm packages.  The source distribution from 
> ruby-lang.org
> seemingly permits only three install options; all, no-docs 
> and docs-only. 
> How and where does one refactor the build scripts to create 
> separate rpms
> for ruby, ruby-libs, ruby-devel, ruby-docs, rdoc, irb, ri, 
> and ruby-tcltk?
>  I would appreciate greatly any guidance here.

This is configured in the RPM .spec file and handled automatically
during the rpmbuild process.

> I have zero experience with creating rpm packages, but I ran across a
> reference to checkinstall in a reply to one of my queries on 
> ruby-forum
> and have decided to have a go at putting an rpm together, for my own
> purposes if it proves beyond my capability to do so for the community.

You will need gcc, binutils, make, patch, rpm-build, redhat-rpm-config
and maybe gcc-c++ and stdc++ libs.

There is pretty good documentation on the rpm spec file format at:





This e-mail, and any attachments thereto, is intended only for use by
the addressee(s) named herein and may contain legally privileged
and/or confidential information. If you are not the intended recipient
of this e-mail, you are hereby notified that any dissemination,
distribution or copying of this e-mail, and any attachments thereto,
is strictly prohibited. If you have received this e-mail in error,
please immediately notify the sender and permanently delete the
original and any copy or printout thereof.

More information about the CentOS mailing list