Rename ruby executable to ruby-mri, to be prepared for RubyPick.

This commit is contained in:
Vít Ondruch 2013-01-24 16:08:55 +01:00
parent 8a758df481
commit 21e3c8f22f

View File

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