From 11fca9d50236917708eff847d2d7f416d6beac9f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <[email protected]>
Date: Fri, 29 Jul 2011 10:53:53 +0200
Subject: Convert JIT scripts to libraries
---
perl-Coro.spec | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/perl-Coro.spec b/perl-Coro.spec
index 2a3b950..2a76667 100644
--- a/perl-Coro.spec
+++ b/perl-Coro.spec
@@ -64,7 +64,12 @@ programming much safer and easier than using other thread
models.
%patch0 -p1 -b .ucontext-default
%endif
-%global wrong_shbangs eg/myhttpd Coro/jit-*.pl
+for F in Coro/jit-*.pl; do
+ sed -i -e '/^#!/d' "$F"
+ chmod -x "$F"
+done
+
+%global wrong_shbangs eg/myhttpd
%if 0%{?fix_shbang_line}
%fix_shbang_line %wrong_shbangs
%else
@@ -72,8 +77,6 @@ programming much safer and easier than using other thread
models.
sed -i -e '/^#!/ s|.*|#!%{__perl}|' %wrong_shbangs
%endif
-chmod -x Coro/jit-*.pl
-
%build
# Interractive configuration. Use default values.
--
cgit v0.12
http://pkgs.fedoraproject.org/cgit/perl-Coro.git/commit/?h=epel7&id=11fca9d50236917708eff847d2d7f416d6beac9f
_______________________________________________
perl-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]