[rubygem-cinch] Updated the specfile for the current Ruby packaging guidelines.

Darryl L. Pierce mcpierce at fedoraproject.org
Mon Mar 11 18:10:40 UTC 2013


commit 296f970a586526a2ceba2e61f814ff17222ecbb9
Author: Darryl L. Pierce <dpierce at redhat.com>
Date:   Mon Mar 11 14:10:28 2013 -0400

    Updated the specfile for the current Ruby packaging guidelines.

 rubygem-cinch.spec |   18 ++++++++++++++----
 1 files changed, 14 insertions(+), 4 deletions(-)
---
diff --git a/rubygem-cinch.spec b/rubygem-cinch.spec
index 3718bd7..d216862 100644
--- a/rubygem-cinch.spec
+++ b/rubygem-cinch.spec
@@ -13,10 +13,20 @@ Source0:       http://rubygems.org/gems/%{gem_name}-%{version}.gem
 
 BuildArch:     noarch
 
+%if 0%{?fedora} >= 19
+BuildRequires: ruby(release)
+%else
 BuildRequires: ruby(abi) = %{rubyabi}
+BuildRequires: ruby
+%endif
 BuildRequires: rubygems-devel
 
+%if 0%{?fedora} >= 19
+Requires:      ruby(release)
+%else
 Requires:      ruby(abi) = %{rubyabi}
+Requires:      ruby
+%endif
 Requires:      rubygems
 
 Provides:      rubygem(%{gem_name}) = %{version}
@@ -48,10 +58,7 @@ gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
 %build
 gem build %{gem_name}.gemspec
 
-gem install --local \
-            --install-dir .%{gem_dir} \
-            --force \
-            %{gem_name}-%{version}.gem
+%gem_install
 
 
 %install
@@ -77,6 +84,9 @@ rm %{buildroot}%{gem_instdir}/lib/cinch/#syncable.rb#
 %doc %{gem_instdir}/README.md
 
 %changelog
+* Mon Mar 11 2013 Darryl L. Pierce <dpierce at redhat.com> - 2.0.4-1.1
+- Updated the specfile for the current Ruby packaging guidelines.
+
 * Wed Feb  6 2013 Darryl L. Pierce <dpierce at redhat.com> - 2.0.4-1
 - Rebased on release 2.0.4.
 


More information about the scm-commits mailing list