]>
Commit | Line | Data |
---|---|---|
30b45f1a JR |
1 | # |
2 | # NOTE: | |
3 | # - normal build (x86_64) requires about 80 GB of disk space | |
4 | # | |
6df3b432 JB |
5 | # TODO: |
6 | # - move and package: | |
7 | # %{_datadir}/clang/clang-format-sublime.py - sublime plugin | |
5013c7ea JB |
8 | # %{_datadir}/clang/clang-format.el - clang tools emacs integration |
9 | # %{_datadir}/clang/clang-include-fixer.el | |
10 | # %{_datadir}/clang/clang-rename.el | |
6df3b432 | 11 | # - no content in doc package (it used to contain parts of clang apidocs and some examples) |
6c2b1a44 | 12 | # - system isl in polly? |
90b20139 | 13 | # - dependencies and files for lua module |
970c3a73 | 14 | # %{_libdir}/lua/5.3/lldb.so |
90b20139 | 15 | # - figure out whether we need obj.MLIRCAPIIR files |
313f7f73 JP |
16 | # - cmake dependencies mess (LLVMExports.cmake appears to require all -devels): |
17 | # with llvm-devel and spirv-tools-devel installed but without llvm-mlir (or other packages): | |
18 | # $ cat CMakeLists.txt | |
19 | # find_package(LLVM) | |
20 | # find_package(SPIRV-Tools) | |
21 | # $ cmake -B build | |
22 | # ... | |
23 | # The imported target "mlir-tblgen" references the file | |
24 | # | |
25 | # "/usr/bin/mlir-tblgen" | |
26 | # | |
27 | # but this file does not exist. Possible reasons include: | |
28 | # ... | |
bc88141a | 29 | # |
9556f4c9 | 30 | # Conditional build: |
a531db5e | 31 | %bcond_without lldb # LLDB debugger |
d27b2b77 | 32 | %bcond_without mlir # MLIR libraries and tools (required for Flang) |
20451c6c | 33 | %bcond_with flang # Flang (Fortran18) compiler (heavy memory requirements during build) |
a531db5e JP |
34 | %bcond_without polly # Polly cache-locality optimization, auto-parallelism and vectorization |
35 | %bcond_without rt # compiler-rt libraries | |
36 | %bcond_without multilib # compiler-rt multilib libraries | |
37 | %bcond_without ocaml # OCaml binding | |
38 | %bcond_without z3 # Z3 constraint solver support in Clang Static Analyzer | |
39 | %bcond_without doc # HTML docs and man pages | |
40 | %bcond_without target_aarch64 # AArch64 target support | |
41 | %bcond_without target_amdgpu # AMDGPU target support | |
42 | %bcond_without target_arm # ARM target support | |
43 | %bcond_without target_avr # AVR target support | |
44 | %bcond_without target_bpf # BPF target support | |
45 | %bcond_without target_hexagon # Hexagon target support | |
46 | %bcond_without target_lanai # Lanai target support | |
47 | %bcond_without target_mips # Mips target support | |
48 | %bcond_without target_msp430 # MSP430 target support | |
49 | %bcond_without target_nvptx # NVPTX target support | |
50 | %bcond_without target_powerpc # PowerPC target support | |
51 | %bcond_without target_riscv # RISCV target support | |
52 | %bcond_without target_sparc # Sparc target support | |
53 | %bcond_without target_systemz # SystemZ target support | |
90b20139 | 54 | %bcond_without target_ve # VE target support |
a531db5e JP |
55 | %bcond_without target_webassembly # WebAssembly target support |
56 | %bcond_without target_x86 # X86 target support | |
57 | %bcond_without target_xcore # XCore target support | |
a531db5e JP |
58 | %bcond_with cxxmodules # C++20 modules (requires support in bootstrap compiler) |
59 | %bcond_with apidocs # doxygen docs (HUGE, so they are not built by default) | |
60 | %bcond_with tests # run tests | |
61 | %bcond_with lowmem # lower memory requirements | |
9556f4c9 | 62 | |
4ba3b2b3 | 63 | # No ocaml on other arches or no native ocaml (required for ocaml-ctypes) |
5013c7ea | 64 | %ifnarch %{ix86} %{x8664} %{arm} aarch64 ppc sparc sparcv9 |
9556f4c9 ER |
65 | %undefine with_ocaml |
66 | %endif | |
67 | ||
bdd7e0f7 JP |
68 | %ifarch armv3l armv4b armv4l armv4tl armv5tl armv5tel armv5tejl armv6l armv6hl |
69 | %undefine with_rt | |
70 | %endif | |
71 | ||
1431eb62 | 72 | %ifarch %{arm} aarch64 |
c377e543 | 73 | %define with_lowmem 1 |
1431eb62 JP |
74 | %endif |
75 | ||
90b20139 | 76 | %define targets_to_build %{?with_target_aarch64:AArch64;}%{?with_target_amdgpu:AMDGPU;}%{?with_target_arm:ARM;}%{?with_target_avr:AVR;}%{?with_target_bpf:BPF;}%{?with_target_hexagon:Hexagon;}%{?with_target_lanai:Lanai;}%{?with_target_mips:Mips;}%{?with_target_msp430:MSP430;}%{?with_target_nvptx:NVPTX;}%{?with_target_powerpc:PowerPC;}%{?with_target_riscv:RISCV;}%{?with_target_sparc:Sparc;}%{?with_target_systemz:SystemZ;}%{?with_target_ve:VE;}%{?with_target_webassembly:WebAssembly;}%{?with_target_x86:X86;}%{?with_target_xcore:XCore;} |
a531db5e | 77 | |
d27b2b77 JB |
78 | %if %{without mlir} |
79 | %undefine with_flang | |
80 | %endif | |
81 | ||
aa11c230 | 82 | Summary: The Low Level Virtual Machine (An Optimizing Compiler Infrastructure) |
2326a99f | 83 | Summary(pl.UTF-8): Niskopoziomowa maszyna wirtualna (infrastruktura kompilatora optymalizującego) |
aa11c230 | 84 | Name: llvm |
0fd19552 | 85 | Version: 15.0.2 |
970c3a73 | 86 | Release: 1 |
77d2fdeb | 87 | License: Apache 2.0 with LLVM exceptions |
aa11c230 | 88 | Group: Development/Languages |
44d18de7 JB |
89 | #Source0Download: https://github.com/llvm/llvm-project/releases/ |
90 | Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/%{name}-%{version}.src.tar.xz | |
0fd19552 | 91 | # Source0-md5: e3a27e5cf58b146cfd2e5c9755030298 |
44d18de7 | 92 | Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/clang-%{version}.src.tar.xz |
0fd19552 | 93 | # Source1-md5: f2679a17d6be9d1a2298f546c0b4e844 |
44d18de7 | 94 | Source2: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/compiler-rt-%{version}.src.tar.xz |
0fd19552 | 95 | # Source2-md5: 1f990209b6c102e41a45bec854b76fa2 |
44d18de7 | 96 | Source3: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/lldb-%{version}.src.tar.xz |
0fd19552 | 97 | # Source3-md5: 4a02bc28b793a698342debdd01e65ce3 |
44d18de7 | 98 | Source4: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/polly-%{version}.src.tar.xz |
0fd19552 | 99 | # Source4-md5: 34a8dc88cce024f9668746f849fe3c35 |
44d18de7 | 100 | Source5: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/clang-tools-extra-%{version}.src.tar.xz |
0fd19552 | 101 | # Source5-md5: 45741472f0b8a0f4261f4599a1387acd |
44d18de7 | 102 | Source6: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/lld-%{version}.src.tar.xz |
0fd19552 | 103 | # Source6-md5: 53e64e6eeda6705fb13e1d233f79def4 |
1a356f89 | 104 | Source7: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/flang-%{version}.src.tar.xz |
0fd19552 | 105 | # Source7-md5: 40d4b36d5b3b954eff378b3d6f19549c |
ccfdfd0e | 106 | # "mlir" subdir extracted from https://github.com/llvm/llvm-project/releases/download/llvmorg-13.0.1/llvm-project-13.0.1.src.tar.xz |
1a356f89 | 107 | Source8: mlir-%{version}.tar.xz |
0fd19552 JP |
108 | # Source8-md5: 6e023f0e2b8bde4b2270b900e9858a94 |
109 | Source9: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/cmake-%{version}.src.tar.xz | |
110 | # Source9-md5: f4b68e2c84d3a14d289ff0379ff30ed3 | |
9f7b77bd | 111 | Patch1: %{name}-pld.patch |
200602f4 | 112 | Patch2: %{name}-python-modules.patch |
9f7b77bd | 113 | Patch3: x32-gcc-toolchain.patch |
d96b39d3 | 114 | Patch4: cmake-buildtype.patch |
d706a70d | 115 | Patch5: %{name}-ocaml-shared.patch |
1a356f89 | 116 | Patch6: %{name}-flang.patch |
40bef2a3 | 117 | Patch7: llvm12-build_fixes.patch |
4a967aa9 | 118 | Patch8: %{name}-selective_bindings.patch |
e25801fb | 119 | Patch9: %{name}-libexecdir.patch |
90b20139 | 120 | Patch10: compiler-rt-paths.patch |
0fd19552 | 121 | Patch11: cmake-utils-path-override.patch |
77d2fdeb | 122 | URL: https://llvm.org/ |
bc88141a | 123 | BuildRequires: bash |
803f8d9b | 124 | BuildRequires: binutils-devel |
d997b14b | 125 | BuildRequires: bison |
134d4fc5 | 126 | BuildRequires: cmake >= 3.13.4 |
d997b14b | 127 | BuildRequires: flex |
d997b14b | 128 | BuildRequires: groff |
6c2b1a44 | 129 | BuildRequires: libedit-devel |
bc88141a | 130 | BuildRequires: libltdl-devel |
44d18de7 | 131 | BuildRequires: libpfm-devel |
ad697ab7 | 132 | BuildRequires: libstdc++-devel >= 6:5 |
44d18de7 | 133 | BuildRequires: libxml2-devel >= 2 |
6c2b1a44 | 134 | BuildRequires: ncurses-devel |
2bbd0701 | 135 | %if %{with ocaml} |
5013c7ea | 136 | BuildRequires: ocaml >= 4.00.0 |
c6c890ee | 137 | BuildRequires: ocaml-ctypes-devel >= 0.4 |
2bbd0701 | 138 | BuildRequires: ocaml-findlib |
77c13dab | 139 | BuildRequires: ocaml-ocamldoc |
85ae1a18 | 140 | %{?with_tests:BuildRequires: ocaml-ounit >= 2} |
2bbd0701 | 141 | %endif |
8132e62b | 142 | BuildRequires: perl-base >= 1:5.6 |
8c156e7d | 143 | BuildRequires: perl-tools-pod |
134d4fc5 | 144 | BuildRequires: python3 >= 1:3 |
40bef2a3 JP |
145 | BuildRequires: python3-PyYAML |
146 | BuildRequires: python3-pygments >= 2.0 | |
1aabdf46 | 147 | BuildRequires: rpm-build >= 4.6 |
8c156e7d | 148 | BuildRequires: rpm-pythonprov |
a5fe2ce1 | 149 | BuildRequires: rpmbuild(macros) >= 1.742 |
b0068ae4 | 150 | %{?with_doc:BuildRequires: sphinx-pdg} |
b883cf1e | 151 | BuildRequires: tar >= 1:1.22 |
78991aba | 152 | BuildRequires: xar-devel >= 1.6 |
b883cf1e | 153 | BuildRequires: xz |
200602f4 | 154 | %{?with_z3:BuildRequires: z3-devel >= 4.7.1} |
6c2b1a44 | 155 | BuildRequires: zlib-devel |
dd9350c7 JB |
156 | %if %{with apidocs} |
157 | BuildRequires: doxygen | |
158 | BuildRequires: graphviz | |
159 | %endif | |
160 | %if %{with tests} | |
161 | BuildRequires: dejagnu | |
dd9350c7 | 162 | BuildRequires: tcl-devel |
356a0bbd | 163 | %endif |
589b92f5 JB |
164 | %if %{with rt} && %{with multilib} |
165 | %ifarch %{x8664} | |
166 | BuildRequires: gcc-c++-multilib-32 | |
90b20139 | 167 | BuildRequires: glibc-devel(ix86) |
589b92f5 JB |
168 | BuildRequires: libstdc++-multilib-32-devel |
169 | %endif | |
fe705967 | 170 | %ifarch x32 |
3b28b31d JB |
171 | BuildRequires: gcc-c++-multilib-32 |
172 | BuildRequires: gcc-c++-multilib-64 | |
173 | BuildRequires: glibc-devel(x86_64) | |
90b20139 | 174 | BuildRequires: glibc-devel(ix86) |
3b28b31d JB |
175 | BuildRequires: libstdc++-multilib-32-devel |
176 | BuildRequires: libstdc++-multilib-64-devel | |
fe705967 | 177 | %endif |
589b92f5 | 178 | %endif |
b883cf1e | 179 | %if %{with lldb} |
c6c890ee | 180 | BuildRequires: epydoc |
d92b4c2a | 181 | %ifarch i386 i486 %{arm} |
64f4e87f JB |
182 | BuildRequires: libatomic-devel |
183 | %endif | |
b883cf1e | 184 | BuildRequires: libxml2-devel >= 2 |
ad697ab7 | 185 | BuildRequires: lua-devel |
b883cf1e | 186 | BuildRequires: ncurses-ext-devel |
134d4fc5 | 187 | BuildRequires: python3-devel >= 1:3.2 |
c330693d | 188 | %{?with_doc:BuildRequires: python3-recommonmark} |
12aa4b7a | 189 | BuildRequires: swig-python >= 3.0.11 |
ad697ab7 | 190 | BuildRequires: xz-devel |
b883cf1e | 191 | %endif |
b0068ae4 | 192 | %if %{with polly} |
6c2b1a44 JB |
193 | #BuildRequires: gmp-devel or imath-devel (private copy in polly/lib/External/isl/imath) |
194 | # private copy in polly/lib/External/isl | |
ad697ab7 | 195 | #BuildRequires: isl-devel >= 0.22.1 |
6c2b1a44 | 196 | #TODO (bcond): cuda-devel (with POLLY_ENABLE_GPGPU_CODEGEN=ON) |
9b8c1bd2 | 197 | %{?with_target_nvptx:BuildRequires: ocl-icd-libOpenCL-devel} |
b0068ae4 | 198 | %endif |
634a3e5b JB |
199 | %if %{with ocaml} |
200 | BuildConflicts: llvm-ocaml | |
201 | %endif | |
8c514f23 | 202 | Requires: %{name}-libs = %{version}-%{release} |
9556f4c9 ER |
203 | # LLVM is not supported on PPC64 |
204 | # http://llvm.org/bugs/show_bug.cgi?id=3729 | |
205 | ExcludeArch: ppc64 | |
aa11c230 | 206 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
207 | ||
0fd19552 | 208 | %define abi 15 |
356a0bbd | 209 | %define _sysconfdir /etc/%{name} |
021b3c3d | 210 | |
9556f4c9 | 211 | %define specflags_ppc -fno-var-tracking-assignments |
7a1e73fa JP |
212 | |
213 | # objcopy: BFD (GNU Binutils) 2.32 assertion fail format.c:459 | |
214 | # objcopy: error: .../libLLVM-8.so(.debug_gnu_pubtypes) is too large (0x1ceee347 bytes) | |
215 | # objcopy: .../libLLVM-8.so[.debug_gnu_pubtypes]: memory exhausted | |
216 | %ifarch x32 | |
217 | %define _enable_debug_packages 0 | |
218 | %endif | |
af221038 | 219 | # ix86 and x32 - the same issue as https://llvm.org/bugs/show_bug.cgi?id=27237 |
5013c7ea JB |
220 | # use -gsplit-dwarf only when building packages with debuginfo |
221 | # to avoid excessive disk space usage | |
50fe0adf JB |
222 | %if 0%{?_enable_debug_packages} |
223 | %define specflags -gsplit-dwarf | |
224 | %endif | |
9556f4c9 | 225 | |
6832a5c5 ER |
226 | # strip corrupts: $RPM_BUILD_ROOT/usr/lib64/llvm-gcc/bin/llvm-c++ ... |
227 | %define _noautostrip .*/\\(libmud.*\\.a\\|bin/llvm-.*\\|lib.*++\\.a\\) | |
228 | ||
782c6e1e ER |
229 | # clang doesn't know -fvar-tracking-assignments, and leaving it here would pollute llvm-config |
230 | # -Werror=format-security is for swig | |
231 | # TODO: add - -Werror=format-security to tools/lldb/scripts/LLDBWrapPython.cpp | |
4a1d21cc | 232 | %define filterout_c -fvar-tracking-assignments |
782c6e1e | 233 | %define filterout_cxx -fvar-tracking-assignments -Werror=format-security |
4a1d21cc JR |
234 | %define filterout_ccpp -fvar-tracking-assignments |
235 | ||
aa11c230 | 236 | %description |
237 | LLVM is a compiler infrastructure designed for compile-time, | |
238 | link-time, runtime, and idle-time optimization of programs from | |
239 | arbitrary programming languages. LLVM is written in C++ and has been | |
240 | developed since 2000 at the University of Illinois and Apple. It | |
621ec11f JB |
241 | currently supports compilation of C and C++ programs using clang |
242 | frontend. | |
aa11c230 | 243 | |
2326a99f JB |
244 | %description -l pl.UTF-8 |
245 | LLVM to infrastruktura kompilatora zaprojektowana do optymalizacji | |
246 | czasu kompilowania, linkowania, działania i bezczynności programów w | |
247 | dowolnych językach programowania. Jest napisana w C++, rozwijana od | |
248 | roku 2000 przez Uniwersytet w Illinois i Apple. Aktualnie obsługuje | |
621ec11f | 249 | kompilację programów w C i C++ przy użyciu frontendu clang. |
2326a99f | 250 | |
8c514f23 | 251 | %package libs |
87977e26 JR |
252 | Summary: LLVM shared libraries |
253 | Summary(pl.UTF-8): Biblioteki współdzielone LLVM-a | |
8c514f23 JB |
254 | Group: Libraries |
255 | Conflicts: llvm < 3.2 | |
256 | ||
257 | %description libs | |
87977e26 | 258 | LLVM shared libraries. |
8c514f23 JB |
259 | |
260 | %description libs -l pl.UTF-8 | |
87977e26 | 261 | Biblioteki współdzielone LLVM-a. |
8c514f23 | 262 | |
bc88141a | 263 | %package devel |
621ec11f JB |
264 | Summary: Static libraries and header files for LLVM |
265 | Summary(pl.UTF-8): Biblioteki statyczne i pliki nagłówkowe dla LLVM-a | |
bc88141a | 266 | Group: Development/Languages |
8c514f23 | 267 | Requires: %{name}-libs = %{version}-%{release} |
bc88141a ER |
268 | Requires: libstdc++-devel >= 6:3.4 |
269 | ||
270 | %description devel | |
621ec11f JB |
271 | This package contains static libraries and header files needed to |
272 | develop new native programs that use the LLVM infrastructure. | |
273 | ||
274 | %description devel -l pl.UTF-8 | |
275 | Ten pakiet zawiera biblioteki statyczne oraz pliki nagłówkowe | |
276 | potrzebne do tworzenia nowych programów natywnych wykorzystujących | |
277 | infrastrukturę LLVM. | |
bc88141a | 278 | |
9556f4c9 ER |
279 | %package doc |
280 | Summary: Documentation for LLVM | |
621ec11f | 281 | Summary(pl.UTF-8): Dokumentacja do LLVM-a |
9556f4c9 ER |
282 | Group: Documentation |
283 | # does not require base | |
bc88141a | 284 | |
9556f4c9 ER |
285 | %description doc |
286 | Documentation for the LLVM compiler infrastructure. | |
bc88141a | 287 | |
621ec11f JB |
288 | %description doc -l pl.UTF-8 |
289 | Dokumentacja do infrastruktury kompilatorów LLVM. | |
290 | ||
9556f4c9 ER |
291 | %package apidocs |
292 | Summary: API documentation for LLVM | |
621ec11f | 293 | Summary(pl.UTF-8): Dokumentacja API LLVM-a |
9556f4c9 ER |
294 | Group: Development/Languages |
295 | Requires: %{name}-doc = %{version}-%{release} | |
bc88141a | 296 | |
9556f4c9 ER |
297 | %description apidocs |
298 | API documentation for the LLVM compiler infrastructure. | |
bc88141a | 299 | |
621ec11f JB |
300 | %description apidocs -l pl.UTF-8 |
301 | Dokumentacja API infrastruktury kompilatorów LLVM. | |
302 | ||
d27b2b77 JB |
303 | %package mlir |
304 | Summary: LLVM Multi-Level Intermediate Representation libraries and tools | |
305 | Summary(pl.UTF-8): Biblioteki i narzędzia wielopoziomowej reprezentacji pośredniej LLVM | |
306 | Group: Development/Tools | |
307 | URL: https://mlir.llvm.org/ | |
308 | Requires: %{name} = %{version}-%{release} | |
309 | ||
310 | %description mlir | |
311 | LLVM Multi-Level Intermediate Representation libraries and tools. | |
312 | ||
313 | %description mlir -l pl.UTF-8 | |
314 | Biblioteki i narzędzia wielopoziomowej reprezentacji pośredniej LLVM. | |
315 | ||
316 | %package mlir-devel | |
317 | Summary: LLVM Multi-Level Intermediate Representation development files | |
318 | Summary(pl.UTF-8): Pliki do programowania z użyciem wielopoziomowej reprezentacji pośredniej LLVM | |
319 | Group: Development/Tools | |
320 | URL: https://mlir.llvm.org/ | |
321 | Requires: %{name}-devel = %{version}-%{release} | |
322 | Requires: %{name}-mlir = %{version}-%{release} | |
323 | ||
324 | %description mlir-devel | |
325 | LLVM Multi-Level Intermediate Representation development files. | |
326 | ||
327 | %description mlir-devel -l pl.UTF-8 | |
328 | Pliki do programowania z użyciem wielopoziomowej reprezentacji | |
329 | pośredniej LLVM. | |
330 | ||
b0068ae4 JB |
331 | %package polly |
332 | Summary: Polyhedral optimizations for LLVM | |
333 | Summary(pl.UTF-8): Optymalizacje wielościanowe dla LLVM-a | |
334 | Group: Development/Tools | |
77d2fdeb | 335 | URL: https://polly.llvm.org/ |
b0068ae4 JB |
336 | Requires: %{name} = %{version}-%{release} |
337 | ||
338 | %description polly | |
339 | Polly is a high-level loop and data-locality optimizer and | |
340 | optimization infrastructure for LLVM. It uses an abstract mathematical | |
341 | representation based on integer polyhedra to analyze and optimize the | |
342 | memory access pattern of a program. | |
343 | ||
344 | %description polly -l pl.UTF-8 | |
345 | Polly to wysokopoziomowy optymalizator i infrastruktura LLVM-a do | |
346 | optymalizacji pętli i położenia danych. Wykorzystuje abstrakcyjną | |
347 | reprezentację matematyczną opartą na wielościanach całkowitoliczbowych | |
348 | do analizy i optymalizacji wzorców dostępu do pamięci przez program. | |
349 | ||
350 | %package polly-devel | |
351 | Summary: Header files for LLVM Polly optimization infrastructure | |
352 | Summary(pl.UTF-8): Pliki nagłówkowe infrastruktury optymalizacji LLVM-a Polly | |
353 | Group: Development/Libraries | |
77d2fdeb | 354 | URL: https://polly.llvm.org/ |
b0068ae4 JB |
355 | Requires: %{name}-devel = %{version}-%{release} |
356 | Requires: %{name}-polly = %{version}-%{release} | |
357 | ||
358 | %description polly-devel | |
359 | Header files for LLVM Polly optimization infrastructure. | |
360 | ||
361 | %description polly-devel -l pl.UTF-8 | |
362 | Pliki nagłówkowe infrastruktury optymalizacji LLVM-a Polly. | |
363 | ||
d997b14b AM |
364 | %package -n clang |
365 | Summary: A C language family frontend for LLVM | |
621ec11f | 366 | Summary(pl.UTF-8): Frontend LLVM-a do języków z rodziny C |
d997b14b | 367 | Group: Development/Languages |
77d2fdeb | 368 | URL: https://clang.llvm.org/ |
8c514f23 | 369 | Requires: %{name} = %{version}-%{release} |
87977e26 | 370 | Requires: clang-libs = %{version}-%{release} |
d997b14b AM |
371 | |
372 | %description -n clang | |
373 | clang: noun 1. A loud, resonant, metallic sound. 2. The strident call | |
374 | of a crane or goose. 3. C-language family front-end toolkit. | |
375 | ||
376 | The goal of the Clang project is to create a new C, C++, Objective C | |
377 | and Objective C++ front-end for the LLVM compiler. Its tools are built | |
378 | as libraries and designed to be loosely-coupled and extendable. | |
379 | ||
621ec11f JB |
380 | %description -n clang -l pl.UTF-8 |
381 | clang (z angielskiego): 1. głośny, rezonujący, metaliczny dźwięk; 2. | |
382 | piskliwy odgłos żurawia lub gęsi; 3. narzędzia frontendowe dla języków | |
383 | z rodziny C. | |
384 | ||
385 | Celem projektu Clang jest utworzenie nowego frontendu dla kompilatora | |
386 | LLVM do języków C, C++, Objective C i Objective C++. Narzędzia są | |
387 | budowane jako biblioteki i zaprojektowane z myślą o swobodnym łączeniu | |
388 | i rozszerzaniu. | |
389 | ||
9eefd942 JR |
390 | %package -n clang-multilib |
391 | Summary: A C language family frontend for LLVM - 32-bit support | |
392 | Summary(pl.UTF-8): Frontend LLVM-a do języków z rodziny C - obsługa binariów 32-bitowych | |
9eefd942 | 393 | Group: Development/Languages |
77d2fdeb | 394 | URL: https://clang.llvm.org/ |
9eefd942 JR |
395 | Requires: clang = %{version}-%{release} |
396 | ||
397 | %description -n clang-multilib | |
398 | clang: noun 1. A loud, resonant, metallic sound. 2. The strident call | |
399 | of a crane or goose. 3. C-language family front-end toolkit. | |
400 | ||
401 | The goal of the Clang project is to create a new C, C++, Objective C | |
402 | and Objective C++ front-end for the LLVM compiler. Its tools are built | |
403 | as libraries and designed to be loosely-coupled and extendable. | |
404 | ||
405 | This package contains the C compiler support for producing 32-bit | |
406 | programs on 64-bit host. | |
407 | ||
408 | %description -n clang-multilib -l pl.UTF-8 | |
409 | clang (z angielskiego): 1. głośny, rezonujący, metaliczny dźwięk; 2. | |
410 | piskliwy odgłos żurawia lub gęsi; 3. narzędzia frontendowe dla języków | |
411 | z rodziny C. | |
412 | ||
413 | Celem projektu Clang jest utworzenie nowego frontendu dla kompilatora | |
414 | LLVM do języków C, C++, Objective C i Objective C++. Narzędzia są | |
415 | budowane jako biblioteki i zaprojektowane z myślą o swobodnym łączeniu | |
416 | i rozszerzaniu. | |
417 | ||
418 | Ten pakiet zawiera rozszerzenie kompilatora C o obsługę tworzenia | |
419 | programów 32-bitowych na maszynie 64-bitowej. | |
420 | ||
cb7d0198 JB |
421 | %package -n clang-libs |
422 | Summary: Clang shared libraries | |
423 | Summary(pl.UTF-8): Biblioteki współdzielone Clanga | |
424 | Group: Libraries | |
425 | URL: https://clang.llvm.org/ | |
d997b14b | 426 | |
cb7d0198 JB |
427 | %description -n clang-libs |
428 | Clang shared libraries. | |
d997b14b | 429 | |
cb7d0198 JB |
430 | %description -n clang-libs -l pl.UTF-8 |
431 | Biblioteki współdzielone Clanga. | |
621ec11f | 432 | |
9556f4c9 | 433 | %package -n clang-devel |
621ec11f JB |
434 | Summary: Header files for Clang |
435 | Summary(pl.UTF-8): Pliki nagłówkowe Clanga | |
9556f4c9 | 436 | Group: Development/Languages |
77d2fdeb | 437 | URL: https://clang.llvm.org/ |
8c514f23 | 438 | Requires: %{name}-devel = %{version}-%{release} |
9556f4c9 | 439 | Requires: clang = %{version}-%{release} |
07de6be6 | 440 | %{?with_polly:Requires: llvm-polly-devel = %{version}-%{release}} |
9556f4c9 ER |
441 | |
442 | %description -n clang-devel | |
443 | This package contains header files for the Clang compiler. | |
444 | ||
621ec11f JB |
445 | %description -n clang-devel -l pl.UTF-8 |
446 | Ten pakiet zawiera pliki nagłówkowe kompilatora Clang. | |
447 | ||
9556f4c9 ER |
448 | %package -n clang-doc |
449 | Summary: Documentation for Clang | |
621ec11f | 450 | Summary(pl.UTF-8): Dokumentacja do Clanga |
77d2fdeb | 451 | URL: https://clang.llvm.org/ |
9556f4c9 ER |
452 | Group: Documentation |
453 | Requires: %{name} = %{version}-%{release} | |
454 | ||
455 | %description -n clang-doc | |
456 | Documentation for the Clang compiler front-end. | |
457 | ||
621ec11f JB |
458 | %description -n clang-doc -l pl.UTF-8 |
459 | Dokumentacja do frontendu kompilatora Clang. | |
460 | ||
9556f4c9 ER |
461 | %package -n clang-apidocs |
462 | Summary: API documentation for Clang | |
621ec11f | 463 | Summary(pl.UTF-8): Dokumentacja API Clanga |
77d2fdeb | 464 | URL: https://clang.llvm.org/ |
9556f4c9 ER |
465 | Group: Development/Languages |
466 | Requires: clang-doc = %{version}-%{release} | |
467 | ||
468 | %description -n clang-apidocs | |
469 | API documentation for the Clang compiler. | |
470 | ||
621ec11f JB |
471 | %description -n clang-apidocs -l pl.UTF-8 |
472 | Dokumentacja API kompilatora Clang. | |
473 | ||
cb7d0198 JB |
474 | %package -n clang-analyzer |
475 | Summary: A source code analysis framework | |
476 | Summary(pl.UTF-8): Szkielet do analizy kodu źródłowego | |
477 | Group: Development/Languages | |
478 | URL: https://clang-analyzer.llvm.org/ | |
479 | Requires: clang = %{version}-%{release} | |
480 | # not picked up automatically since files are currently not instaled | |
481 | # in standard Python hierarchies yet | |
482 | Requires: python3 | |
483 | ||
484 | %description -n clang-analyzer | |
485 | The Clang Static Analyzer consists of both a source code analysis | |
486 | framework and a standalone tool that finds bugs in C and Objective-C | |
487 | programs. The standalone tool is invoked from the command-line, and is | |
488 | intended to run in tandem with a build of a project or code base. | |
489 | ||
490 | %description -n clang-analyzer -l pl.UTF-8 | |
491 | Clang Static Analyzer składa się ze szkieletu do analizy kodu | |
492 | źródłowego oraz samodzielnego narzędzia znajdującego błędy w | |
493 | programach w C i C++. Narzędzie jest wywoływane z linii poleceń, z | |
494 | myślą o uruchamianiu wraz z kompilacją projektu lub kodu. | |
495 | ||
b0068ae4 JB |
496 | %package -n clang-tools-extra |
497 | Summary: Extra tools for Clang | |
498 | Summary(pl.UTF-8): Dodatkowe narzędzia do kompilatora Clang | |
499 | Group: Development/Tools | |
77d2fdeb | 500 | URL: https://clang.llvm.org/docs/ClangTools.html |
b0068ae4 JB |
501 | Requires: clang = %{version}-%{release} |
502 | ||
503 | %description -n clang-tools-extra | |
504 | Extra tools for Clang. | |
505 | ||
506 | %description -n clang-tools-extra -l pl.UTF-8 | |
507 | Dodatkowe narzędzia do kompilatora Clang. | |
508 | ||
d13e7dd0 JB |
509 | %package -n bash-completion-clang |
510 | Summary: Bash completion for clang command | |
511 | Summary(pl.UTF-8): Bashowe dopełnianie składni polecenia clang | |
512 | Group: Applications/Shells | |
513 | Requires: bash-completion >= 2.0 | |
514 | Requires: clang = %{version}-%{release} | |
515 | ||
516 | %description -n bash-completion-clang | |
517 | Bash completion for clang command. | |
518 | ||
519 | %description -n bash-completion-clang -l pl.UTF-8 | |
520 | Bashowe dopełnianie składni polecenia clang. | |
521 | ||
d27b2b77 JB |
522 | %package -n flang |
523 | Summary: Fortran frontend for LLVM | |
524 | Summary(pl.UTF-8): Frontend LLVM-a do Fortranu | |
525 | Group: Development/Languages | |
526 | URL: http://flang.llvm.org/ | |
527 | Requires: %{name}-mlir = %{version}-%{release} | |
528 | ||
529 | %description -n flang | |
530 | Flang is a ground-up implementation of a Fortran front end written in | |
531 | modern C++. | |
532 | ||
533 | %description -n flang -l pl.UTF-8 | |
534 | Flang to napisana od podstaw we współczesnym C++ implementacja | |
535 | frontendu do Fortranu. | |
536 | ||
537 | %package -n flang-devel | |
538 | Summary: Fortran frontend for LLVM - development files | |
539 | Summary(pl.UTF-8): Frontend LLVM-a do Fortranu - pliki programistyczne | |
540 | Group: Development/Languages | |
541 | URL: http://flang.llvm.org/ | |
542 | Requires: %{name}-mlir-devel = %{version}-%{release} | |
543 | Requires: flang-devel = %{version}-%{release} | |
544 | ||
545 | %description -n flang-devel | |
546 | Development files for LLVM Fortran frontend. | |
547 | ||
548 | %description -n flang-devel -l pl.UTF-8 | |
549 | Pliki prosramistyczne frontendu LLVM do Fortranu. | |
550 | ||
ba1cf74d JB |
551 | %package -n lld |
552 | Summary: The LLVM linker | |
553 | Summary(pl.UTF-8): Konsolidator z projektu LLVM | |
554 | Group: Development/Libraries | |
77d2fdeb | 555 | URL: https://lld.llvm.org/ |
ba1cf74d JB |
556 | Requires: %{name} = %{version}-%{release} |
557 | ||
558 | %description -n lld | |
559 | lld is a new set of modular code for creating linker tools. | |
560 | ||
561 | %description -n lld -l pl.UTF-8 | |
562 | lld to nowy zbiór modularnego kodu do tworzenia narzędzi | |
563 | konsolidujących. | |
564 | ||
565 | %package -n lld-devel | |
566 | Summary: Development files for LLD linker tools | |
567 | Summary(pl.UTF-8): Pliki programistyczne narzędzi konsolidujących LLD | |
568 | Group: Development/Tools | |
77d2fdeb | 569 | URL: https://lld.llvm.org/ |
ba1cf74d | 570 | Requires: %{name}-devel = %{version}-%{release} |
78991aba | 571 | Requires: xar-devel >= 1.6 |
ba1cf74d JB |
572 | |
573 | %description -n lld-devel | |
574 | Development files for LLD linker tools. | |
575 | ||
576 | %description -n lld-devel -l pl.UTF-8 | |
577 | Pliki programistyczne narzędzi konsolidujących LLD. | |
578 | ||
5a7ac479 JB |
579 | %package -n lldb |
580 | Summary: Next generation high-performance debugger | |
581 | Summary(pl.UTF-8): Wydajny debugger nowej generacji | |
582 | Group: Development/Debuggers | |
77d2fdeb | 583 | URL: https://lldb.llvm.org/ |
5a7ac479 | 584 | Requires: %{name} = %{version}-%{release} |
40bef2a3 | 585 | Requires: python3-six |
5a7ac479 JB |
586 | |
587 | %description -n lldb | |
588 | LLDB is a next generation, high-performance debugger. It is built as a | |
589 | set of reusable components which highly leverage existing libraries in | |
590 | the larger LLVM Project, such as the Clang expression parser and LLVM | |
591 | disassembler. | |
592 | ||
593 | %description -n lldb -l pl.UTF-8 | |
594 | LLDB to wydajny debugger nowej generacji. Jest zbudowany w oparciu o | |
595 | komponenty wielokrotnego użytku, wykorzystujące istniejące biblioteki | |
596 | w projekcie LLVM, takie jak analizator wyrażeń kompilatora Clang oraz | |
597 | disasembler LLVM. | |
598 | ||
599 | %package -n lldb-devel | |
ba1cf74d JB |
600 | Summary: Development files for LLDB debugger |
601 | Summary(pl.UTF-8): Pliki programistyczne debuggera LLDB | |
5a7ac479 | 602 | Group: Development/Libraries |
77d2fdeb | 603 | URL: https://lldb.llvm.org/ |
5a7ac479 JB |
604 | Requires: %{name}-devel = %{version}-%{release} |
605 | Requires: clang-devel = %{version}-%{release} | |
606 | Requires: lldb = %{version}-%{release} | |
607 | ||
608 | %description -n lldb-devel | |
ba1cf74d | 609 | Development files for LLDB debugger. |
5a7ac479 JB |
610 | |
611 | %description -n lldb-devel -l pl.UTF-8 | |
ba1cf74d | 612 | Pliki programistyczne debuggera LLDB. |
5a7ac479 | 613 | |
9556f4c9 ER |
614 | %package ocaml |
615 | Summary: OCaml binding for LLVM | |
621ec11f JB |
616 | Summary(pl.UTF-8): Wiązanie OCamla do LLVM-a |
617 | Group: Libraries | |
9556f4c9 | 618 | Requires: %{name} = %{version}-%{release} |
c450bf27 | 619 | %if %{with ocaml} |
9556f4c9 | 620 | %requires_eq ocaml-runtime |
c450bf27 | 621 | %endif |
9556f4c9 | 622 | |
621ec11f | 623 | %description ocaml |
9556f4c9 ER |
624 | OCaml binding for LLVM. |
625 | ||
621ec11f JB |
626 | %description ocaml -l pl.UTF-8 |
627 | Wiązanie OCamla do LLVM-a. | |
628 | ||
9556f4c9 | 629 | %package ocaml-devel |
621ec11f JB |
630 | Summary: Development files for LLVM OCaml binding |
631 | Summary(pl.UTF-8): Pliki programistyczne wiązania OCamla do LLVM-a | |
9556f4c9 ER |
632 | Group: Development/Libraries |
633 | Requires: %{name}-devel = %{version}-%{release} | |
634 | Requires: %{name}-ocaml = %{version}-%{release} | |
635 | ||
636 | %description ocaml-devel | |
637 | The llvm-ocaml-devel package contains libraries and signature files | |
621ec11f JB |
638 | for developing applications that use llvm-ocaml binding. |
639 | ||
640 | %description ocaml-devel -l pl.UTF-8 | |
641 | Ten pakiet zawiera biblioteki i pliki sygnatur do tworzenia aplikacji | |
642 | wykorzystujących wiązanie llvm-ocaml. | |
643 | ||
9556f4c9 ER |
644 | %package ocaml-doc |
645 | Summary: Documentation for LLVM's OCaml binding | |
621ec11f | 646 | Summary(pl.UTF-8): Dokumentacja wiązania OCamla do LLVM-a |
9556f4c9 ER |
647 | Group: Documentation |
648 | Requires: %{name}-ocaml = %{version}-%{release} | |
649 | ||
650 | %description ocaml-doc | |
651 | HTML documentation for LLVM's OCaml binding. | |
652 | ||
621ec11f JB |
653 | %description ocaml-doc -l pl.UTF-8 |
654 | Dokumentacja HTML wiązania OCamla do LLVM-a. | |
655 | ||
d7447383 JR |
656 | %package opt-viewer |
657 | Summary: Optimization records visualization tools | |
83d2be6c | 658 | Summary(pl.UTF-8): Narzędzia do wizualizacji rekordów optymalizacji |
d7447383 JR |
659 | Group: Development/Tools |
660 | Requires: %{name} = %{version} | |
8e9fbe9e | 661 | BuildArch: noarch |
d7447383 JR |
662 | |
663 | %description opt-viewer | |
664 | Optimization records visualization tools. | |
665 | ||
83d2be6c JB |
666 | %description opt-viewer -l pl.UTF-8 |
667 | Narzędzia do wizualizacji rekordów optymalizacji. | |
668 | ||
d7447383 | 669 | %package -n vim-plugin-clang |
83d2be6c JB |
670 | Summary: Clang format and rename integration for Vim |
671 | Summary(pl.UTF-8): Integracja narzędzi Clang do formatowania i zmiany nazw z Vimem | |
d7447383 JR |
672 | Group: Applications/Editors/Vim |
673 | Requires: vim-rt >= 4:7.0 | |
674 | BuildArch: noarch | |
675 | ||
676 | %description -n vim-plugin-clang | |
83d2be6c JB |
677 | Clang format and rename integration for Vim. |
678 | ||
679 | %description -n vim-plugin-clang -l pl.UTF-8 | |
680 | Integracja narzędzi Clang do formatowania i zmiany nazw z Vimem. | |
d7447383 | 681 | |
aa11c230 | 682 | %prep |
0fd19552 | 683 | %setup -q -n %{name}-%{version}.src -a1 %{?with_rt:-a2} %{?with_lldb:-a3} %{?with_polly:-a4} -a5 -a6 %{?with_flang:-a7} %{?with_mlir:-a8} -a9 |
44d18de7 | 684 | %{__mv} clang-%{version}.src tools/clang |
5013c7ea JB |
685 | %{?with_rt:%{__mv} compiler-rt-%{version}.src projects/compiler-rt} |
686 | %{?with_lldb:%{__mv} lldb-%{version}.src tools/lldb} | |
687 | %{?with_polly:%{__mv} polly-%{version}.src tools/polly} | |
d706a70d JB |
688 | %{__mv} clang-tools-extra-%{version}.src tools/clang/tools/extra |
689 | %{__mv} lld-%{version}.src tools/lld | |
1a356f89 JB |
690 | %if %{with flang} |
691 | %{__mv} flang-%{version}.src tools/flang | |
d27b2b77 JB |
692 | %endif |
693 | %if %{with mlir} | |
1a356f89 JB |
694 | %{__mv} mlir tools/mlir |
695 | %endif | |
0fd19552 | 696 | %{__mv} cmake-%{version}.src cmake-utils |
5a7ac479 | 697 | |
9f7b77bd | 698 | %patch1 -p1 |
200602f4 | 699 | %patch2 -p1 |
9f7b77bd | 700 | %patch3 -p1 |
d96b39d3 | 701 | %patch4 -p1 |
d706a70d | 702 | %patch5 -p1 |
1a356f89 JB |
703 | %if %{with flang} |
704 | %patch6 -p1 | |
705 | %endif | |
40bef2a3 | 706 | %patch7 -p1 |
4a967aa9 | 707 | %patch8 -p1 |
e25801fb | 708 | %patch9 -p1 |
90b20139 JP |
709 | %if %{with rt} |
710 | %patch10 -p1 | |
711 | %endif | |
0fd19552 | 712 | %patch11 -p1 |
ce9cc204 | 713 | |
ef49a424 | 714 | grep -rl /usr/bin/env projects tools utils | xargs sed -i -e '1{ |
90b20139 | 715 | s,^#!.*bin/env python3\?,#!%{__python3}, |
bacc8b96 ER |
716 | s,^#!.*bin/env perl,#!%{__perl}, |
717 | }' | |
718 | ||
d7447383 | 719 | find -name '*.py' -print0 | xargs -0 sed -i -e '1{ |
40bef2a3 | 720 | s,^#!.*bin/python.*,#!%{__python3}, |
d7447383 JR |
721 | }' |
722 | ||
d27b2b77 JB |
723 | %if %{with flang} |
724 | %{__sed} -i -e '1s,/usr/bin/env bash,/bin/bash,' tools/flang/tools/f18/flang.in | |
725 | %endif | |
726 | ||
d756c460 | 727 | %build |
41876fe7 | 728 | install -d build |
ebde279d | 729 | |
d997b14b | 730 | # Disabling assertions now, rec. by pure and needed for OpenGTL |
9556f4c9 | 731 | # TESTFIX no PIC on ix86: http://llvm.org/bugs/show_bug.cgi?id=3801 |
41876fe7 | 732 | cd build |
5e689738 | 733 | CPPFLAGS="%{rpmcppflags} -D_FILE_OFFSET_BITS=64" |
2bbd0701 | 734 | |
1431eb62 JP |
735 | %if %{with lowmem} |
736 | export CFLAGS="%{rpmcflags} -g0" | |
737 | export CXXFLAGS="%{rpmcxxflags} -g0" | |
738 | export LDFLAGS="%{rpmldflags} -Wl,--reduce-memory-overheads" | |
739 | %endif | |
740 | ||
200602f4 JB |
741 | %cmake .. \ |
742 | -DBUILD_SHARED_LIBS:BOOL=OFF \ | |
200602f4 | 743 | -DENABLE_LINKER_BUILD_ID:BOOL=ON \ |
0fd19552 | 744 | -DLLVM_COMMON_CMAKE_UTILS="%{_builddir}/%{buildsubdir}/cmake-utils" \ |
200602f4 JB |
745 | -DLLVM_BINDINGS_LIST:LIST="%{?with_ocaml:ocaml}" \ |
746 | -DLLVM_BINUTILS_INCDIR:STRING=%{_includedir} \ | |
747 | -DLLVM_BUILD_LLVM_DYLIB:BOOL=ON \ | |
748 | -DLLVM_ENABLE_ASSERTIONS:BOOL=OFF \ | |
0fd19552 | 749 | -DLLVM_INSTALL_PACKAGE_DIR=%(realpath -m "--relative-to=%{_prefix}" "%{_libdir}/cmake/llvm") \ |
90b20139 | 750 | -DLLVM_TOOLS_INSTALL_DIR=%(realpath -m "--relative-to=%{_prefix}" "%{_bindir}") \ |
9556f4c9 | 751 | %if %{with apidocs} |
41876fe7 | 752 | -DLLVM_ENABLE_DOXYGEN:BOOL=ON \ |
d997b14b | 753 | %endif |
44d18de7 | 754 | %{?with_cxxmodules:-DLLVM_ENABLE_MODULES:BOOL=ON} \ |
200602f4 JB |
755 | -DLLVM_ENABLE_PIC:BOOL=ON \ |
756 | -DLLVM_ENABLE_RTTI:BOOL=ON \ | |
41876fe7 JR |
757 | %if %{with doc} |
758 | -DLLVM_ENABLE_SPHINX:BOOL=ON \ | |
759 | %endif | |
90b20139 | 760 | -DLLVM_INCLUDE_BENCHMARKS:BOOL=OFF \ |
ad697ab7 | 761 | %{?with_z3:-DLLVM_ENABLE_Z3_SOLVER:BOOL=ON} \ |
200602f4 JB |
762 | %if "%{_lib}" == "lib64" |
763 | -DLLVM_LIBDIR_SUFFIX:STRING=64 \ | |
764 | %endif | |
765 | %if "%{_lib}" == "libx32" | |
766 | -DLLVM_LIBDIR_SUFFIX:STRING=x32 \ | |
767 | %endif | |
9a23736f | 768 | -DLLVM_LINK_LLVM_DYLIB:BOOL=ON \ |
4cc5652a | 769 | -DLLVM_TARGET_ARCH:STRING=%{_target_base_arch} \ |
67331d50 | 770 | -DLLVM_DEFAULT_TARGET_TRIPLE:STRING=%{_target_platform} \ |
1431eb62 JP |
771 | %if %{with lowmem} |
772 | -DLLVM_PARALLEL_LINK_JOBS:STRING=1 \ | |
773 | %endif | |
a531db5e | 774 | -DLLVM_TARGETS_TO_BUILD="%{targets_to_build}" \ |
8d52ede4 | 775 | %if %{with polly} |
a5fe2ce1 | 776 | %{cmake_on_off target_nvptx POLLY_ENABLE_GPGPU_CODEGEN} \ |
8d52ede4 | 777 | %endif |
cfaa3167 JP |
778 | -DSPHINX_WARNINGS_AS_ERRORS=OFF \ |
779 | %if %{with rt} | |
780 | %ifarch x32 | |
781 | -DCOMPILER_RT_BUILD_MEMPROF:BOOL=OFF | |
782 | %endif | |
783 | %endif | |
41876fe7 | 784 | |
d997b14b | 785 | %{__make} \ |
1628dc68 | 786 | VERBOSE=1 \ |
d997b14b | 787 | OPTIMIZE_OPTION="%{rpmcflags} %{rpmcppflags}" |
aa11c230 | 788 | |
827664e9 | 789 | %if %{with tests} |
9556f4c9 ER |
790 | %{__make} check 2>&1 | tee llvm-testlog.txt |
791 | %{__make} -C tools/clang test 2>&1 | tee clang-testlog.txt | |
792 | %endif | |
793 | ||
b0068ae4 | 794 | %if %{with doc} |
41876fe7 JR |
795 | %{__make} -C docs docs-llvm-html |
796 | %{__make} -C docs docs-llvm-man | |
c6c890ee | 797 | %if %{with ocaml} |
41876fe7 | 798 | %{__make} -C docs ocaml_doc |
c6c890ee | 799 | %endif |
41876fe7 JR |
800 | %{__make} -C tools/clang/docs docs-clang-html |
801 | %{__make} -C tools/clang/docs docs-clang-man | |
802 | %{__make} -C tools/lld/docs docs-lld-html | |
d1e2ca8d | 803 | # workaround failed import of _lldb |
90b20139 | 804 | cp -pnL %{_lib}/liblldb.so tools/lldb/docs/lldb/_lldb.so |
47e02cfd JP |
805 | %{__make} \ |
806 | LD_LIBRARY_PATH=$(pwd)/%{_lib} \ | |
40bef2a3 | 807 | -C tools/lldb/docs lldb-python-doc-package |
41876fe7 | 808 | %{__make} -C tools/lldb/docs lldb-cpp-doc |
dd9350c7 JB |
809 | %endif |
810 | ||
aa11c230 | 811 | %install |
812 | rm -rf $RPM_BUILD_ROOT | |
5013c7ea | 813 | |
464fc37c | 814 | %{__make} -j1 -C build install \ |
aa11c230 | 815 | DESTDIR=$RPM_BUILD_ROOT |
816 | ||
6df3b432 | 817 | # only some .pyc files are created by make install |
40bef2a3 JP |
818 | %py3_comp $RPM_BUILD_ROOT%{py3_sitedir} |
819 | %py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir} | |
6df3b432 | 820 | |
e25801fb JB |
821 | # Adjust static analyzer installation (see -libexecdir patch) |
822 | abs_ca_libexecdir="%{_libexecdir}/clang-analyzer" | |
823 | rel_ca_libexecdir="${abs_ca_libexecdir#%{_prefix}}" | |
824 | %{__sed} -i -e "s,/\.\./libexec/,/..${rel_ca_libexecdir}/," $RPM_BUILD_ROOT%{_bindir}/scan-build | |
40bef2a3 JP |
825 | %py3_comp $RPM_BUILD_ROOT%{_datadir}/scan-view |
826 | %py3_ocomp $RPM_BUILD_ROOT%{_datadir}/scan-view | |
d997b14b | 827 | |
6df3b432 | 828 | # not installed by cmake buildsystem |
6df3b432 JB |
829 | install build/bin/pp-trace $RPM_BUILD_ROOT%{_bindir} |
830 | ||
b0068ae4 | 831 | %if %{with doc} |
6df3b432 | 832 | cp -p build/docs/man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1 |
b883cf1e | 833 | # these tools are not installed |
95bd4382 | 834 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/{FileCheck,clang-tblgen,lldb-tblgen}.1 |
b0068ae4 JB |
835 | # make links |
836 | echo '.so llvm-ar.1' > $RPM_BUILD_ROOT%{_mandir}/man1/llvm-ranlib.1 | |
dd9350c7 JB |
837 | %endif |
838 | ||
d997b14b | 839 | # Move documentation back to build directory |
2bbd0701 | 840 | %if %{with ocaml} |
6df3b432 | 841 | rm -rf ocamldocs |
5013c7ea | 842 | %{__mv} $RPM_BUILD_ROOT%{_docdir}/llvm/ocaml-html ocamldocs |
2bbd0701 | 843 | %endif |
9556f4c9 ER |
844 | |
845 | # and separate the apidoc | |
846 | %if %{with apidocs} | |
6df3b432 JB |
847 | rm -rf clang-apidoc |
848 | cp -a build/tools/clang/docs/html clang-apidoc | |
9556f4c9 | 849 | %endif |
d997b14b AM |
850 | |
851 | # And prepare Clang documentation | |
d997b14b | 852 | rm -rf clang-docs |
9556f4c9 | 853 | install -d clang-docs |
827664e9 | 854 | for f in LICENSE.TXT NOTES.txt README.txt; do |
9556f4c9 | 855 | ln tools/clang/$f clang-docs |
d997b14b | 856 | done |
021b3c3d | 857 | |
d13e7dd0 JB |
858 | install -d $RPM_BUILD_ROOT%{bash_compdir} |
859 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/clang/bash-autocomplete.sh $RPM_BUILD_ROOT%{bash_compdir}/clang | |
860 | ||
d2551984 | 861 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/c-index-test |
6df3b432 JB |
862 | # not this OS |
863 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/clang/clang-format-bbedit.applescript | |
d706a70d | 864 | # use system six |
406426c9 | 865 | %{?with_lldb:%{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/{,__pycache__/}six*.py*} |
03073220 JK |
866 | # it seems it is used internally by an extra clang tool |
867 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libfindAllSymbols.a | |
6832a5c5 | 868 | |
fba35f64 | 869 | # disable completeness check incompatible with split packaging |
d27b2b77 JB |
870 | %{__sed} -i -e '/^foreach(target .*IMPORT_CHECK_TARGETS/,/^endforeach/d; /^unset(_IMPORT_CHECK_TARGETS)/d' \ |
871 | $RPM_BUILD_ROOT%{_libdir}/cmake/clang/ClangTargets.cmake \ | |
872 | %if %{with flang} | |
873 | $RPM_BUILD_ROOT%{_libdir}/cmake/flang/FlangTargets.cmake \ | |
874 | %endif | |
875 | $RPM_BUILD_ROOT%{_libdir}/cmake/lld/LLDTargets.cmake \ | |
876 | $RPM_BUILD_ROOT%{_libdir}/cmake/llvm/LLVMExports.cmake \ | |
877 | %if %{with mlir} | |
878 | $RPM_BUILD_ROOT%{_libdir}/cmake/mlir/MLIRTargets.cmake | |
879 | %endif | |
fba35f64 | 880 | |
aa11c230 | 881 | %clean |
882 | rm -rf $RPM_BUILD_ROOT | |
883 | ||
8c514f23 JB |
884 | %post libs -p /sbin/ldconfig |
885 | %postun libs -p /sbin/ldconfig | |
aa11c230 | 886 | |
d27b2b77 JB |
887 | %post mlir -p /sbin/ldconfig |
888 | %postun mlir -p /sbin/ldconfig | |
889 | ||
5013c7ea JB |
890 | %post -n clang-libs -p /sbin/ldconfig |
891 | %postun -n clang-libs -p /sbin/ldconfig | |
5a7ac479 JB |
892 | |
893 | %post -n lldb -p /sbin/ldconfig | |
894 | %postun -n lldb -p /sbin/ldconfig | |
895 | ||
aa11c230 | 896 | %files |
897 | %defattr(644,root,root,755) | |
8132e62b | 898 | %doc CREDITS.TXT LICENSE.TXT README.txt %{?with_tests:llvm-testlog.txt} |
a9beeab5 | 899 | %attr(755,root,root) %{_bindir}/bugpoint |
8f8cf7a8 | 900 | %attr(755,root,root) %{_bindir}/dsymutil |
a9beeab5 JB |
901 | %attr(755,root,root) %{_bindir}/llc |
902 | %attr(755,root,root) %{_bindir}/lli | |
d1e2ca8d | 903 | %attr(755,root,root) %{_bindir}/llvm-addr2line |
8132e62b JB |
904 | %attr(755,root,root) %{_bindir}/llvm-ar |
905 | %attr(755,root,root) %{_bindir}/llvm-as | |
906 | %attr(755,root,root) %{_bindir}/llvm-bcanalyzer | |
40bef2a3 | 907 | %attr(755,root,root) %{_bindir}/llvm-bitcode-strip |
d2551984 | 908 | %attr(755,root,root) %{_bindir}/llvm-c-test |
5013c7ea | 909 | %attr(755,root,root) %{_bindir}/llvm-cat |
23ae6496 | 910 | %attr(755,root,root) %{_bindir}/llvm-cfi-verify |
827664e9 | 911 | %attr(755,root,root) %{_bindir}/llvm-cov |
265e167c | 912 | %attr(755,root,root) %{_bindir}/llvm-cvtres |
5013c7ea JB |
913 | %attr(755,root,root) %{_bindir}/llvm-cxxdump |
914 | %attr(755,root,root) %{_bindir}/llvm-cxxfilt | |
0bc9c5c9 | 915 | %attr(755,root,root) %{_bindir}/llvm-cxxmap |
0fd19552 | 916 | %attr(755,root,root) %{_bindir}/llvm-debuginfod |
90b20139 | 917 | %attr(755,root,root) %{_bindir}/llvm-debuginfod-find |
8132e62b JB |
918 | %attr(755,root,root) %{_bindir}/llvm-diff |
919 | %attr(755,root,root) %{_bindir}/llvm-dis | |
265e167c | 920 | %attr(755,root,root) %{_bindir}/llvm-dlltool |
827664e9 | 921 | %attr(755,root,root) %{_bindir}/llvm-dwarfdump |
0fd19552 | 922 | %attr(755,root,root) %{_bindir}/llvm-dwarfutil |
264482e1 | 923 | %attr(755,root,root) %{_bindir}/llvm-dwp |
8f8cf7a8 | 924 | %attr(755,root,root) %{_bindir}/llvm-exegesis |
8132e62b | 925 | %attr(755,root,root) %{_bindir}/llvm-extract |
f784323b | 926 | %attr(755,root,root) %{_bindir}/llvm-gsymutil |
ef49a424 JP |
927 | %attr(755,root,root) %{_bindir}/llvm-ifs |
928 | %attr(755,root,root) %{_bindir}/llvm-install-name-tool | |
d1e2ca8d | 929 | %attr(755,root,root) %{_bindir}/llvm-jitlink |
6df3b432 | 930 | %attr(755,root,root) %{_bindir}/llvm-lib |
40bef2a3 | 931 | %attr(755,root,root) %{_bindir}/llvm-libtool-darwin |
8132e62b | 932 | %attr(755,root,root) %{_bindir}/llvm-link |
d1e2ca8d | 933 | %attr(755,root,root) %{_bindir}/llvm-lipo |
3c402b7e | 934 | %attr(755,root,root) %{_bindir}/llvm-lto |
5013c7ea | 935 | %attr(755,root,root) %{_bindir}/llvm-lto2 |
8132e62b | 936 | %attr(755,root,root) %{_bindir}/llvm-mc |
8f8cf7a8 | 937 | %attr(755,root,root) %{_bindir}/llvm-mca |
f784323b | 938 | %attr(755,root,root) %{_bindir}/llvm-ml |
5013c7ea | 939 | %attr(755,root,root) %{_bindir}/llvm-modextract |
265e167c | 940 | %attr(755,root,root) %{_bindir}/llvm-mt |
8132e62b | 941 | %attr(755,root,root) %{_bindir}/llvm-nm |
23ae6496 | 942 | %attr(755,root,root) %{_bindir}/llvm-objcopy |
8132e62b | 943 | %attr(755,root,root) %{_bindir}/llvm-objdump |
5013c7ea | 944 | %attr(755,root,root) %{_bindir}/llvm-opt-report |
8d52ede4 | 945 | %attr(755,root,root) %{_bindir}/llvm-otool |
265e167c | 946 | %attr(755,root,root) %{_bindir}/llvm-pdbutil |
b883cf1e | 947 | %attr(755,root,root) %{_bindir}/llvm-profdata |
40bef2a3 | 948 | %attr(755,root,root) %{_bindir}/llvm-profgen |
8132e62b | 949 | %attr(755,root,root) %{_bindir}/llvm-ranlib |
23ae6496 | 950 | %attr(755,root,root) %{_bindir}/llvm-rc |
265e167c | 951 | %attr(755,root,root) %{_bindir}/llvm-readelf |
f981d747 | 952 | %attr(755,root,root) %{_bindir}/llvm-readobj |
ef49a424 | 953 | %attr(755,root,root) %{_bindir}/llvm-reduce |
0fd19552 | 954 | %attr(755,root,root) %{_bindir}/llvm-remark-size-diff |
827664e9 | 955 | %attr(755,root,root) %{_bindir}/llvm-rtdyld |
8d52ede4 | 956 | %attr(755,root,root) %{_bindir}/llvm-sim |
827664e9 | 957 | %attr(755,root,root) %{_bindir}/llvm-size |
264482e1 | 958 | %attr(755,root,root) %{_bindir}/llvm-split |
8f8cf7a8 | 959 | %attr(755,root,root) %{_bindir}/llvm-strip |
f981d747 | 960 | %attr(755,root,root) %{_bindir}/llvm-stress |
5013c7ea | 961 | %attr(755,root,root) %{_bindir}/llvm-strings |
1628dc68 | 962 | %attr(755,root,root) %{_bindir}/llvm-symbolizer |
8d52ede4 | 963 | %attr(755,root,root) %{_bindir}/llvm-tapi-diff |
827664e9 | 964 | %attr(755,root,root) %{_bindir}/llvm-tblgen |
90b20139 | 965 | %attr(755,root,root) %{_bindir}/llvm-tli-checker |
8f8cf7a8 | 966 | %attr(755,root,root) %{_bindir}/llvm-undname |
8d52ede4 | 967 | %attr(755,root,root) %{_bindir}/llvm-windres |
5013c7ea | 968 | %attr(755,root,root) %{_bindir}/llvm-xray |
8132e62b | 969 | %attr(755,root,root) %{_bindir}/opt |
d706a70d | 970 | %attr(755,root,root) %{_bindir}/sancov |
03073220 | 971 | %attr(755,root,root) %{_bindir}/sanstats |
40bef2a3 | 972 | %attr(755,root,root) %{_bindir}/split-file |
0fd19552 | 973 | %attr(755,root,root) %{_bindir}/tblgen-lsp-server |
4ba3b2b3 | 974 | %attr(755,root,root) %{_bindir}/verify-uselistorder |
b0068ae4 | 975 | %if %{with doc} |
a9beeab5 | 976 | %{_mandir}/man1/bugpoint.1* |
23ae6496 | 977 | %{_mandir}/man1/dsymutil.1* |
a7973f21 | 978 | %{_mandir}/man1/lit.1* |
a9beeab5 JB |
979 | %{_mandir}/man1/llc.1* |
980 | %{_mandir}/man1/lli.1* | |
d1e2ca8d | 981 | %{_mandir}/man1/llvm-addr2line.1* |
8132e62b JB |
982 | %{_mandir}/man1/llvm-ar.1* |
983 | %{_mandir}/man1/llvm-as.1* | |
984 | %{_mandir}/man1/llvm-bcanalyzer.1* | |
f981d747 | 985 | %{_mandir}/man1/llvm-cov.1* |
d1e2ca8d | 986 | %{_mandir}/man1/llvm-cxxfilt.1* |
0bc9c5c9 | 987 | %{_mandir}/man1/llvm-cxxmap.1* |
8132e62b JB |
988 | %{_mandir}/man1/llvm-diff.1* |
989 | %{_mandir}/man1/llvm-dis.1* | |
b883cf1e | 990 | %{_mandir}/man1/llvm-dwarfdump.1* |
0fd19552 | 991 | %{_mandir}/man1/llvm-dwarfutil.1* |
8f8cf7a8 | 992 | %{_mandir}/man1/llvm-exegesis.1* |
8132e62b | 993 | %{_mandir}/man1/llvm-extract.1* |
0fd19552 | 994 | %{_mandir}/man1/llvm-ifs.1* |
40bef2a3 | 995 | %{_mandir}/man1/llvm-install-name-tool.1* |
d706a70d | 996 | %{_mandir}/man1/llvm-lib.1* |
40bef2a3 | 997 | %{_mandir}/man1/llvm-libtool-darwin.1* |
8132e62b | 998 | %{_mandir}/man1/llvm-link.1* |
d1e2ca8d | 999 | %{_mandir}/man1/llvm-lipo.1* |
ef49a424 | 1000 | %{_mandir}/man1/llvm-locstats.1* |
8f8cf7a8 | 1001 | %{_mandir}/man1/llvm-mca.1* |
8132e62b | 1002 | %{_mandir}/man1/llvm-nm.1* |
d1e2ca8d | 1003 | %{_mandir}/man1/llvm-objcopy.1* |
0bc9c5c9 | 1004 | %{_mandir}/man1/llvm-objdump.1* |
8d52ede4 | 1005 | %{_mandir}/man1/llvm-otool.1* |
23ae6496 | 1006 | %{_mandir}/man1/llvm-pdbutil.1* |
b883cf1e | 1007 | %{_mandir}/man1/llvm-profdata.1* |
40bef2a3 | 1008 | %{_mandir}/man1/llvm-profgen.1* |
8132e62b | 1009 | %{_mandir}/man1/llvm-ranlib.1* |
d1e2ca8d | 1010 | %{_mandir}/man1/llvm-readelf.1* |
c999855f | 1011 | %{_mandir}/man1/llvm-readobj.1* |
0fd19552 | 1012 | %{_mandir}/man1/llvm-remark-size-diff.1* |
d1e2ca8d | 1013 | %{_mandir}/man1/llvm-size.1* |
f981d747 | 1014 | %{_mandir}/man1/llvm-stress.1* |
d1e2ca8d JP |
1015 | %{_mandir}/man1/llvm-strings.1* |
1016 | %{_mandir}/man1/llvm-strip.1* | |
1628dc68 | 1017 | %{_mandir}/man1/llvm-symbolizer.1* |
8d52ede4 | 1018 | %{_mandir}/man1/llvm-tblgen.1* |
90b20139 | 1019 | %{_mandir}/man1/llvm-tli-checker.1* |
a9beeab5 | 1020 | %{_mandir}/man1/opt.1* |
95bd4382 | 1021 | %{_mandir}/man1/tblgen.1* |
b0068ae4 | 1022 | %endif |
bc88141a | 1023 | |
8c514f23 JB |
1024 | %files libs |
1025 | %defattr(644,root,root,755) | |
2379ea21 | 1026 | %attr(755,root,root) %{_libdir}/LLVMgold.so |
9a23736f JB |
1027 | %attr(755,root,root) %{_libdir}/libLLVM-%{abi}.so |
1028 | # non-soname symlink | |
1029 | %attr(755,root,root) %{_libdir}/libLLVM-%{version}.so | |
0fd19552 JP |
1030 | %attr(755,root,root) %{_libdir}/libLTO.so.15 |
1031 | %attr(755,root,root) %{_libdir}/libRemarks.so.15 | |
1032 | %attr(755,root,root) %{_libdir}/libclang-cpp.so.15 | |
8c514f23 | 1033 | |
bc88141a ER |
1034 | %files devel |
1035 | %defattr(644,root,root,755) | |
1036 | %attr(755,root,root) %{_bindir}/llvm-config | |
9a23736f | 1037 | %attr(755,root,root) %{_libdir}/libLLVM.so |
5013c7ea | 1038 | %attr(755,root,root) %{_libdir}/libLTO.so |
d1e2ca8d JP |
1039 | %attr(755,root,root) %{_libdir}/libRemarks.so |
1040 | %attr(755,root,root) %{_libdir}/libclang-cpp.so | |
d706a70d | 1041 | %{_libdir}/libLLVM*.a |
8132e62b JB |
1042 | %{_includedir}/llvm |
1043 | %{_includedir}/llvm-c | |
9ace1f65 | 1044 | %{_libdir}/cmake/llvm |
b0068ae4 | 1045 | %if %{with doc} |
8132e62b | 1046 | %{_mandir}/man1/llvm-config.1* |
b0068ae4 | 1047 | %endif |
bc88141a | 1048 | |
6df3b432 JB |
1049 | #%files doc |
1050 | #%defattr(644,root,root,755) | |
9556f4c9 ER |
1051 | |
1052 | %if %{with apidocs} | |
1053 | %files apidocs | |
1054 | %defattr(644,root,root,755) | |
1055 | %doc apidoc/* | |
1056 | %endif | |
1057 | ||
d27b2b77 JB |
1058 | %if %{with mlir} |
1059 | %files mlir | |
1060 | %defattr(644,root,root,755) | |
1061 | %attr(755,root,root) %{_bindir}/mlir-cpu-runner | |
d27b2b77 JB |
1062 | %attr(755,root,root) %{_bindir}/mlir-linalg-ods-yaml-gen |
1063 | %attr(755,root,root) %{_bindir}/mlir-lsp-server | |
1064 | %attr(755,root,root) %{_bindir}/mlir-opt | |
0fd19552 | 1065 | %attr(755,root,root) %{_bindir}/mlir-pdll-lsp-server* |
d27b2b77 JB |
1066 | %attr(755,root,root) %{_bindir}/mlir-reduce |
1067 | %attr(755,root,root) %{_bindir}/mlir-tblgen | |
1068 | %attr(755,root,root) %{_bindir}/mlir-translate | |
0fd19552 JP |
1069 | %attr(755,root,root) %{_libdir}/libMLIR.so.15 |
1070 | %attr(755,root,root) %{_libdir}/libmlir_async_runtime.so.15 | |
1071 | %attr(755,root,root) %{_libdir}/libmlir_c_runner_utils.so.15 | |
1072 | %attr(755,root,root) %{_libdir}/libmlir_runner_utils.so.15 | |
846aaadd | 1073 | %if %{with doc} |
d27b2b77 | 1074 | %{_mandir}/man1/mlir-tblgen.1* |
846aaadd | 1075 | %endif |
d27b2b77 JB |
1076 | |
1077 | %files mlir-devel | |
1078 | %defattr(644,root,root,755) | |
1079 | %attr(755,root,root) %{_libdir}/libMLIR.so | |
1080 | %attr(755,root,root) %{_libdir}/libmlir_async_runtime.so | |
1081 | %attr(755,root,root) %{_libdir}/libmlir_c_runner_utils.so | |
1082 | %attr(755,root,root) %{_libdir}/libmlir_runner_utils.so | |
1083 | %{_libdir}/libMLIR*.a | |
1084 | %{_includedir}/mlir | |
1085 | %{_includedir}/mlir-c | |
1086 | %{_libdir}/cmake/mlir | |
1087 | %endif | |
1088 | ||
b0068ae4 JB |
1089 | %if %{with polly} |
1090 | %files polly | |
1091 | %defattr(644,root,root,755) | |
8d52ede4 | 1092 | %doc tools/polly/{CREDITS.txt,LICENSE.TXT,README} tools/polly/www/{bugs,changelog,contributors}.html |
b0068ae4 | 1093 | %attr(755,root,root) %{_libdir}/LLVMPolly.so |
a5fe2ce1 | 1094 | %{?with_target_nvptx:%attr(755,root,root) %{_libdir}/libGPURuntime.so} |
b0068ae4 JB |
1095 | |
1096 | %files polly-devel | |
1097 | %defattr(644,root,root,755) | |
9a23736f JB |
1098 | %{_libdir}/libPolly.a |
1099 | %{_libdir}/libPollyISL.a | |
a5fe2ce1 | 1100 | %{?with_target_nvptx:%{_libdir}/libPollyPPCG.a} |
b0068ae4 | 1101 | %{_includedir}/polly |
265e167c | 1102 | %{_libdir}/cmake/polly |
b0068ae4 JB |
1103 | %endif |
1104 | ||
d997b14b | 1105 | %files -n clang |
bc88141a | 1106 | %defattr(644,root,root,755) |
827664e9 | 1107 | %doc clang-docs/{LICENSE.TXT,NOTES.txt,README.txt} %{?with_tests:clang-testlog.txt} |
8132e62b JB |
1108 | %attr(755,root,root) %{_bindir}/clang |
1109 | %attr(755,root,root) %{_bindir}/clang++ | |
509439cf | 1110 | %attr(755,root,root) %{_bindir}/clang-%{abi} |
dd9350c7 | 1111 | %attr(755,root,root) %{_bindir}/clang-check |
6df3b432 | 1112 | %attr(755,root,root) %{_bindir}/clang-cl |
5013c7ea | 1113 | %attr(755,root,root) %{_bindir}/clang-cpp |
d1e2ca8d | 1114 | %attr(755,root,root) %{_bindir}/clang-doc |
1628dc68 | 1115 | %attr(755,root,root) %{_bindir}/clang-format |
90b20139 JP |
1116 | %attr(755,root,root) %{_bindir}/clang-linker-wrapper |
1117 | %attr(755,root,root) %{_bindir}/clang-nvlink-wrapper | |
5013c7ea | 1118 | %attr(755,root,root) %{_bindir}/clang-offload-bundler |
0fd19552 | 1119 | %attr(755,root,root) %{_bindir}/clang-offload-packager |
ef49a424 | 1120 | %attr(755,root,root) %{_bindir}/clang-offload-wrapper |
0fd19552 | 1121 | %attr(755,root,root) %{_bindir}/clang-pseudo |
8d52ede4 | 1122 | %attr(755,root,root) %{_bindir}/clang-repl |
6df3b432 | 1123 | %attr(755,root,root) %{_bindir}/git-clang-format |
5a7ac479 JB |
1124 | %dir %{_libdir}/clang |
1125 | %dir %{_libdir}/clang/%{version} | |
1126 | %{_libdir}/clang/%{version}/include | |
1127 | %if %{with rt} | |
9cb808e7 | 1128 | %ifarch %{x8664} x32 aarch64 |
ef49a424 JP |
1129 | %dir %{_libdir}/clang/%{version}/bin |
1130 | %attr(755,root,root) %{_libdir}/clang/%{version}/bin/hwasan_symbolize | |
19798eda | 1131 | %endif |
97d374d2 | 1132 | %ifarch %{ix86} %{x8664} aarch64 armv7hl armv7hnl |
3b28b31d | 1133 | %dir %{_libdir}/clang/%{version}/lib |
0fd19552 | 1134 | %dir %{_libdir}/clang/%{version}/lib/*-linux |
3b28b31d JB |
1135 | %dir %{_libdir}/clang/%{version}/share |
1136 | %endif | |
1137 | %ifarch x32 | |
1138 | %if %{with multilib} | |
9eefd942 | 1139 | %dir %{_libdir}/clang/%{version}/lib |
0fd19552 | 1140 | %dir %{_libdir}/clang/%{version}/lib/*-linux |
8f8cf7a8 | 1141 | %dir %{_libdir}/clang/%{version}/share |
9eefd942 | 1142 | %endif |
3b28b31d | 1143 | %endif |
9eefd942 | 1144 | %ifarch %{ix86} |
0fd19552 JP |
1145 | %{_libdir}/clang/%{version}/lib/i*86-*linux/clang_rt.*.o |
1146 | %{_libdir}/clang/%{version}/lib/i*86-*linux/libclang_rt.*.a | |
1147 | %attr(755,root,root) %{_libdir}/clang/%{version}/lib/i*86-*linux/libclang_rt.*.so | |
c6c890ee JB |
1148 | %endif |
1149 | %ifarch %{x8664} | |
0fd19552 JP |
1150 | %{_libdir}/clang/%{version}/lib/x86_64-*linux/clang_rt.*.o |
1151 | %{_libdir}/clang/%{version}/lib/x86_64-*linux/libclang_rt.*.a | |
1152 | %attr(755,root,root) %{_libdir}/clang/%{version}/lib/x86_64-*linux/libclang_rt.*.so | |
1153 | %{_libdir}/clang/%{version}/lib/x86_64-*linux/libclang_rt.*.a.syms | |
3c402b7e | 1154 | %endif |
7bceddf8 | 1155 | %ifarch aarch64 |
0fd19552 JP |
1156 | %{_libdir}/clang/%{version}/lib/aarch64-*linux/clang_rt.*.o |
1157 | %{_libdir}/clang/%{version}/lib/aarch64-*linux/libclang_rt.*.a | |
1158 | %attr(755,root,root) %{_libdir}/clang/%{version}/lib/aarch64-*linux/libclang_rt.*.so | |
1159 | %{_libdir}/clang/%{version}/lib/aarch64-*linux/libclang_rt.*.a.syms | |
7bceddf8 | 1160 | %endif |
97d374d2 | 1161 | %ifarch armv7hl armv7hnl |
0fd19552 JP |
1162 | %{_libdir}/clang/%{version}/lib/armhf-*linux/clang_rt.*.o |
1163 | %{_libdir}/clang/%{version}/lib/armhf-*linux/libclang_rt.*.a | |
1164 | %attr(755,root,root) %{_libdir}/clang/%{version}/lib/armhf-*linux/libclang_rt.*.so | |
1165 | %{_libdir}/clang/%{version}/lib/armhf-*linux/libclang_rt.*.a.syms | |
97d374d2 | 1166 | %endif |
3b28b31d | 1167 | %ifarch %{ix86} %{x8664} %{arm} aarch64 mips mips64 ppc64 |
8d52ede4 | 1168 | %{_libdir}/clang/%{version}/share/asan_ignorelist.txt |
d706a70d | 1169 | %endif |
97d374d2 | 1170 | %ifarch %{ix86} %{x8664} mips64 aarch64 armv7hl armv7hnl |
8d52ede4 | 1171 | %{_libdir}/clang/%{version}/share/cfi_ignorelist.txt |
d706a70d | 1172 | %endif |
3b28b31d | 1173 | %ifarch %{x8664} aarch64 mips64 |
8f8cf7a8 | 1174 | %{_libdir}/clang/%{version}/share/dfsan_abilist.txt |
8d52ede4 | 1175 | %{_libdir}/clang/%{version}/share/msan_ignorelist.txt |
8f8cf7a8 | 1176 | %endif |
3b28b31d | 1177 | %ifarch %{x8664} aarch64 |
8d52ede4 | 1178 | %{_libdir}/clang/%{version}/share/hwasan_ignorelist.txt |
d706a70d | 1179 | %endif |
3b28b31d JB |
1180 | %ifarch x32 |
1181 | %if %{with multilib} | |
8d52ede4 JP |
1182 | %{_libdir}/clang/%{version}/share/asan_ignorelist.txt |
1183 | %{_libdir}/clang/%{version}/share/cfi_ignorelist.txt | |
3b28b31d | 1184 | %{_libdir}/clang/%{version}/share/dfsan_abilist.txt |
8d52ede4 JP |
1185 | %{_libdir}/clang/%{version}/share/msan_ignorelist.txt |
1186 | %{_libdir}/clang/%{version}/share/hwasan_ignorelist.txt | |
3b28b31d JB |
1187 | %endif |
1188 | %endif | |
5a7ac479 | 1189 | %endif |
3c402b7e JB |
1190 | %dir %{_datadir}/clang |
1191 | %{_datadir}/clang/clang-format-diff.py | |
d997b14b | 1192 | |
589b92f5 | 1193 | %if %{with rt} && %{with multilib} |
b0e18b64 | 1194 | %ifarch %{x8664} x32 |
9eefd942 JR |
1195 | %files -n clang-multilib |
1196 | %defattr(644,root,root,755) | |
0fd19552 JP |
1197 | %{_libdir}/clang/%{version}/lib/i386-*linux/clang_rt.*.o |
1198 | %{_libdir}/clang/%{version}/lib/i386-*linux/libclang_rt.*.a | |
1199 | %attr(755,root,root) %{_libdir}/clang/%{version}/lib/i386-*linux/libclang_rt.*.so | |
9eefd942 | 1200 | %endif |
b0e18b64 | 1201 | %ifarch x32 |
0fd19552 JP |
1202 | %{_libdir}/clang/%{version}/lib/x86_64-*linux/clang_rt.*.o |
1203 | %{_libdir}/clang/%{version}/lib/x86_64-*linux/libclang_rt.*.a | |
1204 | %attr(755,root,root) %{_libdir}/clang/%{version}/lib/x86_64-*linux/libclang_rt.*.so | |
1205 | %{_libdir}/clang/%{version}/lib/x86_64-*linux/libclang_rt.*.a.syms | |
b0e18b64 | 1206 | %endif |
9eefd942 JR |
1207 | %endif |
1208 | ||
cb7d0198 JB |
1209 | %files -n clang-libs |
1210 | %defattr(644,root,root,755) | |
0fd19552 | 1211 | %attr(755,root,root) %{_libdir}/libclang.so.15 |
cb7d0198 JB |
1212 | %attr(755,root,root) %{_libdir}/libclang.so.*.*.* |
1213 | ||
1214 | %files -n clang-devel | |
1215 | %defattr(644,root,root,755) | |
1216 | %attr(755,root,root) %{_libdir}/libclang.so | |
1217 | %{_libdir}/libclang*.a | |
1218 | %{_includedir}/clang | |
1219 | %{_includedir}/clang-c | |
1220 | %{_includedir}/clang-tidy | |
1221 | %{_libdir}/cmake/clang | |
1222 | ||
1223 | %files -n clang-doc | |
1224 | %defattr(644,root,root,755) | |
1225 | %doc tools/clang/docs/*.{html,png,txt} | |
1226 | ||
1227 | %if %{with apidocs} | |
1228 | %files -n clang-apidocs | |
1229 | %defattr(644,root,root,755) | |
1230 | %doc clang-apidoc/* | |
1231 | %endif | |
1232 | ||
d997b14b | 1233 | %files -n clang-analyzer |
bc88141a | 1234 | %defattr(644,root,root,755) |
e25801fb JB |
1235 | %dir %{_libexecdir}/clang-analyzer |
1236 | # perl tools | |
1237 | %attr(755,root,root) %{_bindir}/scan-build | |
1238 | %attr(755,root,root) %{_libexecdir}/clang-analyzer/c++-analyzer | |
1239 | %attr(755,root,root) %{_libexecdir}/clang-analyzer/ccc-analyzer | |
1240 | %{_datadir}/scan-build | |
1241 | %{_mandir}/man1/scan-build.1* | |
1242 | # python tools | |
8d52ede4 JP |
1243 | %attr(755,root,root) %{_bindir}/analyze-build |
1244 | %attr(755,root,root) %{_bindir}/intercept-build | |
8d52ede4 | 1245 | %attr(755,root,root) %{_bindir}/scan-build-py |
d997b14b | 1246 | %attr(755,root,root) %{_bindir}/scan-view |
e25801fb JB |
1247 | %attr(755,root,root) %{_libexecdir}/clang-analyzer/analyze-c++ |
1248 | %attr(755,root,root) %{_libexecdir}/clang-analyzer/analyze-cc | |
1249 | %attr(755,root,root) %{_libexecdir}/clang-analyzer/intercept-c++ | |
1250 | %attr(755,root,root) %{_libexecdir}/clang-analyzer/intercept-cc | |
8d52ede4 JP |
1251 | %{_prefix}/lib/libear |
1252 | %{_prefix}/lib/libscanbuild | |
634a3e5b | 1253 | %{_datadir}/scan-view |
8132e62b | 1254 | |
b0068ae4 JB |
1255 | %files -n clang-tools-extra |
1256 | %defattr(644,root,root,755) | |
9ace1f65 | 1257 | %doc tools/clang/tools/extra/{CODE_OWNERS.TXT,README.txt} |
b0068ae4 | 1258 | %attr(755,root,root) %{_bindir}/clang-apply-replacements |
5013c7ea | 1259 | %attr(755,root,root) %{_bindir}/clang-change-namespace |
0bc9c5c9 | 1260 | %attr(755,root,root) %{_bindir}/clang-extdef-mapping |
03073220 | 1261 | %attr(755,root,root) %{_bindir}/clang-include-fixer |
ef49a424 | 1262 | %attr(755,root,root) %{_bindir}/clang-move |
b883cf1e | 1263 | %attr(755,root,root) %{_bindir}/clang-query |
23ae6496 | 1264 | %attr(755,root,root) %{_bindir}/clang-refactor |
4ba3b2b3 | 1265 | %attr(755,root,root) %{_bindir}/clang-rename |
5013c7ea | 1266 | %attr(755,root,root) %{_bindir}/clang-reorder-fields |
d1e2ca8d | 1267 | %attr(755,root,root) %{_bindir}/clang-scan-deps |
b0068ae4 | 1268 | %attr(755,root,root) %{_bindir}/clang-tidy |
265e167c | 1269 | %attr(755,root,root) %{_bindir}/clangd |
8f8cf7a8 | 1270 | %attr(755,root,root) %{_bindir}/diagtool |
03073220 | 1271 | %attr(755,root,root) %{_bindir}/find-all-symbols |
8f8cf7a8 | 1272 | %attr(755,root,root) %{_bindir}/hmaptool |
d706a70d | 1273 | %attr(755,root,root) %{_bindir}/modularize |
b0068ae4 | 1274 | %attr(755,root,root) %{_bindir}/pp-trace |
8d52ede4 | 1275 | %attr(755,root,root) %{_bindir}/run-clang-tidy |
03073220 | 1276 | %{_datadir}/clang/clang-include-fixer.py |
d706a70d | 1277 | %{_datadir}/clang/clang-tidy-diff.py |
03073220 | 1278 | %{_datadir}/clang/run-find-all-symbols.py |
b0068ae4 | 1279 | |
d13e7dd0 JB |
1280 | %files -n bash-completion-clang |
1281 | %defattr(644,root,root,755) | |
1282 | %{bash_compdir}/clang | |
1283 | ||
d27b2b77 JB |
1284 | %if %{with flang} |
1285 | %files -n flang | |
1286 | %defattr(644,root,root,755) | |
1287 | %doc tools/flang/{LICENSE.TXT,README.md} | |
1288 | %attr(755,root,root) %{_bindir}/f18 | |
1289 | %attr(755,root,root) %{_bindir}/f18-parse-demo | |
1290 | %attr(755,root,root) %{_bindir}/fir-opt | |
1291 | %attr(755,root,root) %{_bindir}/flang | |
1292 | %attr(755,root,root) %{_bindir}/tco | |
1293 | %dir %{_includedir}/flang | |
1294 | %{_includedir}/flang/Version.inc | |
1295 | %{_includedir}/flang/__fortran_*.mod | |
1296 | %{_includedir}/flang/ieee_*.mod | |
1297 | %{_includedir}/flang/iso_*.mod | |
1298 | %{_includedir}/flang/omp_lib*.mod | |
1299 | ||
1300 | %files -n flang-devel | |
1301 | %defattr(644,root,root,755) | |
1302 | %{_libdir}/libFIROptimizer.a | |
1303 | %{_libdir}/libFortran*.a | |
1304 | %{_includedir}/flang/Common | |
1305 | %{_includedir}/flang/Decimal | |
1306 | %{_includedir}/flang/Evaluate | |
1307 | %{_includedir}/flang/Frontend | |
1308 | %{_includedir}/flang/FrontendTool | |
1309 | %{_includedir}/flang/Lower | |
1310 | %{_includedir}/flang/Optimizer | |
1311 | %{_includedir}/flang/Parser | |
1312 | %{_includedir}/flang/Semantics | |
1313 | %{_includedir}/flang/ISO_Fortran_binding.h | |
1314 | %{_libdir}/cmake/flang | |
1315 | %endif | |
1316 | ||
ba1cf74d JB |
1317 | %files -n lld |
1318 | %defattr(644,root,root,755) | |
1319 | %doc tools/lld/{LICENSE.TXT,README.md} | |
d706a70d | 1320 | %attr(755,root,root) %{_bindir}/ld.lld |
23ae6496 | 1321 | %attr(755,root,root) %{_bindir}/ld64.lld |
ba1cf74d | 1322 | %attr(755,root,root) %{_bindir}/lld |
d706a70d | 1323 | %attr(755,root,root) %{_bindir}/lld-link |
d7447383 | 1324 | %attr(755,root,root) %{_bindir}/wasm-ld |
ba1cf74d JB |
1325 | |
1326 | %files -n lld-devel | |
1327 | %defattr(644,root,root,755) | |
d7447383 | 1328 | %{_libdir}/liblld[ACDEHMRWXY]*.a |
ba1cf74d | 1329 | %{_includedir}/lld |
f784323b | 1330 | %{_libdir}/cmake/lld |
ba1cf74d | 1331 | |
5a7ac479 JB |
1332 | %if %{with lldb} |
1333 | %files -n lldb | |
1334 | %defattr(644,root,root,755) | |
1335 | %attr(755,root,root) %{_bindir}/lldb | |
4522eb9a | 1336 | %attr(755,root,root) %{_bindir}/lldb-argdumper |
d1e2ca8d | 1337 | %attr(755,root,root) %{_bindir}/lldb-instr |
6df3b432 | 1338 | %attr(755,root,root) %{_bindir}/lldb-server |
0bc9c5c9 | 1339 | %attr(755,root,root) %{_bindir}/lldb-vscode |
6df3b432 | 1340 | %attr(755,root,root) %{_libdir}/liblldb.so.%{version} |
0fd19552 JP |
1341 | %attr(755,root,root) %ghost %{_libdir}/liblldb.so.15 |
1342 | %attr(755,root,root) %ghost %{_libdir}/liblldbIntelFeatures.so.15 | |
40bef2a3 JP |
1343 | %dir %{py3_sitedir}/lldb |
1344 | %attr(755,root,root) %{py3_sitedir}/lldb/lldb-argdumper | |
1345 | %{py3_sitedir}/lldb/formatters | |
1346 | %{py3_sitedir}/lldb/utils | |
1347 | %{py3_sitedir}/lldb/__init__.py | |
1348 | %{py3_sitedir}/lldb/__pycache__ | |
1349 | %{py3_sitedir}/lldb/embedded_interpreter.py | |
8d52ede4 JP |
1350 | %dir %{py3_sitedir}/lldb/plugins |
1351 | %{py3_sitedir}/lldb/plugins/__pycache__ | |
1352 | %{py3_sitedir}/lldb/plugins/__init__.py | |
1353 | %{py3_sitedir}/lldb/plugins/scripted_process.py | |
93b7b046 | 1354 | %attr(755,root,root) %{py3_sitedir}/lldb/_lldb.cpython-*.so |
5a7ac479 JB |
1355 | |
1356 | %files -n lldb-devel | |
1357 | %defattr(644,root,root,755) | |
6df3b432 | 1358 | %attr(755,root,root) %{_libdir}/liblldb.so |
23ae6496 | 1359 | %attr(755,root,root) %{_libdir}/liblldbIntelFeatures.so |
5a7ac479 JB |
1360 | %{_includedir}/lldb |
1361 | %endif | |
1362 | ||
9556f4c9 | 1363 | %if %{with ocaml} |
d997b14b AM |
1364 | %files ocaml |
1365 | %defattr(644,root,root,755) | |
265e167c | 1366 | %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllllvm*.so |
5013c7ea | 1367 | %dir %{_libdir}/ocaml/llvm |
5013c7ea JB |
1368 | %{_libdir}/ocaml/llvm/llvm*.cma |
1369 | %{_libdir}/ocaml/llvm/llvm*.cmi | |
11b6f380 | 1370 | %{_libdir}/ocaml/META.llvm* |
d997b14b AM |
1371 | |
1372 | %files ocaml-devel | |
1373 | %defattr(644,root,root,755) | |
5013c7ea JB |
1374 | %{_libdir}/ocaml/llvm/libllvm*.a |
1375 | %{_libdir}/ocaml/llvm/llvm*.a | |
90b20139 JP |
1376 | %{_libdir}/ocaml/llvm/llvm*.cmt |
1377 | %{_libdir}/ocaml/llvm/llvm*.cmti | |
5013c7ea JB |
1378 | %{_libdir}/ocaml/llvm/llvm*.cmx |
1379 | %{_libdir}/ocaml/llvm/llvm*.cmxa | |
1380 | %{_libdir}/ocaml/llvm/llvm*.mli | |
9556f4c9 ER |
1381 | |
1382 | %files ocaml-doc | |
1383 | %defattr(644,root,root,755) | |
6df3b432 | 1384 | %doc ocamldocs/* |
9556f4c9 | 1385 | %endif |
d7447383 JR |
1386 | |
1387 | %files opt-viewer | |
1388 | %defattr(644,root,root,755) | |
1389 | %{_datadir}/opt-viewer | |
1390 | ||
1391 | %files -n vim-plugin-clang | |
1392 | %defattr(644,root,root,755) | |
1393 | %{_datadir}/clang/clang-format.py | |
1394 | %{_datadir}/clang/clang-rename.py |