From c9b2eff36728266052ccfff54d3ac0a0624fd0f1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <vondruch@redhat.com>
Date: Thu, 14 Feb 2013 11:50:41 +0100
-Subject: [PATCH] Use File.join insteado of manual path creation.
+Subject: [PATCH 1/2] Use File.join insteado of manual path creation.
This prevents issues, when File.join in #new_default_spec removes
superfluous slashes while they are kept in expected paths. E.g. the test
%bcond_without default_ruby # use this Ruby as default system Ruby
%bcond_with bootstrap # build bootstrap version
-%define rel 0.4
+%define rel 0.5
%define ruby_version 2.0
%define basever 2.0.0
%define patchlevel 451
# This is the local lib/arch and should not be used for packaging.
%define sitedir site_ruby
-%define ruby_sitedir %{_prefix}/local/share/%{oname}/%{sitedir}
%define ruby_sitearchdir %{_prefix}/local/%{_lib}/%{oname}/%{sitedir}/%{ruby_version}
-%define ruby_sitelibdir %{_prefix}/local/share/%{oname}/%{sitedir}/%{ruby_version}
+%define ruby_sitelibdir %{_prefix}/local/share/%{oname}/%{sitedir}
# This is the general location for libs/archs compatible with all
# or most of the Ruby versions available in the PLD repositories.
%define vendordir vendor_ruby
-%define ruby_vendordir %{_datadir}/%{oname}/%{vendordir}
%define ruby_vendorarchdir %{_libdir}/%{oname}/%{vendordir}/%{ruby_version}
-%define ruby_vendorlibdir %{_datadir}/%{oname}/%{vendordir}/%{ruby_version}
+%define ruby_vendorlibdir %{_datadir}/%{oname}/%{vendordir}
# TODO: drop legacy loadpaths after all ruby modules rebuilt in Th
%define legacy_libdir %{_libdir}/%{oname}/%{ruby_version}
install -d $RPM_BUILD_ROOT{%{ruby_rdocdir},%{ruby_ridir}} \
$RPM_BUILD_ROOT%{ruby_vendorarchdir} \
$RPM_BUILD_ROOT%{ruby_vendorlibdir}/net \
- $RPM_BUILD_ROOT%{ruby_vendordir}/data \
+ $RPM_BUILD_ROOT%{ruby_vendorlibdir}/data \
%{__make} install %{?with_doc:install-doc} \
DESTDIR=$RPM_BUILD_ROOT
%dir %{ruby_libdir}
%dir %{ruby_archdir}
-%dir %{ruby_vendordir}
-#%dir %{ruby_vendordir}/data
%dir %{ruby_vendorlibdir}
%dir %{ruby_vendorarchdir}
#%dir %{ruby_rdocdir}
# common dirs for ruby vendor modules
-#%dir %{ruby_vendorlibdir}/net
+%dir %{ruby_vendorlibdir}/data
+%dir %{ruby_vendorlibdir}/net
%if 0
# legacy dirs. when everything rebuilt in Th not using these dirs. drop them