Here is an RPM spec for ruby 1.8.0-preview5 that works for Mandrake 9.

Note you must...
1) Get all the sources
2) And rename the ruby preview tar ball to ruby-1.8.0.tar.gz

Note that this is in no way "Official", it is just a "Works For Me".

If anyone cares I'll email them the .rpm's or if lots care, I'll put them
on a web site somewhere.


=============================================================================
# $Revision: 1.30 $, $Date: 2003/04/02 21:16:21 $
Summary:	Ruby - interpreted scripting language
Summary(ja):	オブジェクト指向言語Rubyインタプリタ
Summary(pl):	Ruby - interpretowany j?zyk skryptowy
Summary(pt_BR): Linguagem de script orientada a objeto
Summary(zh_CN):	ruby - 匯嶽酔堀互丼議中魘塹鷭撤庄牾毛鑵
Name:		ruby
Version:	1.8.0
Release:	3
License:	GPL
Group:		Development/Languages
Source0:	ftp://ftp.ruby-lang.org/pub/ruby/%{name}-1.8.0.tar.gz
Source1:	ftp://ftp.netlab.co.jp/pub/lang/ruby/doc/%{name}-texi-1.4-en.tar.gz
Source2:	http://www.math.sci.hokudai.ac.jp/~gotoken/ruby/%{name}-uguide-981227.tar.gz
Source3:	ftp://ftp.ruby-lang.org/pub/ruby/doc/%{name}faq-990927.tar.gz
URL:		http://www.ruby-lang.org/
BuildRequires:	autoconf
BuildRequires:	gdbm-devel >= 1.8.3
BuildRequires:	ncurses-devel
BuildRequires:	readline-devel >= 4.2
BuildRequires:	texinfo
Requires(post,postun):/sbin/ldconfig
BuildRoot:	%{_tmppath}/%{name}-%{version}-root-%(id -u -n)
Obsoletes:	ruby-doc

%description
Ruby is the interpreted scripting language for quick and easy
object-oriented programming. It has many features to process text
files and to do system management tasks (as in Perl). It is simple,
straight-forward, extensible, and portable.

%description -l ja
Rubyはシンプルかつ強力なオブジェクト指向スクリプト言語です.Rubyは最初
から純粋なオブジェクト指向言語として設計されていますから,オブジェクト
指向プログラミングを手軽に行う事が出来ます.もちろん通常の手続き型のプ
ログラミングも可能です.

Rubyはテキスト処理関係の能力などに優れ,Perlと同じくらい強力です.さら
にシンプルな文法と,例外処理やイテレータなどの機構によって,より分かり
やすいプログラミングが出来ます.

%description -l pl
Ruby to interpretowany j?zyk skryptowy, w sam raz dla ?atwego i
szybkiego pisania zorientowanych obiektowo program?w. Ma wiele funkcji
u?atwiaj?cych przetwarzanie plik?w tekstowych i wykonywanie prac
zwi?zanych z zarz?dzaniem systemu (podobnie jak Perl). Jest prosty,
rozszerzalny i przeno?ny.

%description -l pt_BR
Ruby ? uma linguagem de script interpretada de programa艫o
orientada a objeto. Possui diversas caracter?sticas para
processamento de texto. ? simples, extens?vel e direta.

%package devel
Group:		Development/Languages
Summary:	Ruby development libraries

%description devel
Ruby development libraries

%prep
%setup -q -a1 -a2 -a3 -n ruby-1.8.0

