]>
Commit | Line | Data |
---|---|---|
06b6a911 | 1 | |
8b0584c7 JK |
2 | # requires the OpenCL patches |
3 | %define llvm_version llvm-7.0.1-3 | |
4 | ||
06b6a911 JK |
5 | %define opencl_clang_version 8.0.1 |
6 | ||
7 | Summary: The Intel Graphics Compiler for OpenCL | |
8 | Name: intel-graphics-compiler | |
9 | Version: 1.0.8 | |
10 | Release: 1 | |
11 | License: MIT | |
12 | Group: Libraries | |
13 | Source0: https://github.com/intel/intel-graphics-compiler/archive/igc-%{version}/igc-%{version}.tar.gz | |
14 | # Source0-md5: 9999fd7b6947b2ed0a11f7b07b1e7acc | |
15 | Patch0: pkgconfig.patch | |
16 | URL: https://github.com/intel/intel-graphics-compiler/ | |
17 | BuildRequires: llvm-devel >= %{llvm_version} | |
18 | BuildRequires: opencl-clang-devel >= %{opencl_clang_version} | |
19 | BuildRequires: cmake >= 3.2.0 | |
20 | BuildRequires: pkgconfig | |
21 | Requires: %{name}-libs = %{version}-%{release} | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | The Intel Graphics Compiler for OpenCL is an LLVM based compiler for OpenCL | |
26 | targeting Intel Gen graphics hardware architecture. | |
27 | ||
28 | %package libs | |
29 | Summary: The Intel Graphics Compiler for OpenCL libraries | |
30 | Group: Libraries | |
31 | ||
32 | %description libs | |
33 | The Intel Graphics Compiler for OpenCL libraries. | |
34 | ||
35 | %package devel | |
36 | Summary: Header files for %{name} library | |
37 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name} | |
38 | Group: Development/Libraries | |
39 | Requires: %{name}-libs = %{version}-%{release} | |
40 | ||
41 | %description devel | |
42 | Header files for %{name} library. | |
43 | ||
44 | %description devel -l pl.UTF-8 | |
45 | Pliki nagłówkowe biblioteki %{name}. | |
46 | ||
47 | %prep | |
48 | %setup -qn %{name}-igc-%{version} | |
49 | ||
50 | %patch0 -p1 | |
51 | ||
52 | %build | |
53 | install -d build | |
54 | cd build | |
55 | %cmake \ | |
56 | -DCCLANG_FROM_SYSTEM=ON \ | |
57 | ../ | |
58 | %{__make} | |
59 | ||
60 | cd .. | |
61 | ||
62 | %install | |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
65 | %{__make} -C build install \ | |
66 | DESTDIR=$RPM_BUILD_ROOT | |
67 | ||
68 | %clean | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %files | |
72 | %defattr(644,root,root,755) | |
73 | %doc README.md | |
74 | %attr(755,root,root) %{_bindir}/GenX_IR | |
8bad0443 | 75 | %ifarch %{x8664} |
06b6a911 | 76 | %attr(755,root,root) %{_bindir}/iga64 |
8bad0443 JK |
77 | %else |
78 | %attr(755,root,root) %{_bindir}/iga32 | |
79 | %endif | |
06b6a911 JK |
80 | |
81 | %files libs | |
82 | %defattr(644,root,root,755) | |
8bad0443 | 83 | %ifarch %{x8664} |
06b6a911 JK |
84 | %attr(755,root,root) %{_libdir}/libiga64.so.1.*.* |
85 | %ghost %attr(755,root,root) %{_libdir}/libiga64.so.1 | |
8bad0443 | 86 | %else |
aea765ea | 87 | %attr(755,root,root) %{_libdir}/libiga32.so.1.*.* |
8bad0443 JK |
88 | %ghost %attr(755,root,root) %{_libdir}/libiga32.so.1 |
89 | %endif | |
06b6a911 JK |
90 | %attr(755,root,root) %{_libdir}/libigc.so.1.*.* |
91 | %ghost %attr(755,root,root) %{_libdir}/libigc.so.1 | |
92 | %attr(755,root,root) %{_libdir}/libigdfcl.so.1.*.* | |
93 | %ghost %attr(755,root,root) %{_libdir}/libigdfcl.so.1 | |
94 | ||
95 | %files devel | |
96 | %defattr(644,root,root,755) | |
97 | %{_includedir}/igc | |
8bad0443 | 98 | %ifarch %{x8664} |
06b6a911 | 99 | %attr(755,root,root) %{_libdir}/libiga64.so |
8bad0443 JK |
100 | %else |
101 | %attr(755,root,root) %{_libdir}/libiga32.so | |
102 | %endif | |
06b6a911 JK |
103 | %attr(755,root,root) %{_libdir}/libigc.so |
104 | %attr(755,root,root) %{_libdir}/libigdfcl.so | |
105 | %{_pkgconfigdir}/igc-opencl.pc |