[opencl-headers] Move patch applicaiton into install

Fabian Deutsch fabiand at fedoraproject.org
Fri Apr 25 10:14:18 UTC 2014


commit 3347e3d686ef77d975a7eb954116235eed675991
Author: Fabian Deutsch <fabiand at fedoraproject.org>
Date:   Fri Apr 25 11:42:46 2014 +0200

    Move patch applicaiton into install
    
    This package is a bit special, because we've got no buildroot.
    To address this th epatch is applied to the installed header file.
    Thus we need to run the patch cmd after the installation.
    
    Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>

 arm-nosse2.patch    |    4 ++--
 opencl-headers.spec |    5 ++++-
 2 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/arm-nosse2.patch b/arm-nosse2.patch
index 38dc0cd..c0adae5 100644
--- a/arm-nosse2.patch
+++ b/arm-nosse2.patch
@@ -1,5 +1,5 @@
---- cl.hpp.orig	2014-04-25 09:53:03.029286394 +0200
-+++ cl.hpp	2014-04-25 09:55:06.330122827 +0200
+--- cl.hpp	2014-04-25 09:53:03.029286394 +0200
++++ cl.hpp.mod	2014-04-25 09:55:06.330122827 +0200
 @@ -212,8 +212,11 @@
  #if defined(linux) || defined(__APPLE__) || defined(__MACOSX)
  #include <alloca.h>
diff --git a/opencl-headers.spec b/opencl-headers.spec
index ca5a98c..c116ccc 100644
--- a/opencl-headers.spec
+++ b/opencl-headers.spec
@@ -25,7 +25,7 @@ Khronos OpenCL development headers
 
 
 %prep
-%patch0 -b .arm-nosse2
+
 
 %build
 
@@ -45,6 +45,9 @@ cp \
 	%{SOURCE9} \
 	$RPM_BUILD_ROOT%{_includedir}/CL/
 
+patch $RPM_BUILD_ROOT%{_includedir}/CL/cl.hpp %{PATCH0}
+
+
 %files
 %dir %{_includedir}/CL
 %{_includedir}/CL/opencl.h


More information about the scm-commits mailing list