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@fedoraproject.org>
This commit is contained in:
Fabian Deutsch 2014-04-25 11:42:46 +02:00
parent 5a7b8168bc
commit 3347e3d686
2 changed files with 6 additions and 3 deletions

View File

@ -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>

View File

@ -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