[rubygem-kgio/f19] fixes for ruby 2.0.0

Guillermo Gómez gomix at fedoraproject.org
Sun Mar 24 01:51:23 UTC 2013


commit 4f4568f46fc0197e7f2ed912734910c5fcc202c7
Author: Guillermo Gómez <gomix at fedoraproject.org>
Date:   Sat Mar 23 21:21:10 2013 -0430

    fixes for ruby 2.0.0

 rubygem-kgio.spec |   23 ++++++++++++++++++++---
 1 files changed, 20 insertions(+), 3 deletions(-)
---
diff --git a/rubygem-kgio.spec b/rubygem-kgio.spec
index f1eb582..b3b9fac 100644
--- a/rubygem-kgio.spec
+++ b/rubygem-kgio.spec
@@ -2,10 +2,18 @@
 
 %global rubyabi 1.9.1
 
+%if 0%{?fedora} >= 17
+  %global rubyabi 1.9.1
+%endif
+
+%if 0%{?fedora} >= 19
+  %global rubyabi 2.0.0
+%endif
+
 Summary:       Kinder, gentler I/O for Ruby
 Name:          rubygem-%{gem_name}
 Version:       2.8.0
-Release:       1%{?dist}
+Release:       2%{?dist}
 Group:         Development/Tools
 License:       LGPLv2 or LGPLv3
 # LICENSE file defines the licencing aspects of kgiox.
@@ -13,12 +21,18 @@ License:       LGPLv2 or LGPLv3
 URL:           http://bogomips.org/kgio
 Source0:       http://rubygems.org/downloads/%{gem_name}-%{version}.gem
 BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Requires:      ruby
+
+%if 0%{?fedora} >= 19
+Requires:       ruby(release)
+%endif
+
+%if 0%{?fedora} >= 17 && 0%{?fedora} < 19
 Requires:      ruby(abi) = %{rubyabi}
 Requires:      ruby(rubygems) 
+%endif
+
 BuildRequires: ruby 
 BuildRequires: ruby(abi) = %{rubyabi}
-BuildRequires: ruby(rubygems) 
 BuildRequires: ruby-devel
 BuildRequires: ruby-irb
 BuildRequires: rubygems-devel
@@ -110,6 +124,9 @@ rm -rf %{buildroot}
 %{gem_instdir}/lib/kgio.rb
 
 %changelog
+* Sat Mar 23 2013 Guillermo Gómez <guillermo.gomez at gmail.com> - 2.8.0-2
+- Fixes for Ruby 2.0.0 packaging guidelines
+
 * Sun Feb 10 2013 Guillermo Gómez <guillermo.gomez at gmail.com> - 2.8.0-1
 - Update version 2.8.0
 


More information about the scm-commits mailing list