[rubygem-foreigner/f19] Updated the specifle to meet current Ruby packaging guidelines.

Darryl L. Pierce mcpierce at fedoraproject.org
Wed Mar 13 18:51:22 UTC 2013


commit b1f7aeaa5c8aaaa6e085590254b9846225f09e9f
Author: Darryl L. Pierce <dpierce at redhat.com>
Date:   Wed Mar 13 14:34:41 2013 -0400

    Updated the specifle to meet current Ruby packaging guidelines.

 rubygem-foreigner.spec |   22 ++++++++++++++++------
 1 files changed, 16 insertions(+), 6 deletions(-)
---
diff --git a/rubygem-foreigner.spec b/rubygem-foreigner.spec
index 8fb0429..f177958 100644
--- a/rubygem-foreigner.spec
+++ b/rubygem-foreigner.spec
@@ -15,9 +15,21 @@ Provides:      rubygem(%{gem_name}) = %{version}
 
 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
 Requires:      rubygem(activerecord) >= 3.0.0
 
@@ -48,12 +60,7 @@ gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
 %build
 gem build %{gem_name}.gemspec
 
-gem install --local \
-            --install-dir .%{gem_dir} \
-            --force \
-            --rdoc \
-            %{gem_name}-%{version}.gem
-
+%gem_install
 
 %install
 mkdir -p %{buildroot}%{gem_dir}
@@ -76,6 +83,9 @@ cp -a ./%{gem_dir}/* %{buildroot}%{gem_dir}/
 
 
 %changelog
+* Wed Mar 13 2013 Darryl L. Pierce <dpierce at redhat.com> - 1.4.0-2
+- Updated the specifle to meet current Ruby packaging guidelines.
+
 * Tue Feb 26 2013 Darryl L. Pierce <dpierce at redhat.com> - 1.4.0-1
 - Rebased on Foreigner 1.4.0.
 


More information about the scm-commits mailing list