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