[rubygem-hashery] Use %gem_install macro.

Vít Ondruch vondruch at fedoraproject.org
Mon Mar 18 13:42:21 UTC 2013


commit 0b744d80536127059a1dee8dd82a4ee617687e87
Author: Vít Ondruch <vondruch at redhat.com>
Date:   Mon Mar 18 14:34:45 2013 +0100

    Use %gem_install macro.

 rubygem-hashery.spec |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/rubygem-hashery.spec b/rubygem-hashery.spec
index 5aafaca..500494f 100644
--- a/rubygem-hashery.spec
+++ b/rubygem-hashery.spec
@@ -3,7 +3,7 @@
 Summary: Facets bread collection of Hash-like classes
 Name: rubygem-%{gem_name}
 Version: 2.1.0
-Release: 1%{?dist}
+Release: 2%{?dist}
 Group: Development/Languages
 License: MIT
 URL: http://rubyworks.github.com/hashery
@@ -34,9 +34,7 @@ Documentation for %{name}
 %build
 
 %install
-mkdir -p %{buildroot}%{gem_dir}
-gem install --local --install-dir %{buildroot}%{gem_dir} \
-            --force --rdoc %{SOURCE0}
+%gem_install -n %{SOURCE0} -d %{buildroot}%{gem_dir}
 
 %files
 %dir %{gem_instdir}
@@ -59,6 +57,9 @@ gem install --local --install-dir %{buildroot}%{gem_dir} \
 %doc %{gem_instdir}/NOTICE.txt
 
 %changelog
+* Mon Mar 18 2013 Vít Ondruch <vondruch at redhat.com> - 2.1.0-2
+- Use %%gem_install macro.
+
 * Sat Mar 16 2013 Marek Goldmann <mgoldman at redhat.com> - 2.1.0-1
 - Upstream release 2.1.0
 - New guidelines


More information about the scm-commits mailing list