|
|
|
@ -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 <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
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|