]>
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 |
039979b7 | 4 | Version: 1.3.1 |
35350f6e | 5 | Release: 1 |
9dfe627a | 6 | License: LGPL v2+ |
22ed1ab0 | 7 | Group: Libraries |
039979b7 JK |
8 | Source0: https://01.org/sites/default/files/beignet-%{version}-source.tar.gz |
9 | # Source0-md5: 850886a71a34672ca26a42046d0bb442 | |
b4439341 JK |
10 | Patch0: cflags.patch |
11 | Patch1: static_llvm.patch | |
22ed1ab0 JK |
12 | URL: http://www.freedesktop.org/wiki/Software/Beignet/ |
13 | BuildRequires: Mesa-libgbm-devel | |
039979b7 | 14 | BuildRequires: Mesa-libEGL-devel |
978e36e0 | 15 | BuildRequires: OpenGL-devel |
22ed1ab0 | 16 | BuildRequires: clang-devel |
9dfe627a | 17 | BuildRequires: cmake >= 2.6.0 |
474406e8 | 18 | BuildRequires: libdrm-devel >= 2.4.66 |
039979b7 | 19 | BuildRequires: libedit-devel |
9dfe627a | 20 | BuildRequires: libstdc++-devel |
474406e8 JK |
21 | BuildRequires: llvm >= 3.9 |
22 | BuildRequires: llvm-devel >= 3.9 | |
039979b7 | 23 | BuildRequires: ncurses-devel |
22ed1ab0 | 24 | BuildRequires: ocl-icd-devel |
9dfe627a JB |
25 | BuildRequires: pkgconfig |
26 | BuildRequires: python | |
27 | BuildRequires: sed >= 4.0 | |
22ed1ab0 JK |
28 | BuildRequires: xorg-lib-libXext-devel |
29 | BuildRequires: xorg-lib-libXfixes-devel | |
039979b7 | 30 | BuildRequires: zlib-devel |
22ed1ab0 JK |
31 | Provides: ocl-icd(beignet) |
32 | Provides: ocl-icd-driver | |
33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
34 | ||
35 | %description | |
36 | Beignet is an open source implementation of the OpenCL specification - | |
37 | a generic compute oriented API. This code base contains the code to | |
38 | run OpenCL programs on Intel GPUs which basically defines and | |
39 | implements the OpenCL host functions required to initialize the | |
40 | device, create the command queues, the kernels and the programs and | |
41 | run them on the GPU. | |
42 | ||
9dfe627a JB |
43 | %description -l pl.UTF-8 |
44 | Beignet to mająca otwarte źródła implementacja specyfikacji OpenCL - | |
45 | ogólnego API przeznaczonego do obliczeń. Ten pakiet zawiera kod do | |
46 | uruchamiania programów OpenCL na procesorach graficznych (GPU) firmy | |
47 | Intel; kod ten zasadniczo definiuje i implementuje funkcje hosta | |
48 | OpenCL wymagane do zainicjowania urządzenia, tworzenia kolejek | |
49 | poleceń, jądra i programów oraz uruchamia je na GPU. | |
50 | ||
22ed1ab0 | 51 | %prep |
039979b7 | 52 | %setup -qn Beignet-%{version}-Source |
22ed1ab0 | 53 | |
b4439341 JK |
54 | %patch0 -p1 |
55 | %patch1 -p1 | |
56 | ||
9dfe627a | 57 | |
22ed1ab0 JK |
58 | %build |
59 | install -d build | |
60 | cd build | |
61 | %cmake \ | |
62 | -DLIB_INSTALL_DIR=%{_libdir} \ | |
978e36e0 JK |
63 | -DCMAKE_CXX_FLAGS_PLD="%{rpmcxxflags} -DNDEBUG -DGBE_DEBUG=0" \ |
64 | -DCMAKE_C_FLAGS_PLD="%{rpmcxxflags} -DNDEBUG -DGBE_DEBUG=0" \ | |
22ed1ab0 JK |
65 | ../ |
66 | %{__make} | |
67 | ||
68 | %install | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %{__make} -C build install \ | |
72 | DESTDIR=$RPM_BUILD_ROOT | |
73 | ||
9dfe627a | 74 | %{__rm} -r $RPM_BUILD_ROOT%{_includedir} |
22ed1ab0 JK |
75 | |
76 | %clean | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
79 | %files | |
80 | %defattr(644,root,root,755) | |
81 | %doc docs/* | |
82 | %dir %{_libdir}/%{name} | |
83 | %{_libdir}/%{name}/beignet.bc | |
84 | %attr(755,root,root) %{_libdir}/%{name}/libcl.so | |
978e36e0 JK |
85 | %attr(755,root,root) %{_libdir}/%{name}/libgbe.so |
86 | %attr(755,root,root) %{_libdir}/%{name}/libgbeinterp.so | |
b4439341 | 87 | %{_libdir}/%{name}/beignet.pch |
24f70a91 | 88 | %ifarch %{x8664} |
b4439341 JK |
89 | %{_libdir}/%{name}/beignet_20.bc |
90 | %{_libdir}/%{name}/beignet_20.pch | |
24f70a91 | 91 | %endif |
b4439341 | 92 | %{_libdir}/%{name}/include |
22ed1ab0 | 93 | /etc/OpenCL/vendors/intel-beignet.icd |