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