Fix for bootstrapping and wrong script interpreter.

- Improve bootstrapping logic.
  Ref: https://fedoraproject.org/wiki/Packaging:Guidelines#Bootstrapping
- Fix wrong script interpreter for rpmlint.
epel9
Jun Aruga 8 years ago
parent 153aead50b
commit 85ffcab964

@ -1,14 +1,13 @@
%global gem_name rack %global gem_name rack
# There is circular dependency between thin and rack. # There is circular dependency between thin and rack.
# Set this to 0 after we've bootstrapped. %{?_with_bootstrap: %global bootstrap 1}
%{!?_with_bootstrap: %global bootstrap 0}
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Version: 2.0.3 Version: 2.0.3
# Introduce Epoch (related to bug 552972) # Introduce Epoch (related to bug 552972)
Epoch: 1 Epoch: 1
Release: 1%{?dist} Release: 2%{?dist}
Summary: A modular Ruby webserver interface Summary: A modular Ruby webserver interface
Group: Development/Languages Group: Development/Languages
# lib/rack/show{status,exceptions}.rb contains snippets from Django under BSD license. # lib/rack/show{status,exceptions}.rb contains snippets from Django under BSD license.
@ -61,6 +60,8 @@ cp -pa .%{_bindir}/* \
%{buildroot}%{_bindir}/ %{buildroot}%{_bindir}/
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x 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 # Fix anything executable that does not have a shebang
for file in `find %{buildroot}/%{gem_instdir} -type f -perm /a+x`; do for file in `find %{buildroot}/%{gem_instdir} -type f -perm /a+x`; do
@ -107,6 +108,11 @@ popd
%doc %{gem_instdir}/contrib %doc %{gem_instdir}/contrib
%changelog %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 * Thu Jun 01 2017 Steve Traylen <steve.traylen@cern.ch> - 1:2.0.3-1
- Update to Rack 2.0.3. - Update to Rack 2.0.3.

Loading…
Cancel
Save