Skip to content

Commit

Permalink
use unversioned noarch site/vendor dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed May 1, 2014
1 parent 2a66c8d commit 08c2f6e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion empty-ruby-version.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
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
Expand Down
15 changes: 6 additions & 9 deletions ruby.spec
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
%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
Expand Down Expand Up @@ -119,16 +119,14 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)

# 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}
Expand Down Expand Up @@ -507,7 +505,7 @@ rm -rf $RPM_BUILD_ROOT
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
Expand Down Expand Up @@ -559,8 +557,6 @@ rm -rf $RPM_BUILD_ROOT

%dir %{ruby_libdir}
%dir %{ruby_archdir}
%dir %{ruby_vendordir}
#%dir %{ruby_vendordir}/data
%dir %{ruby_vendorlibdir}
%dir %{ruby_vendorarchdir}

Expand All @@ -571,7 +567,8 @@ rm -rf $RPM_BUILD_ROOT
#%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
Expand Down

0 comments on commit 08c2f6e

Please sign in to comment.