[rubygem-rhc] Updated version 1.5.13
Guillermo Gómez
gomix at fedoraproject.org
Sun Mar 24 00:21:06 UTC 2013
commit 8dd8aedb5d70fd4e3dc99f6c79c922c09290da96
Author: Guillermo Gómez <gomix at fedoraproject.org>
Date: Sat Mar 23 19:50:44 2013 -0430
Updated version 1.5.13
.gitignore | 1 +
rubygem-rhc.spec | 49 +++++++++++++++++++++++++++++++++++++++++--------
sources | 2 +-
3 files changed, 43 insertions(+), 9 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 6c59611..bdd9613 100644
--- a/.gitignore
+++ b/.gitignore
@@ -20,3 +20,4 @@
/rhc-1.1.11.gem
/rhc-1.2.7.gem
/rhc-1.4.8.gem
+/rhc-1.5.13.gem
diff --git a/rubygem-rhc.spec b/rubygem-rhc.spec
index 5d5836e..9c42e8f 100644
--- a/rubygem-rhc.spec
+++ b/rubygem-rhc.spec
@@ -1,19 +1,33 @@
%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: 2%{?dist}
+Version: 1.5.13
+Release: 1%{?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)
+
%if 0%{?fedora} >= 19
-Requires: ruby(release)
-%else
-Requires: ruby(abi) = 1.9.1
+Requires: ruby(release)
+%endif
+
+%if 0%{?fedora} >= 17 && 0%{?fedora} < 19
+Requires: ruby(abi) = %{rubyabi}
%endif
+
Requires: ruby(rubygems)
Requires: rubygem-archive-tar-minitar
Requires: rubygem-commander >= 4.0
@@ -54,14 +68,29 @@ 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
+
+%if 0%{?fedora} >= 17 && 0%{?fedora} <= 18
+RHC_RPMBUILD=true gem install -V \
+ --local \
+ --install-dir ./%{gem_dir} \
+ --bindir ./%{_bindir} \
+ --force \
+ --rdoc \
+ %{gem_name}-%{version}.gem
+%endif
+
+%if 0%{?fedora} >= 19
+%gem_install
+%endif
%check
# Run tests
@@ -104,8 +133,12 @@ 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
+* Sat Mar 23 2013 Guillermo Gomez <gomix at fedoraproject.org> - 1.5.13-1
+- Updated to version 1.5.13
+- More spec tweaks for new packaging guidelines for Ruby 2.0.0
+
+* Mon Mar 18 2013 Guillermo Gomez <gomix at fedoraproject.org> - 1.4.8-2
+- Spec fixed according new packaging guidelines for Ruby 2.0.0
* Sun Mar 17 2013 Guillermo Gomez <gomix at fedoraproject.org> - 1.4.8-1
- Updated to version 1.4.8
diff --git a/sources b/sources
index b39ae22..32cd35c 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-2f2ca7477264588d1964d030b8708477 rhc-1.4.8.gem
+6da9bf87f1333ba21fa380ca9e1e6ac4 rhc-1.5.13.gem
More information about the scm-commits
mailing list