]>
Commit | Line | Data |
---|---|---|
22ed1ab0 | 1 | Summary: Open source implementation of the OpenCL specification for Intel GPUs |
9dfe627a | 2 | Summary(pl.UTF-8): Mająca otwarte źródła implementacja specyfikacji OpenGL dla GPU formy Intel |
22ed1ab0 | 3 | Name: beignet |
978e36e0 | 4 | Version: 0.9 |
63c0427f | 5 | Release: 1 |
9dfe627a | 6 | License: LGPL v2+ |
22ed1ab0 | 7 | Group: Libraries |
926f1a3b JK |
8 | # http://cgit.freedesktop.org/beignet/snapshot/Release_v%{version}.tar.gz |
9 | Source0: Release_v%{version}.tar.gz | |
978e36e0 | 10 | # Source0-md5: f7926509892f1a9ed39ffa5ae5f00691 |
22ed1ab0 JK |
11 | URL: http://www.freedesktop.org/wiki/Software/Beignet/ |
12 | BuildRequires: Mesa-libgbm-devel | |
978e36e0 | 13 | BuildRequires: OpenGL-devel |
22ed1ab0 | 14 | BuildRequires: clang-devel |
9dfe627a | 15 | BuildRequires: cmake >= 2.6.0 |
22ed1ab0 | 16 | BuildRequires: libdrm-devel |
9dfe627a JB |
17 | BuildRequires: libstdc++-devel |
18 | BuildRequires: llvm >= 3.3 | |
19 | BuildRequires: llvm-devel >= 3.3 | |
22ed1ab0 | 20 | BuildRequires: ocl-icd-devel |
9dfe627a JB |
21 | BuildRequires: pkgconfig |
22 | BuildRequires: python | |
23 | BuildRequires: sed >= 4.0 | |
22ed1ab0 JK |
24 | BuildRequires: xorg-lib-libX11-devel |
25 | BuildRequires: xorg-lib-libXext-devel | |
26 | BuildRequires: xorg-lib-libXfixes-devel | |
27 | Provides: ocl-icd(beignet) | |
28 | Provides: ocl-icd-driver | |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
30 | ||
31 | %description | |
32 | Beignet is an open source implementation of the OpenCL specification - | |
33 | a generic compute oriented API. This code base contains the code to | |
34 | run OpenCL programs on Intel GPUs which basically defines and | |
35 | implements the OpenCL host functions required to initialize the | |
36 | device, create the command queues, the kernels and the programs and | |
37 | run them on the GPU. | |
38 | ||
9dfe627a JB |
39 | %description -l pl.UTF-8 |
40 | Beignet to mająca otwarte źródła implementacja specyfikacji OpenCL - | |
41 | ogólnego API przeznaczonego do obliczeń. Ten pakiet zawiera kod do | |
42 | uruchamiania programów OpenCL na procesorach graficznych (GPU) firmy | |
43 | Intel; kod ten zasadniczo definiuje i implementuje funkcje hosta | |
44 | OpenCL wymagane do zainicjowania urządzenia, tworzenia kolejek | |
45 | poleceń, jądra i programów oraz uruchamia je na GPU. | |
46 | ||
22ed1ab0 JK |
47 | %prep |
48 | %setup -qc | |
49 | mv Release_v%{version}/{*,.*} . | |
50 | rmdir Release_v%{version} | |
51 | ||
9dfe627a JB |
52 | # allow to override CMAKE_VERBOSE_MAKEFILE |
53 | %{__sed} -i -e '/^SET(CMAKE_VERBOSE_MAKEFILE "false")/d' CMakeLists.txt | |
54 | ||
22ed1ab0 JK |
55 | %build |
56 | install -d build | |
57 | cd build | |
58 | %cmake \ | |
59 | -DLIB_INSTALL_DIR=%{_libdir} \ | |
978e36e0 JK |
60 | -DCMAKE_CXX_FLAGS_PLD="%{rpmcxxflags} -DNDEBUG -DGBE_DEBUG=0" \ |
61 | -DCMAKE_C_FLAGS_PLD="%{rpmcxxflags} -DNDEBUG -DGBE_DEBUG=0" \ | |
62 | -DGEN_PCI_ID=0x0162 \ | |
22ed1ab0 JK |
63 | ../ |
64 | %{__make} | |
65 | ||
66 | %install | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
69 | %{__make} -C build install \ | |
70 | DESTDIR=$RPM_BUILD_ROOT | |
71 | ||
9dfe627a | 72 | %{__rm} -r $RPM_BUILD_ROOT%{_includedir} |
22ed1ab0 JK |
73 | |
74 | %clean | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | %files | |
78 | %defattr(644,root,root,755) | |
79 | %doc docs/* | |
80 | %dir %{_libdir}/%{name} | |
81 | %{_libdir}/%{name}/beignet.bc | |
82 | %attr(755,root,root) %{_libdir}/%{name}/libcl.so | |
978e36e0 JK |
83 | %attr(755,root,root) %{_libdir}/%{name}/libgbe.so |
84 | %attr(755,root,root) %{_libdir}/%{name}/libgbeinterp.so | |
22ed1ab0 JK |
85 | %{_libdir}/%{name}/ocl_stdlib.h |
86 | %{_libdir}/%{name}/ocl_stdlib.h.pch | |
87 | /etc/OpenCL/vendors/intel-beignet.icd |