[rubygem-rhc] Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0

Vít Ondruch vondruch at fedoraproject.org
Tue Mar 19 13:00:17 UTC 2013


commit 4e947edb3ac403b2669375d8643530aeb260f1bc
Author: Vít Ondruch <vondruch at redhat.com>
Date:   Tue Mar 19 13:55:09 2013 +0100

    Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0

 rubygem-rhc.spec |   31 ++++++++++---------------------
 1 files changed, 10 insertions(+), 21 deletions(-)
---
diff --git a/rubygem-rhc.spec b/rubygem-rhc.spec
index e340772..5d5836e 100644
--- a/rubygem-rhc.spec
+++ b/rubygem-rhc.spec
@@ -1,25 +1,19 @@
 %global gem_name rhc
-  
-%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:       OpenShift Express Client Tools
 Name:          rubygem-%{gem_name}
 Version:       1.4.8
-Release:       1%{?dist}
+Release:       2%{?dist}
 Group:         Development/Tools
 License:       MIT
 URL:           https://openshift.redhat.com/app/express
 Source0:       http://rubygems.org/downloads/%{gem_name}-%{version}.gem
 BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Requires:      ruby(abi) = %{rubyabi}
+%if 0%{?fedora} >= 19
+Requires:      ruby(release)
+%else
+Requires:      ruby(abi) = 1.9.1
+%endif
 Requires:      ruby(rubygems)
 Requires:      rubygem-archive-tar-minitar
 Requires:      rubygem-commander >= 4.0
@@ -60,22 +54,14 @@ gem unpack %{SOURCE0}
 gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
 
 %build
-mkdir -p .%{gem_dir}
 
 # Create the gem as gem install only works on a gem file
 gem build %{gem_name}.gemspec
 
-export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
 # gem install compiles any C extensions and installs into a directory
 # We set that to be a local directory so that we can move it into the
 # buildroot in %%install
-RHC_RPMBUILD=true gem install -V \
-        --local \
-        --install-dir ./%{gem_dir} \
-        --bindir ./%{_bindir} \
-        --force \
-        --rdoc \
-        %{gem_name}-%{version}.gem
+RHC_RPMBUILD=true %gem_install
 
 %check
 # Run tests
@@ -118,6 +104,9 @@ rm -rf %{buildroot}
 %doc %{gem_docdir}
 
 %changelog
+* Tue Mar 19 2013 Josef Stribny <jstribny at redhat.com> - 1.4.8-2
+- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
+
 * Sun Mar 17 2013 Guillermo Gomez <gomix at fedoraproject.org> - 1.4.8-1
 - Updated to version 1.4.8
 - New dependencies 


More information about the scm-commits mailing list