[rubygem-aeolus-image/f17] use new ruby 1.9 macros

Mo Morsi mmorsi at fedoraproject.org
Mon May 7 16:33:31 UTC 2012


commit 28b431697536fce5b4a534878c7f334cdd625f51
Author: Mo Morsi <mmorsi at redhat.com>
Date:   Mon May 7 18:31:40 2012 +0200

    use new ruby 1.9 macros

 rubygem-aeolus-image.spec |   22 +++++++++++++++++-----
 sources                   |    2 +-
 2 files changed, 18 insertions(+), 6 deletions(-)
---
diff --git a/rubygem-aeolus-image.spec b/rubygem-aeolus-image.spec
index 61af785..72783f2 100644
--- a/rubygem-aeolus-image.spec
+++ b/rubygem-aeolus-image.spec
@@ -1,17 +1,21 @@
-%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
-%global gemname aeolus-image
-%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
 %if 0%{?fedora} > 16
 %global rubyabi 1.9.1
+%global gem_name aeolus-image
+%global gemname %{gem_name}
+%global geminstdir %{gem_instdir}
+%global gemdir %{gem_dir}
 %else
 %global rubyabi 1.8
+%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
+%global gemname aeolus-image
+%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
 %endif
 
 
 Summary: Ruby Client for interacting with Image Warehouse and Image Factory
 Name: rubygem-aeolus-image
 Version: 0.4.0
-Release: 1%{?dist}
+Release: 2%{?dist}
 Group: Development/Languages
 License: ASL 2.0
 URL: http://aeolusproject.org
@@ -27,6 +31,10 @@ Requires: rubygem(oauth)
 BuildRequires: ruby
 BuildRequires: rubygems
 
+%if 0%{?fedora} > 16
+BuildRequires: rubygems-devel
+%endif
+
 BuildArch: noarch
 Provides: rubygem(%{gemname}) = %{version}
 
@@ -58,8 +66,12 @@ rm -rf %{buildroot}%{gemdir}/gems/%{gemname}-%{version}/.yardoc
 %{gemdir}/specifications/%{gemname}-%{version}.gemspec
 
 %changelog
-* Wed Feb 15 2012 Mo Morsi <mmorsi at redhat.com> - 0.3.0-3
+* Mon May 07 2012 Mo Morsi <mmorsi at redhat.com> - 0.4.0-2
+- fixed spec to use new ruby 1.9 macros
+
+* Mon May 07 2012 Mo Morsi <mmorsi at redhat.com> - 0.4.0-1
 - updated to ruby 1.9
+- new upstream release
 
 * Mon Jan 09 2012 Steve Linabery <slinaber at redhat.com> - 0.3.0-2
 - d0624e1 Add provider_account-filtered 'provider images' method to build model
diff --git a/sources b/sources
index 92d20ba..1db4cc5 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-836cfec36bc81721a066f2dffc22b81f  aeolus-image-0.4.0.gem
+7f254ae884e12e8e64de309960309e32  aeolus-image-0.4.0.gem


More information about the scm-commits mailing list