[rubygem-Ascii85] on rhel6 require ruby 1.8

Miroslav Suchý msuchy at fedoraproject.org
Wed Mar 13 15:43:59 UTC 2013


commit 2948bcebd09af80544e1fbb44df579617337184b
Author: Miroslav Suchý <msuchy at redhat.com>
Date:   Wed Mar 13 16:43:50 2013 +0100

    on rhel6 require ruby 1.8

 rubygem-Ascii85.spec |   18 +++++++-----------
 1 files changed, 7 insertions(+), 11 deletions(-)
---
diff --git a/rubygem-Ascii85.spec b/rubygem-Ascii85.spec
index d0a3b9e..77739a7 100644
--- a/rubygem-Ascii85.spec
+++ b/rubygem-Ascii85.spec
@@ -10,7 +10,7 @@
 Summary: Methods to encode/decode Adobe's binary-to-text encoding of the same name
 Name: rubygem-%{gem_name}
 Version: 1.0.2
-Release: 2%{?dist}
+Release: 3%{?dist}
 Group: Development/Languages
 License: MIT
 URL: http://ascii85.rubyforge.org/
@@ -18,10 +18,10 @@ Source0: http://rubygems.org/downloads/%{gem_name}-%{version}.gem
 #retrieved from http://rubyforge.org/tracker/index.php?func=detail&aid=29377&group_id=7826&atid=30313
 Source1: ascii85.1.pod.tgz 
 
-%if 0%{?rhel} == 6 || 0%{?fedora} < 17
+%if 0%{?rhel} == 6
 Requires: ruby(abi) = 1.8
 %else
-Requires: ruby(abi) = 1.9.1
+Requires: ruby(release)
 %endif
 %if 0%{?fedora}
 BuildRequires: rubygems-devel
@@ -50,18 +50,11 @@ gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
 tar zxvf %{SOURCE1}
 
 %build
-mkdir -p .%{gem_dir}
 
 # without -KU, it fails with: invalid byte sequence in US-ASCII
 RUBYOPT="-KU" gem build %{gem_name}.gemspec
 
-gem install -V \
-        --local \
-        --install-dir ./%{gem_dir} \
-        --bindir ./%{_bindir} \
-        --force \
-        --rdoc \
-        %{gem_name}-%{version}.gem
+%gem_install
 
 pod2man --center "" --release "" --name ASCII85 --utf8 --section=1 ascii85.1.pod ascii85.1
 
@@ -103,6 +96,9 @@ popd
 %{gem_instdir}/spec
 
 %changelog
+* Wed Mar 13 2013 Miroslav Suchý <msuchy at redhat.com> - 1.0.2-3
+- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
+
 * Thu Feb 14 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0.2-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
 


More information about the scm-commits mailing list