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