From 5957571cd52410147f76405082291536c72f2d55 Mon Sep 17 00:00:00 2001
From: Mathieu Bridon <[email protected]>
Date: Fri, 21 Jan 2011 12:31:23 +0800
Subject: Allow building on systems without %%fix_shbang_line macro (needed for
EL6)
---
perl-Coro.spec | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/perl-Coro.spec b/perl-Coro.spec
index 2883892..3c082e0 100644
--- a/perl-Coro.spec
+++ b/perl-Coro.spec
@@ -1,6 +1,6 @@
Name: perl-Coro
Version: 5.25
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: The only real threads in perl
License: GPL+ or Artistic
Group: Development/Libraries
@@ -59,7 +59,12 @@ programming much safer and easier than using other thread
models.
%ifnarch %{ix86} x86_64
%patch0 -p1 -b .ucontext-default
%endif
+%if 0%{?fix_shbang_line}
%fix_shbang_line eg/myhttpd
+%else
+# at least EL6 doesn't have the %%fix_shbang_line macro
+sed -i -e '/^#!/ s|.*|#!%{__perl}|' eg/myhttpd
+%endif
%build
# Interractive configuration. Use default values.
@@ -87,6 +92,9 @@ make test
%{_mandir}/man3/*
%changelog
+* Fri Jan 21 2011 Mathieu Bridon <[email protected]> 5.25-3
+- Allow building on systems without %%fix_shbang_line macro (needed for EL6)
+
* Mon Jan 10 2011 Dan HorĂ¡k <dan[at]danny.cz> 5.25-2
- use ucontext backend on non-x86
--
cgit v0.12
http://pkgs.fedoraproject.org/cgit/perl-Coro.git/commit/?h=epel7&id=5957571cd52410147f76405082291536c72f2d55
_______________________________________________
perl-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]