From 85ffcab964dfda3c120a6aed1bc64e759c7a2aee Mon Sep 17 00:00:00 2001 From: Jun Aruga Date: Fri, 9 Jun 2017 16:27:04 +0200 Subject: [PATCH] Fix for bootstrapping and wrong script interpreter. - Improve bootstrapping logic. Ref: https://fedoraproject.org/wiki/Packaging:Guidelines#Bootstrapping - Fix wrong script interpreter for rpmlint. --- rubygem-rack.spec | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/rubygem-rack.spec b/rubygem-rack.spec index fc2992d..a89b178 100644 --- a/rubygem-rack.spec +++ b/rubygem-rack.spec @@ -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 - 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 - 1:2.0.3-1 - Update to Rack 2.0.3.