|
|
|
@ -1,14 +1,13 @@
|
|
|
|
|
%global gem_name rack
|
|
|
|
|
|
|
|
|
|
# There is circular dependency between thin and rack.
|
|
|
|
|
# Set this to 0 after we've bootstrapped.
|
|
|
|
|
%{!?_with_bootstrap: %global bootstrap 0}
|
|
|
|
|
%{?_with_bootstrap: %global bootstrap 1}
|
|
|
|
|
|
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
|
Version: 2.0.3
|
|
|
|
|
# Introduce Epoch (related to bug 552972)
|
|
|
|
|
Epoch: 1
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Summary: A modular Ruby webserver interface
|
|
|
|
|
Group: Development/Languages
|
|
|
|
|
# lib/rack/show{status,exceptions}.rb contains snippets from Django under BSD license.
|
|
|
|
@ -61,6 +60,8 @@ cp -pa .%{_bindir}/* \
|
|
|
|
|
%{buildroot}%{_bindir}/
|
|
|
|
|
|
|
|
|
|
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
|
|
|
|
|
find %{buildroot}%{gem_instdir}/{bin,test/cgi} -type f | \
|
|
|
|
|
xargs sed -i 's|^#!/usr/bin/env ruby$|#!/usr/bin/ruby|'
|
|
|
|
|
|
|
|
|
|
# Fix anything executable that does not have a shebang
|
|
|
|
|
for file in `find %{buildroot}/%{gem_instdir} -type f -perm /a+x`; do
|
|
|
|
@ -107,6 +108,11 @@ popd
|
|
|
|
|
%doc %{gem_instdir}/contrib
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Fri Jun 09 2017 Jun Aruga <jaruga@redhat.com> - 1:2.0.3-2
|
|
|
|
|
- Improve bootstrapping logic.
|
|
|
|
|
Ref: https://fedoraproject.org/wiki/Packaging:Guidelines#Bootstrapping
|
|
|
|
|
- Fix wrong script interpreter for rpmlint.
|
|
|
|
|
|
|
|
|
|
* Thu Jun 01 2017 Steve Traylen <steve.traylen@cern.ch> - 1:2.0.3-1
|
|
|
|
|
- Update to Rack 2.0.3.
|
|
|
|
|
|
|
|
|
|