From 2e91b75d989673056d03d782489f47557cb0a58c Mon Sep 17 00:00:00 2001 From: Vít Ondruch Date: Feb 15 2018 09:32:05 +0000 Subject: Exclude test.ru shebang from being mangled. --- diff --git a/rubygem-rack.spec b/rubygem-rack.spec index a23ced6..4774694 100644 --- a/rubygem-rack.spec +++ b/rubygem-rack.spec @@ -1,7 +1,3 @@ -# Avoid shebang check to a testing file. -# https://bugzilla.redhat.com/show_bug.cgi?id=1541318 -%undefine __brp_mangle_shebangs - %global gem_name rack # There is circular dependency between thin and rack. @@ -11,7 +7,7 @@ Name: rubygem-%{gem_name} Version: 2.0.4 # 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. @@ -30,6 +26,8 @@ BuildRequires: rubygem(thin) %endif BuildArch: noarch +%global __brp_mangle_shebangs_exclude_from ^%{gem_instdir}/test/cgi/test.ru$ + %description Rack provides a minimal, modular and adaptable interface for developing web applications in Ruby. By wrapping HTTP requests and responses in @@ -119,6 +117,9 @@ popd %doc %{gem_instdir}/contrib %changelog +* Thu Feb 15 2018 Vít Ondruch - 1:2.0.4-2 +- Exclude test.ru shebang from being mangled. + * Tue Feb 13 2018 Jun Aruga - 1:2.0.4-1 - Update to Rack 2.0.4.