]>
Commit | Line | Data |
---|---|---|
22ed1ab0 JK |
1 | Summary: Open source implementation of the OpenCL specification for Intel GPUs |
2 | Name: beignet | |
3 | Version: 0.8 | |
4 | Release: 0.1 | |
5 | License: LGPL v2.1 | |
6 | Group: Libraries | |
7 | Source0: http://cgit.freedesktop.org/beignet/snapshot/Release_v%{version}.tar.gz | |
9d38e870 | 8 | # Source0-md5: 1e054762fa4929859963d32f0987e5df |
22ed1ab0 JK |
9 | URL: http://www.freedesktop.org/wiki/Software/Beignet/ |
10 | BuildRequires: Mesa-libgbm-devel | |
11 | BuildRequires: clang-devel | |
12 | BuildRequires: cmake | |
13 | BuildRequires: libdrm-devel | |
14 | BuildRequires: llvm | |
15 | BuildRequires: llvm-devel | |
16 | BuildRequires: ocl-icd-devel | |
17 | BuildRequires: xorg-lib-libX11-devel | |
18 | BuildRequires: xorg-lib-libXext-devel | |
19 | BuildRequires: xorg-lib-libXfixes-devel | |
20 | Provides: ocl-icd(beignet) | |
21 | Provides: ocl-icd-driver | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | Beignet is an open source implementation of the OpenCL specification - | |
26 | a generic compute oriented API. This code base contains the code to | |
27 | run OpenCL programs on Intel GPUs which basically defines and | |
28 | implements the OpenCL host functions required to initialize the | |
29 | device, create the command queues, the kernels and the programs and | |
30 | run them on the GPU. | |
31 | ||
32 | %prep | |
33 | %setup -qc | |
34 | mv Release_v%{version}/{*,.*} . | |
35 | rmdir Release_v%{version} | |
36 | ||
37 | %build | |
38 | install -d build | |
39 | cd build | |
40 | %cmake \ | |
41 | -DLIB_INSTALL_DIR=%{_libdir} \ | |
42 | ../ | |
43 | %{__make} | |
44 | ||
45 | %install | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
48 | %{__make} -C build install \ | |
49 | DESTDIR=$RPM_BUILD_ROOT | |
50 | ||
51 | rm -r $RPM_BUILD_ROOT%{_includedir} | |
52 | ||
53 | %clean | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %files | |
57 | %defattr(644,root,root,755) | |
58 | %doc docs/* | |
59 | %dir %{_libdir}/%{name} | |
60 | %{_libdir}/%{name}/beignet.bc | |
61 | %attr(755,root,root) %{_libdir}/%{name}/libcl.so | |
62 | %{_libdir}/%{name}/ocl_stdlib.h | |
63 | %{_libdir}/%{name}/ocl_stdlib.h.pch | |
64 | /etc/OpenCL/vendors/intel-beignet.icd |