rubygem-gem2rpm/0008-dont-allow-suffixes-with-just-a-plain-number.-prefix.patch
Marcus Rueckert acbd130355 Accepting request 253104 from home:darix:ruby
- added ruby 1.9 support

- added ruby 1.8 support
- also guarded the 2.1 part

- added 0008-dont-allow-suffixes-with-just-a-plain-number.-prefix.patch 
  Dont allow an suffix with just a plain number. prefix it with
  ruby.

- added ruby 2.0 support

OBS-URL: https://build.opensuse.org/request/show/253104
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/rubygem-gem2rpm?expand=0&rev=2
2014-09-29 13:29:31 +00:00

28 lines
948 B
Diff

From 078c5914e4374ee4fec369f188eb89876e09aad1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marcus=20R=C3=BCckert?= <mrueckert@suse.de>
Date: Wed, 17 Sep 2014 16:50:21 +0200
Subject: [PATCH 8/8] dont allow suffixes with just a plain number. prefix them
with ruby.
---
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
index 5b02f2c..63078ef 100644
--- 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\./, '')
+ if rb_suffix =~ /\d+\.\d+/
+ rb_suffix = '.ruby' + rb_suffix
+ end
pkg_basename = rb_pkgname + '-rubygem-' + spec.name
mod_full_name = "#{spec.name}-#{spec.version}"
--
2.1.0