From 8d40981eadddb8e368dda38f142dbc13e8f16951 Mon Sep 17 00:00:00 2001 From: Guillermo Gómez Date: Sat, 23 Mar 2013 21:19:32 -0430 Subject: fixes for ruby 2.0.0 --- rubygem-kgio.spec | 23 ++++++++++++++++++++--- 1 file 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 - 2.8.0-2 +- Fixes for Ruby 2.0.0 packaging guidelines + * Sun Feb 10 2013 Guillermo Gómez - 2.8.0-1 - Update version 2.8.0 -- cgit