perl -pi -e "s#local/bin/ruby#bin/ruby#" sample/*

%build
%{__autoconf}
%configure --enable-shared CFLAGS='-O0 -g -pipe'

%{__make}

%{__make} info -C %{name}-texi-1.4-en

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_infodir},%{_mandir}/man1,%{_defaultdocdir}/%{name}-%{version}}

%{__make} install DESTDIR=$RPM_BUILD_ROOT

install sample/* $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-%{version}
install %{name}-texi-1.4-en/ruby.info* $RPM_BUILD_ROOT%{_infodir}

mv -f ruby-uguide guide
mv -f rubyfaq faq

%clean
rm -rf $RPM_BUILD_ROOT

%post
[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
/sbin/ldconfig

%postun
[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
/sbin/ldconfig

%files
%defattr(644,root,root,755)
%doc guide faq misc README README.EXT ChangeLog ToDo
%attr(755,root,root) %{_bindir}/*
%attr(755,root,root) %{_libdir}/lib*.so.*.*.*
%attr(755,root,root) %{_libdir}/lib*.so
%{_libdir}/%{name}
%{_mandir}/*/*
%{_infodir}/*

%files devel
%attr(644,root,root) %{_libdir}/lib*a

%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <feedback / pld.org.pl>
All persons listed below can be reached at <cvs_login>@pld.org.pl

$Log: ruby.spec,v $
Revision 1.30  2003/04/02 21:16:21  qboosh
- updated to 1.6.8, updated ac25x patch

Revision 1.29  2003/04/02 12:14:51  trojan
- s#local/bin/ruby#bin/ruby#

Revision 1.28  2003/03/31 09:45:51  qboosh
- updated Source1 and Source3 URL

Revision 1.27  2003/03/26 16:44:21  wiget
- rebuild with new gdbm
- release 2

Revision 1.26  2003/01/02 03:18:56  kloczek
- merge translations from MIZI and TurboLinux.

Revision 1.25  2002/12/24 17:15:12  qboosh
- more specific Requires()

Revision 1.24  2002/05/22 20:28:43  qboosh
- added ac25x patch needed for autoconf 2.53
- removed workaround for ac - mkconfig.rb supports ac 2.52 now
- longer info patch, fixed info pages are back
- new %%doc

Revision 1.23  2002/05/21 23:14:40  kloczek
perl -pi -e "s/^automake -a -c -f --foreing/\%\{__automake\}/; \
             s/^automake -a -c -f/\%\{__automake\}/; \
	     s/^autoconf/\%\{__autoconf\}/"

Revision 1.22  2002/05/20 07:50:36  pioklo
- up to 1.6.7,STBR

Revision 1.21  2002/05/20 07:07:42  pioklo
-up to 1.6.7,STBR

Revision 1.20  2002/05/18 20:26:41  mmazur
- fixed error while building docs (that is turned of building docs :)
though they seem to build anyhow. Well... no matah... STBR.
- P.S. I'm not responsible... bite rmf if you don't like this "fix" :)

Revision 1.19  2002/02/23 04:32:21  kloczek
- adapterized.

Revision 1.18  2002/02/22 23:29:42  kloczek
- removed all Group fields translations (oure rpm now can handle translating
  Group field using gettext).

Revision 1.17  2002/01/18 02:14:50  kloczek
perl -pi -e "s/pld-list\@pld.org.pl/feedback\@pld.org.pl/"

Revision 1.16  2002/01/03 05:28:10  kloczek
- updated to 1.6.6 (bug fix release),
- new Source url.

Revision 1.15  2002/01/03 04:47:13  kloczek
- release 5: ruby-doc added to Obsoletes for allow upgrade from MDK.

Revision 1.14  2001/09/08 19:11:55  kloczek
- release 4.

Revision 1.13  2001/09/08 18:27:36  qboosh
- added workaround for syntax errors on rbconfig.rb processing

Revision 1.12  2001/09/06 23:13:47  kloczek
- removed double listed files.

Revision 1.11  2001/09/06 22:31:04  kloczek
- bump release to release 3,
- added irb(1) man page (stolen from RH resources).

Revision 1.10  2001/09/06 22:20:42  kloczek
- updated to 1.6.4,
- regenerate ac files,
- removed obsoletes readline patch.

Revision 1.9  2001/07/27 20:22:32  migo
'- added missing (pl) in pl Summary'

Revision 1.8  2001/07/26 05:42:23  saq
- reverting last change: removing new macros from %p{re,ost}{,un}

Revision 1.6  2001/07/23 18:37:00  migo
- added pl summary and/or description

Revision 1.5  2001/04/13 16:32:15  wiget
add patch to compile with readline 4.2; release 2

Revision 1.4  2001/03/29 07:58:45  mis
- autoupdated to 1.6.3

Revision 1.3  2001/02/15 21:18:40  kloczek
- added /sbin/ldconfig to Prereq,
- added info patch with ruby info index entry fixes (added texinfo to
  BuildRequires),
- few small cosmetics.
NOTE: IMHO some files and dosumentations can be separated into devel
subpackage.

Revision 1.2  2001/02/15 17:35:23  qboosh
- BuildRequires: gdbm-devel
- removed XFree86-devel and tcl-devel from BR (tk-devel implies them)

Revision 1.1  2000/12/30 15:46:59  mis
- initial PLD version

* Wed Nov 22 2000 Tim Powers <timp / redhat.com>
- initial build for Powertools
=====================================================================================


John Carter                             Phone : (64)(3) 358 6639
Tait Electronics                        Fax   : (64)(3) 359 4632
PO Box 1645 Christchurch                Email : john.carter / tait.co.nz
New Zealand

A Million Monkeys can inflict worse things than just Shakespeare on
your system.