[rubygem-excon/epel7] Update spec to work in EPEL7

tdawson tdawson at fedoraproject.org
Fri Dec 19 19:56:27 UTC 2014


commit 7006a203bf62230f6203aa298464d91370b73f30
Author: Troy Dawson <tdawson at redhat.com>
Date:   Fri Dec 19 13:56:19 2014 -0600

    Update spec to work in EPEL7

 rubygem-excon.spec |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/rubygem-excon.spec b/rubygem-excon.spec
index ae20392..fa785be 100644
--- a/rubygem-excon.spec
+++ b/rubygem-excon.spec
@@ -1,4 +1,5 @@
 %global gem_name excon
+%global need_bootstrap 1
 
 Summary: Http(s) EXtended CONnections
 Name: rubygem-%{gem_name}
@@ -8,9 +9,12 @@ Group: Development/Languages
 License: MIT
 URL: https://github.com/geemus/excon
 Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
+Requires: ruby(release)
+Requires: ruby(rubygems)
 Requires: ca-certificates
 BuildRequires: rubygems-devel
 BuildRequires: ca-certificates
+%if 0%{?need_bootstrap} < 1
 # For the tests
 BuildRequires: rubygem(activesupport)
 BuildRequires: rubygem(delorean)
@@ -18,7 +22,9 @@ BuildRequires: rubygem(open4)
 BuildRequires: rubygem(shindo)
 BuildRequires: rubygem(sinatra)
 BuildRequires: rubygem(eventmachine)
+%endif
 BuildArch: noarch
+Provides: rubygem(%{gem_name}) = %{version}
 
 %description
 EXtended http(s) CONnections
@@ -47,6 +53,7 @@ ln -sf %{_sysconfdir}/pki/tls/cert.pem \
        %{buildroot}%{gem_instdir}/data/cacert.pem
 
 %check
+%if 0%{?need_bootstrap} < 1
 pushd .%{gem_instdir}
 # Don't use Bundler.
 sed -i "/'bundler\/setup'/ s/^/#/" tests/test_helper.rb
@@ -56,6 +63,7 @@ sed -i '/with_unicorn/ s/^/  pending\n\n/' tests/basic_tests.rb
 
 shindo
 popd
+%endif
 
 %files
 %dir %{gem_instdir}
@@ -78,6 +86,9 @@ popd
 
 
 %changelog
+* Fri Dec 19 2014 Troy Dawson <tdawson at redhat.com> - 0.8.0-9
+- Update spec to work in EPEL7
+
 * Mon Sep 29 2014 Brett Lentz <blentz at redhat.com> - 0.39.6-1
 - Update to excon 0.39.6.
 


More information about the scm-commits mailing list