1
0
rubygem-gem2rpm/0010-Try-to-load-rbconfigpackagingsupport-and-fail-gracef.patch
Stephan Kulow 4005ce317e - more patches from git:
A    0010-Try-to-load-rbconfigpackagingsupport-and-fail-gracef.patch
A    0011-Add-support-for-scripts-pre-post-for-subpackages.patch
A    0012-typo-in-gem2rpm.yml.documentation-custom_pkgs-instea.patch
A    0013-Also-tag-LICENSE-MIT-as-docfile.patch
A    0014-Refactor-into-multiple-lines.patch
A    0015-Add-licence-to-the-list-of-license-files-as-well.patch
A    0016-add-two-more-ways-to-express-changes.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/rubygem-gem2rpm?expand=0&rev=10
2015-02-11 01:24:05 +00:00

29 lines
826 B
Diff

From 953ff66677490c78ceff14afc0365f832079333a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marcus=20R=C3=BCckert?= <darix@nordisch.org>
Date: Tue, 21 Oct 2014 17:55:23 +0200
Subject: [PATCH 10/16] Try to load rbconfigpackagingsupport and fail
gracefully if not available
The file will patch ruby_install_name on unversioned ruby installations.
---
templates/gem_packages.spec.erb | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/templates/gem_packages.spec.erb b/templates/gem_packages.spec.erb
index 29873e5..a6ab58b 100644
--- a/templates/gem_packages.spec.erb
+++ b/templates/gem_packages.spec.erb
@@ -1,4 +1,9 @@
<%
+
+ begin
+ require 'rbconfigpackagingsupport'
+ rescue LoadError => ex
+ end
def self.patch_mod_full_name(path, mod_full_name)
path.gsub(/\/-/, "/#{mod_full_name}")
end
--
2.2.2