From 21e3c8f22fc6a63cf12297907f39d421d42692c6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <vondruch@redhat.com>
Date: Thu, 24 Jan 2013 16:08:55 +0100
Subject: [PATCH] Rename ruby executable to ruby-mri, to be prepared for
 RubyPick.

---
 ruby.spec | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/ruby.spec b/ruby.spec
index 1f88f89..7fb7504 100644
--- a/ruby.spec
+++ b/ruby.spec
@@ -407,10 +407,8 @@ make %{?_smp_mflags} COPY="cp -p" Q=
 rm -rf %{buildroot}
 make install DESTDIR=%{buildroot}
 
-# On F-18 and below, also provide %%{hame}-%%{major_minor_version}.pc
-%if 0%{?fedora} <= 18
-cp -p %{buildroot}%{_libdir}/pkgconfig/%{name}{,-%{major_minor_version}}.pc
-%endif
+# Rename the ruby executable. It is replaced by RubyPick.
+mv %{buildroot}%{_bindir}/%{name}{,-mri}
 
 # Dump the macros into macro.ruby to use them to build other Ruby libraries.
 mkdir -p %{buildroot}%{_sysconfdir}/rpm
@@ -551,7 +549,7 @@ make check TESTS="-v $DISABLE_TESTS"
 %doc GPL
 %doc LEGAL
 %{_bindir}/erb
-%{_bindir}/ruby
+%{_bindir}/%{name}-mri
 %{_bindir}/testrb
 %{_mandir}/man1/erb*
 %{_mandir}/man1/ruby*