summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillermo Gómez <gomix@fedoraproject.org>2013-03-23 21:19:32 -0430
committerGuillermo Gómez <gomix@fedoraproject.org>2013-03-23 21:19:32 -0430
commit8d40981eadddb8e368dda38f142dbc13e8f16951 (patch)
treecb2685593361e6b7c1c5cbedd1951b3b5e71126d
parent1e565cadd53fa94a50c2619d4cc4de54c95be5f3 (diff)
downloadrubygem-kgio-8d40981eadddb8e368dda38f142dbc13e8f16951.tar.gz
rubygem-kgio-8d40981eadddb8e368dda38f142dbc13e8f16951.tar.xz
rubygem-kgio-8d40981eadddb8e368dda38f142dbc13e8f16951.zip
fixes for ruby 2.0.0
-rw-r--r--rubygem-kgio.spec23
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@gmail.com> - 2.8.0-2
+- Fixes for Ruby 2.0.0 packaging guidelines
+
* Sun Feb 10 2013 Guillermo Gómez <guillermo.gomez@gmail.com> - 2.8.0-1
- Update version 2.8.0