Add enable_check flag and disable check for .el7.

epel9
Steve Traylen 10 years ago
parent d97b136eb4
commit bd8ff02f04

@ -3,12 +3,20 @@
# There is circular dependency between thin and rack. # There is circular dependency between thin and rack.
%global bootstrap_thin 1 %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} Name: rubygem-%{gem_name}
Summary: Common API for connecting web frameworks, web servers and layers of software Summary: Common API for connecting web frameworks, web servers and layers of software
# Introduce Epoch (related to bug 552972) # Introduce Epoch (related to bug 552972)
Epoch: 1 Epoch: 1
Version: 1.5.2 Version: 1.5.2
Release: 3%{?dist} Release: 4%{?dist}
Group: Development/Languages Group: Development/Languages
# lib/rack/backports/uri/* are taken from Ruby which is (Ruby or BSD) # lib/rack/backports/uri/* are taken from Ruby which is (Ruby or BSD)
License: MIT and (Ruby or BSD) License: MIT and (Ruby or BSD)
@ -18,9 +26,11 @@ Requires: ruby(rubygems)
Requires: ruby(release) Requires: ruby(release)
BuildRequires: ruby BuildRequires: ruby
BuildRequires: rubygems-devel BuildRequires: rubygems-devel
%if 0%{?enable_checks}
BuildRequires: rubygem(bacon) BuildRequires: rubygem(bacon)
BuildRequires: memcached BuildRequires: memcached
BuildRequires: rubygem(memcache-client) BuildRequires: rubygem(memcache-client)
%endif
%if 0%{bootstrap_thin} < 1 %if 0%{bootstrap_thin} < 1
BuildRequires: rubygem(thin) BuildRequires: rubygem(thin)
%endif %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 [ ! -z "`head -n 1 $file | grep \"^#!\"`" ] && chmod -v 755 $file
done done
%if 0%{?enable_checks}
%check %check
pushd .%{gem_instdir} pushd .%{gem_instdir}
@ -86,6 +97,7 @@ bacon -Ilib --automatic --quiet
kill -TERM $(< "$PID") kill -TERM $(< "$PID")
popd popd
%endif #end of checks.
%files %files
%dir %{gem_instdir} %dir %{gem_instdir}
@ -107,8 +119,10 @@ popd
%{gem_instdir}/test %{gem_instdir}/test
%doc %{gem_instdir}/contrib %doc %{gem_instdir}/contrib
%changelog %changelog
* Thu Sep 25 2014 Steve Traylen <steve.traylen@cern.ch> - 1:1.5.2-4
- Add enable_check flag and disable check for .el7.
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.5.2-3 * Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.5.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

Loading…
Cancel
Save