From bd8ff02f0437a12593ccb7874d8e9f9c3b90bc8e Mon Sep 17 00:00:00 2001 From: Steve Traylen Date: Thu, 25 Sep 2014 19:49:15 +0000 Subject: [PATCH] Add enable_check flag and disable check for .el7. --- rubygem-rack.spec | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/rubygem-rack.spec b/rubygem-rack.spec index c17473b..f6b4b91 100644 --- a/rubygem-rack.spec +++ b/rubygem-rack.spec @@ -3,12 +3,20 @@ # There is circular dependency between thin and rack. %global bootstrap_thin 1 +# rubygem-bacon missing for epel7 +# https://bugzilla.redhat.com/show_bug.cgi?id=1138661 +%if 0%{?el7} +%global enable_checks 0 +%else +%global enable_checks 1 +%endif + Name: rubygem-%{gem_name} Summary: Common API for connecting web frameworks, web servers and layers of software # Introduce Epoch (related to bug 552972) Epoch: 1 Version: 1.5.2 -Release: 3%{?dist} +Release: 4%{?dist} Group: Development/Languages # lib/rack/backports/uri/* are taken from Ruby which is (Ruby or BSD) License: MIT and (Ruby or BSD) @@ -18,9 +26,11 @@ Requires: ruby(rubygems) Requires: ruby(release) BuildRequires: ruby BuildRequires: rubygems-devel +%if 0%{?enable_checks} BuildRequires: rubygem(bacon) BuildRequires: memcached BuildRequires: rubygem(memcache-client) +%endif %if 0%{bootstrap_thin} < 1 BuildRequires: rubygem(thin) %endif @@ -73,6 +83,7 @@ for file in `find %{buildroot}%{gem_instdir} -type f`; do [ ! -z "`head -n 1 $file | grep \"^#!\"`" ] && chmod -v 755 $file done +%if 0%{?enable_checks} %check pushd .%{gem_instdir} @@ -86,6 +97,7 @@ bacon -Ilib --automatic --quiet kill -TERM $(< "$PID") popd +%endif #end of checks. %files %dir %{gem_instdir} @@ -107,8 +119,10 @@ popd %{gem_instdir}/test %doc %{gem_instdir}/contrib - %changelog +* Thu Sep 25 2014 Steve Traylen - 1:1.5.2-4 +- Add enable_check flag and disable check for .el7. + * Sun Jun 08 2014 Fedora Release Engineering - 1:1.5.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild