2014-10-13 16:00:09 +02:00
|
|
|
From 3bd29ca337636665ecca5b68590d0c32fd11e92d Mon Sep 17 00:00:00 2001
|
2014-09-29 15:29:31 +02:00
|
|
|
From: =?UTF-8?q?Marcus=20R=C3=BCckert?= <mrueckert@suse.de>
|
|
|
|
Date: Wed, 17 Sep 2014 16:50:21 +0200
|
2014-10-13 16:00:09 +02:00
|
|
|
Subject: [PATCH 08/10] dont allow suffixes with just a plain number. prefix
|
|
|
|
them with ruby.
|
2014-09-29 15:29:31 +02:00
|
|
|
|
|
|
|
---
|
|
|
|
templates/sles12.gem_packages.spec.erb | 3 +++
|
|
|
|
1 file changed, 3 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/templates/sles12.gem_packages.spec.erb b/templates/sles12.gem_packages.spec.erb
|
2014-10-13 16:00:09 +02:00
|
|
|
index 5b02f2c..e148494 100644
|
2014-09-29 15:29:31 +02:00
|
|
|
--- a/templates/sles12.gem_packages.spec.erb
|
|
|
|
+++ b/templates/sles12.gem_packages.spec.erb
|
|
|
|
@@ -49,6 +49,9 @@
|
|
|
|
|
|
|
|
rb_suffix = RbConfig::CONFIG['ruby_install_name'].gsub(/^ruby/, '')
|
|
|
|
rb_pkgname = RbConfig::CONFIG['ruby_install_name'].gsub(/^ruby\./, '')
|
2014-10-13 16:00:09 +02:00
|
|
|
+ if rb_suffix =~ /\A\d+\.\d+\z/
|
2014-09-29 15:29:31 +02:00
|
|
|
+ rb_suffix = '.ruby' + rb_suffix
|
|
|
|
+ end
|
|
|
|
pkg_basename = rb_pkgname + '-rubygem-' + spec.name
|
|
|
|
|
|
|
|
mod_full_name = "#{spec.name}-#{spec.version}"
|
|
|
|
--
|
2014-10-13 16:00:09 +02:00
|
|
|
1.8.4.5
|
2014-09-29 15:29:31 +02:00
|
|
|
|