3 # - normal build (x86_64) requires about 80 GB of disk space
7 # %{_datadir}/clang/clang-format-sublime.py - sublime plugin
8 # %{_datadir}/clang/clang-format.el - clang tools emacs integration
9 # %{_datadir}/clang/clang-include-fixer.el
10 # %{_datadir}/clang/clang-rename.el
11 # - system isl in polly?
12 # - dependencies and files for lua module
13 # %{_libdir}/lua/5.3/lldb.so
14 # - figure out whether we need obj.MLIRCAPIIR files
15 # - cmake dependencies mess (LLVMExports.cmake appears to require all -devels):
16 # with llvm-devel and spirv-tools-devel installed but without llvm-mlir (or other packages):
17 # $ cat CMakeLists.txt
19 # find_package(SPIRV-Tools)
22 # The imported target "mlir-tblgen" references the file
24 # "/usr/bin/mlir-tblgen"
26 # but this file does not exist. Possible reasons include:
30 %bcond_without lldb # LLDB debugger
31 %bcond_without mlir # MLIR libraries and tools (required for Flang)
32 %bcond_with flang # Flang (Fortran18) compiler (heavy memory requirements during build)
33 %bcond_without polly # Polly cache-locality optimization, auto-parallelism and vectorization
34 %bcond_without rt # compiler-rt libraries
35 %bcond_without multilib # compiler-rt multilib libraries
36 %bcond_without ocaml # OCaml binding
37 %bcond_without z3 # Z3 constraint solver support in Clang Static Analyzer
38 %bcond_without doc # HTML docs and man pages
39 %bcond_without target_aarch64 # AArch64 target support
40 %bcond_without target_amdgpu # AMDGPU target support
41 %bcond_without target_arm # ARM target support
42 %bcond_without target_avr # AVR target support
43 %bcond_without target_bpf # BPF target support
44 %bcond_without target_hexagon # Hexagon target support
45 %bcond_without target_lanai # Lanai target support
46 %bcond_without target_loongarch # LoongArch 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
54 %bcond_without target_ve # VE target support
55 %bcond_without target_webassembly # WebAssembly target support
56 %bcond_without target_x86 # X86 target support
57 %bcond_without target_xcore # XCore target support
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
63 # No ocaml on other arches or no native ocaml (required for ocaml-ctypes)
64 %ifnarch %{ix86} %{x8664} %{arm} aarch64 ppc sparc sparcv9
68 %ifarch armv3l %{armv4} %{armv5} %{armv6}
72 %ifarch i386 i486 armv3l %{armv4} %{armv5} %{armv6}
73 %define with_libatomic 1
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_loongarch:LoongArch;}%{?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;}
82 Summary: The Low Level Virtual Machine (An Optimizing Compiler Infrastructure)
83 Summary(pl.UTF-8): Niskopoziomowa maszyna wirtualna (infrastruktura kompilatora optymalizującego)
87 License: Apache 2.0 with LLVM exceptions
88 Group: Development/Languages
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
91 # Source0-md5: 8776bfffa10c3e3c9cfdf5c80aca39f0
92 Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/clang-%{version}.src.tar.xz
93 # Source1-md5: e421dc8dc3713ff0cae04946320db9cc
94 Source2: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/compiler-rt-%{version}.src.tar.xz
95 # Source2-md5: bb834fc6eaf5eb4483c417144e18c5a0
96 Source3: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/lldb-%{version}.src.tar.xz
97 # Source3-md5: 5840f5925c920fa31d827c0a21f62442
98 Source4: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/polly-%{version}.src.tar.xz
99 # Source4-md5: 3a27a961858799510b73d7376d3e1cd4
100 Source5: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/clang-tools-extra-%{version}.src.tar.xz
101 # Source5-md5: 4284ffaadbed5a5b4d737e23eac5b757
102 Source6: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/lld-%{version}.src.tar.xz
103 # Source6-md5: a1804460c951ef895ecf63bd21ca773a
104 Source7: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/flang-%{version}.src.tar.xz
105 # Source7-md5: 2a9f731bd8e5e3a0907712ac7cda725c
106 Source8: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/mlir-%{version}.src.tar.xz
107 # Source8-md5: 282f90c2f3d3203bae7e928b3b418352
108 Source9: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/cmake-%{version}.src.tar.xz
109 # Source9-md5: 054f1c9cfb2c4782934bf14d5cd0387d
110 Patch1: %{name}-pld.patch
111 Patch2: %{name}-ocaml-link-dylib.patch
112 Patch3: x32-gcc-toolchain.patch
113 Patch5: %{name}-ocaml-shared.patch
114 Patch6: %{name}-flang.patch
115 Patch7: llvm12-build_fixes.patch
116 Patch8: %{name}-selective_bindings.patch
117 Patch9: %{name}-libexecdir.patch
118 Patch10: compiler-rt-paths.patch
119 Patch11: cmake-utils-path-override.patch
120 Patch12: x32-compiler-rt.patch
121 URL: https://llvm.org/
123 BuildRequires: binutils-devel
125 BuildRequires: cmake >= 3.20.0
128 %{?with_libatomic:BuildRequires: libatomic-devel}
129 BuildRequires: libedit-devel
130 BuildRequires: libltdl-devel
131 BuildRequires: libpfm-devel
132 BuildRequires: libstdc++-devel >= 6:5
133 BuildRequires: libxml2-devel >= 2
134 BuildRequires: ncurses-devel
136 BuildRequires: ocaml >= 4.00.0
137 BuildRequires: ocaml-ctypes-devel >= 0.4
138 BuildRequires: ocaml-findlib
139 BuildRequires: ocaml-ocamldoc
140 %{?with_tests:BuildRequires: ocaml-ounit >= 2}
142 BuildRequires: perl-base >= 1:5.6
143 BuildRequires: perl-tools-pod
144 BuildRequires: python3 >= 1:3
145 BuildRequires: python3-PyYAML
146 BuildRequires: python3-modules
147 %{?with_doc:BuildRequires: python3-myst_parser}
148 BuildRequires: python3-pygments >= 2.0
149 BuildRequires: rpm-build >= 4.6
150 BuildRequires: rpm-pythonprov
151 BuildRequires: rpmbuild(macros) >= 2.007
152 %{?with_doc:BuildRequires: sphinx-pdg}
153 BuildRequires: tar >= 1:1.22
154 BuildRequires: xar-devel >= 1.6
156 %{?with_z3:BuildRequires: z3-devel >= 4.7.1}
157 BuildRequires: zlib-devel
158 BuildRequires: zstd-devel
160 BuildRequires: doxygen
161 BuildRequires: graphviz
164 BuildRequires: dejagnu
165 BuildRequires: tcl-devel
167 %if %{with rt} && %{with multilib}
169 BuildRequires: gcc-c++-multilib-32
170 BuildRequires: glibc-devel(ix86)
171 BuildRequires: libstdc++-multilib-32-devel
172 BuildRequires: libunwind-devel(x86-32)
175 BuildRequires: gcc-c++-multilib-32
176 BuildRequires: gcc-c++-multilib-64
177 BuildRequires: glibc-devel(ix86)
178 BuildRequires: glibc-devel(x86_64)
179 BuildRequires: libstdc++-multilib-32-devel
180 BuildRequires: libstdc++-multilib-64-devel
181 BuildRequires: libunwind-devel(x86-32)
182 BuildRequires: libunwind-devel(x86-64)
186 BuildRequires: epydoc
187 BuildRequires: libxml2-devel >= 2
188 BuildRequires: lua-devel
189 BuildRequires: ncurses-ext-devel
190 BuildRequires: python3-devel >= 1:3.2
191 %{?with_doc:BuildRequires: python3-recommonmark}
192 BuildRequires: swig-python >= 3.0.11
193 BuildRequires: xz-devel
196 #BuildRequires: gmp-devel or imath-devel (private copy in polly/lib/External/isl/imath)
197 # private copy in polly/lib/External/isl
198 #BuildRequires: isl-devel >= 0.22.1
199 #TODO (bcond): cuda-devel (with POLLY_ENABLE_GPGPU_CODEGEN=ON)
200 %{?with_target_nvptx:BuildRequires: ocl-icd-libOpenCL-devel}
203 BuildConflicts: llvm-ocaml
205 Requires: %{name}-libs = %{version}-%{release}
206 # LLVM is not supported on PPC64
207 # http://llvm.org/bugs/show_bug.cgi?id=3729
209 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
212 %define _sysconfdir /etc/%{name}
214 %define specflags_ppc -fno-var-tracking-assignments
216 # objcopy: BFD (GNU Binutils) 2.32 assertion fail format.c:459
217 # objcopy: error: .../libLLVM-8.so(.debug_gnu_pubtypes) is too large (0x1ceee347 bytes)
218 # objcopy: .../libLLVM-8.so[.debug_gnu_pubtypes]: memory exhausted
220 %define _enable_debug_packages 0
222 # ix86 and x32 - the same issue as https://llvm.org/bugs/show_bug.cgi?id=27237
223 # use -gsplit-dwarf only when building packages with debuginfo
224 # to avoid excessive disk space usage
225 %if 0%{?_enable_debug_packages}
226 %define specflags -gsplit-dwarf
229 # strip corrupts: $RPM_BUILD_ROOT/usr/lib64/llvm-gcc/bin/llvm-c++ ...
230 %define _noautostrip .*/\\(libmud.*\\.a\\|bin/llvm-.*\\|lib.*++\\.a\\)
232 # clang doesn't know -fvar-tracking-assignments, and leaving it here would pollute llvm-config
233 # -Werror=format-security is for swig
234 # TODO: add - -Werror=format-security to tools/lldb/scripts/LLDBWrapPython.cpp
235 %define filterout_c -fvar-tracking-assignments
236 %define filterout_cxx -fvar-tracking-assignments -Werror=format-security
237 %define filterout_ccpp -fvar-tracking-assignments
240 LLVM is a compiler infrastructure designed for compile-time,
241 link-time, runtime, and idle-time optimization of programs from
242 arbitrary programming languages. LLVM is written in C++ and has been
243 developed since 2000 at the University of Illinois and Apple. It
244 currently supports compilation of C and C++ programs using clang
247 %description -l pl.UTF-8
248 LLVM to infrastruktura kompilatora zaprojektowana do optymalizacji
249 czasu kompilowania, linkowania, działania i bezczynności programów w
250 dowolnych językach programowania. Jest napisana w C++, rozwijana od
251 roku 2000 przez Uniwersytet w Illinois i Apple. Aktualnie obsługuje
252 kompilację programów w C i C++ przy użyciu frontendu clang.
255 Summary: LLVM shared libraries
256 Summary(pl.UTF-8): Biblioteki współdzielone LLVM-a
258 Conflicts: llvm < 3.2
261 LLVM shared libraries.
263 %description libs -l pl.UTF-8
264 Biblioteki współdzielone LLVM-a.
267 Summary: Static libraries and header files for LLVM
268 Summary(pl.UTF-8): Biblioteki statyczne i pliki nagłówkowe dla LLVM-a
269 Group: Development/Languages
270 Requires: %{name}-libs%{?_isa} = %{version}-%{release}
271 %{?with_libatomic:Requires: libatomic-devel}
272 Requires: libstdc++-devel >= 6:3.4
273 Requires: ncurses-devel
274 %{?with_z3:Requires: z3-devel}
279 This package contains static libraries and header files needed to
280 develop new native programs that use the LLVM infrastructure.
282 %description devel -l pl.UTF-8
283 Ten pakiet zawiera biblioteki statyczne oraz pliki nagłówkowe
284 potrzebne do tworzenia nowych programów natywnych wykorzystujących
288 Summary: API documentation for LLVM
289 Summary(pl.UTF-8): Dokumentacja API LLVM-a
290 Group: Development/Languages
291 Requires: %{name}-doc = %{version}-%{release}
295 API documentation for the LLVM compiler infrastructure.
297 %description apidocs -l pl.UTF-8
298 Dokumentacja API infrastruktury kompilatorów LLVM.
301 Summary: LLVM Multi-Level Intermediate Representation libraries and tools
302 Summary(pl.UTF-8): Biblioteki i narzędzia wielopoziomowej reprezentacji pośredniej LLVM
303 Group: Development/Tools
304 URL: https://mlir.llvm.org/
305 Requires: %{name} = %{version}-%{release}
308 LLVM Multi-Level Intermediate Representation libraries and tools.
310 %description mlir -l pl.UTF-8
311 Biblioteki i narzędzia wielopoziomowej reprezentacji pośredniej LLVM.
314 Summary: LLVM Multi-Level Intermediate Representation development files
315 Summary(pl.UTF-8): Pliki do programowania z użyciem wielopoziomowej reprezentacji pośredniej LLVM
316 Group: Development/Tools
317 URL: https://mlir.llvm.org/
318 Requires: %{name}-devel%{?_isa} = %{version}-%{release}
319 Requires: %{name}-mlir%{?_isa} = %{version}-%{release}
321 %description mlir-devel
322 LLVM Multi-Level Intermediate Representation development files.
324 %description mlir-devel -l pl.UTF-8
325 Pliki do programowania z użyciem wielopoziomowej reprezentacji
329 Summary: Polyhedral optimizations for LLVM
330 Summary(pl.UTF-8): Optymalizacje wielościanowe dla LLVM-a
331 Group: Development/Tools
332 URL: https://polly.llvm.org/
333 Requires: %{name} = %{version}-%{release}
336 Polly is a high-level loop and data-locality optimizer and
337 optimization infrastructure for LLVM. It uses an abstract mathematical
338 representation based on integer polyhedra to analyze and optimize the
339 memory access pattern of a program.
341 %description polly -l pl.UTF-8
342 Polly to wysokopoziomowy optymalizator i infrastruktura LLVM-a do
343 optymalizacji pętli i położenia danych. Wykorzystuje abstrakcyjną
344 reprezentację matematyczną opartą na wielościanach całkowitoliczbowych
345 do analizy i optymalizacji wzorców dostępu do pamięci przez program.
348 Summary: Header files for LLVM Polly optimization infrastructure
349 Summary(pl.UTF-8): Pliki nagłówkowe infrastruktury optymalizacji LLVM-a Polly
350 Group: Development/Libraries
351 URL: https://polly.llvm.org/
352 Requires: %{name}-devel%{?_isa} = %{version}-%{release}
353 Requires: %{name}-polly%{?_isa} = %{version}-%{release}
355 %description polly-devel
356 Header files for LLVM Polly optimization infrastructure.
358 %description polly-devel -l pl.UTF-8
359 Pliki nagłówkowe infrastruktury optymalizacji LLVM-a Polly.
362 Summary: A C language family frontend for LLVM
363 Summary(pl.UTF-8): Frontend LLVM-a do języków z rodziny C
364 Group: Development/Languages
365 URL: https://clang.llvm.org/
366 Requires: %{name} = %{version}-%{release}
367 Requires: clang-libs = %{version}-%{release}
369 %description -n clang
370 clang: noun 1. A loud, resonant, metallic sound. 2. The strident call
371 of a crane or goose. 3. C-language family front-end toolkit.
373 The goal of the Clang project is to create a new C, C++, Objective C
374 and Objective C++ front-end for the LLVM compiler. Its tools are built
375 as libraries and designed to be loosely-coupled and extendable.
377 %description -n clang -l pl.UTF-8
378 clang (z angielskiego): 1. głośny, rezonujący, metaliczny dźwięk; 2.
379 piskliwy odgłos żurawia lub gęsi; 3. narzędzia frontendowe dla języków
382 Celem projektu Clang jest utworzenie nowego frontendu dla kompilatora
383 LLVM do języków C, C++, Objective C i Objective C++. Narzędzia są
384 budowane jako biblioteki i zaprojektowane z myślą o swobodnym łączeniu
387 %package -n clang-multilib
388 Summary: A C language family frontend for LLVM - 32-bit support
389 Summary(pl.UTF-8): Frontend LLVM-a do języków z rodziny C - obsługa binariów 32-bitowych
390 Group: Development/Languages
391 URL: https://clang.llvm.org/
392 Requires: clang = %{version}-%{release}
394 %description -n clang-multilib
395 clang: noun 1. A loud, resonant, metallic sound. 2. The strident call
396 of a crane or goose. 3. C-language family front-end toolkit.
398 The goal of the Clang project is to create a new C, C++, Objective C
399 and Objective C++ front-end for the LLVM compiler. Its tools are built
400 as libraries and designed to be loosely-coupled and extendable.
402 This package contains the C compiler support for producing 32-bit
403 programs on 64-bit host.
405 %description -n clang-multilib -l pl.UTF-8
406 clang (z angielskiego): 1. głośny, rezonujący, metaliczny dźwięk; 2.
407 piskliwy odgłos żurawia lub gęsi; 3. narzędzia frontendowe dla języków
410 Celem projektu Clang jest utworzenie nowego frontendu dla kompilatora
411 LLVM do języków C, C++, Objective C i Objective C++. Narzędzia są
412 budowane jako biblioteki i zaprojektowane z myślą o swobodnym łączeniu
415 Ten pakiet zawiera rozszerzenie kompilatora C o obsługę tworzenia
416 programów 32-bitowych na maszynie 64-bitowej.
418 %package -n clang-libs
419 Summary: Clang shared libraries
420 Summary(pl.UTF-8): Biblioteki współdzielone Clanga
422 URL: https://clang.llvm.org/
424 %description -n clang-libs
425 Clang shared libraries.
427 %description -n clang-libs -l pl.UTF-8
428 Biblioteki współdzielone Clanga.
430 %package -n clang-devel
431 Summary: Header files for Clang
432 Summary(pl.UTF-8): Pliki nagłówkowe Clanga
433 Group: Development/Languages
434 URL: https://clang.llvm.org/
435 Requires: %{name}-devel%{?_isa} = %{version}-%{release}
436 Requires: clang-libs%{?_isa} = %{version}-%{release}
437 %{?with_polly:Requires: llvm-polly-devel = %{version}-%{release}}
439 %description -n clang-devel
440 This package contains header files for the Clang compiler.
442 %description -n clang-devel -l pl.UTF-8
443 Ten pakiet zawiera pliki nagłówkowe kompilatora Clang.
445 %package -n clang-doc
446 Summary: Documentation for Clang
447 Summary(pl.UTF-8): Dokumentacja do Clanga
448 URL: https://clang.llvm.org/
450 Requires: %{name} = %{version}-%{release}
453 %description -n clang-doc
454 Documentation for the Clang compiler front-end.
456 %description -n clang-doc -l pl.UTF-8
457 Dokumentacja do frontendu kompilatora Clang.
459 %package -n clang-apidocs
460 Summary: API documentation for Clang
461 Summary(pl.UTF-8): Dokumentacja API Clanga
462 URL: https://clang.llvm.org/
463 Group: Development/Languages
464 Requires: clang-doc = %{version}-%{release}
467 %description -n clang-apidocs
468 API documentation for the Clang compiler.
470 %description -n clang-apidocs -l pl.UTF-8
471 Dokumentacja API kompilatora Clang.
473 %package -n clang-analyzer
474 Summary: A source code analysis framework
475 Summary(pl.UTF-8): Szkielet do analizy kodu źródłowego
476 Group: Development/Languages
477 URL: https://clang-analyzer.llvm.org/
478 Requires: clang = %{version}-%{release}
479 # not picked up automatically since files are currently not instaled
480 # in standard Python hierarchies yet
483 %description -n clang-analyzer
484 The Clang Static Analyzer consists of both a source code analysis
485 framework and a standalone tool that finds bugs in C and Objective-C
486 programs. The standalone tool is invoked from the command-line, and is
487 intended to run in tandem with a build of a project or code base.
489 %description -n clang-analyzer -l pl.UTF-8
490 Clang Static Analyzer składa się ze szkieletu do analizy kodu
491 źródłowego oraz samodzielnego narzędzia znajdującego błędy w
492 programach w C i C++. Narzędzie jest wywoływane z linii poleceń, z
493 myślą o uruchamianiu wraz z kompilacją projektu lub kodu.
495 %package -n clang-tools-extra
496 Summary: Extra tools for Clang
497 Summary(pl.UTF-8): Dodatkowe narzędzia do kompilatora Clang
498 Group: Development/Tools
499 URL: https://clang.llvm.org/docs/ClangTools.html
500 Requires: clang = %{version}-%{release}
502 %description -n clang-tools-extra
503 Extra tools for Clang.
505 %description -n clang-tools-extra -l pl.UTF-8
506 Dodatkowe narzędzia do kompilatora Clang.
508 %package -n bash-completion-clang
509 Summary: Bash completion for clang command
510 Summary(pl.UTF-8): Bashowe dopełnianie składni polecenia clang
511 Group: Applications/Shells
512 Requires: bash-completion >= 1:2.0
513 Requires: clang = %{version}-%{release}
516 %description -n bash-completion-clang
517 Bash completion for clang command.
519 %description -n bash-completion-clang -l pl.UTF-8
520 Bashowe dopełnianie składni polecenia clang.
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}
529 %description -n flang
530 Flang is a ground-up implementation of a Fortran front end written in
533 %description -n flang -l pl.UTF-8
534 Flang to napisana od podstaw we współczesnym C++ implementacja
535 frontendu do Fortranu.
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%{?_isa} = %{version}-%{release}
543 Requires: flang%{?_isa} = %{version}-%{release}
545 %description -n flang-devel
546 Development files for LLVM Fortran frontend.
548 %description -n flang-devel -l pl.UTF-8
549 Pliki prosramistyczne frontendu LLVM do Fortranu.
552 Summary: The LLVM linker
553 Summary(pl.UTF-8): Konsolidator z projektu LLVM
554 Group: Development/Libraries
555 URL: https://lld.llvm.org/
556 Requires: %{name} = %{version}-%{release}
559 lld is a new set of modular code for creating linker tools.
561 %description -n lld -l pl.UTF-8
562 lld to nowy zbiór modularnego kodu do tworzenia narzędzi
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
569 URL: https://lld.llvm.org/
570 Requires: %{name}-devel%{?_isa} = %{version}-%{release}
571 Requires: xar-devel >= 1.6
573 %description -n lld-devel
574 Development files for LLD linker tools.
576 %description -n lld-devel -l pl.UTF-8
577 Pliki programistyczne narzędzi konsolidujących LLD.
580 Summary: Next generation high-performance debugger
581 Summary(pl.UTF-8): Wydajny debugger nowej generacji
582 Group: Development/Debuggers
583 URL: https://lldb.llvm.org/
584 Requires: %{name} = %{version}-%{release}
585 Requires: python3-six
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
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
599 %package -n lldb-devel
600 Summary: Development files for LLDB debugger
601 Summary(pl.UTF-8): Pliki programistyczne debuggera LLDB
602 Group: Development/Libraries
603 URL: https://lldb.llvm.org/
604 Requires: %{name}-devel%{?_isa} = %{version}-%{release}
605 Requires: clang-devel%{?_isa} = %{version}-%{release}
606 Requires: lldb%{?_isa} = %{version}-%{release}
608 %description -n lldb-devel
609 Development files for LLDB debugger.
611 %description -n lldb-devel -l pl.UTF-8
612 Pliki programistyczne debuggera LLDB.
615 Summary: OCaml binding for LLVM
616 Summary(pl.UTF-8): Wiązanie OCamla do LLVM-a
618 Requires: %{name} = %{version}-%{release}
620 %requires_eq ocaml-runtime
624 OCaml binding for LLVM.
626 %description ocaml -l pl.UTF-8
627 Wiązanie OCamla do LLVM-a.
630 Summary: Development files for LLVM OCaml binding
631 Summary(pl.UTF-8): Pliki programistyczne wiązania OCamla do LLVM-a
632 Group: Development/Libraries
633 Requires: %{name}-devel%{?_isa} = %{version}-%{release}
634 Requires: %{name}-ocaml%{?_isa} = %{version}-%{release}
636 %description ocaml-devel
637 The llvm-ocaml-devel package contains libraries and signature files
638 for developing applications that use llvm-ocaml binding.
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.
645 Summary: Documentation for LLVM's OCaml binding
646 Summary(pl.UTF-8): Dokumentacja wiązania OCamla do LLVM-a
648 Requires: %{name}-ocaml = %{version}-%{release}
651 %description ocaml-doc
652 HTML documentation for LLVM's OCaml binding.
654 %description ocaml-doc -l pl.UTF-8
655 Dokumentacja HTML wiązania OCamla do LLVM-a.
658 Summary: Optimization records visualization tools
659 Summary(pl.UTF-8): Narzędzia do wizualizacji rekordów optymalizacji
660 Group: Development/Tools
661 Requires: %{name} = %{version}
664 %description opt-viewer
665 Optimization records visualization tools.
667 %description opt-viewer -l pl.UTF-8
668 Narzędzia do wizualizacji rekordów optymalizacji.
670 %package -n vim-plugin-clang
671 Summary: Clang format and rename integration for Vim
672 Summary(pl.UTF-8): Integracja narzędzi Clang do formatowania i zmiany nazw z Vimem
673 Group: Applications/Editors/Vim
674 Requires: vim-rt >= 4:7.0
677 %description -n vim-plugin-clang
678 Clang format and rename integration for Vim.
680 %description -n vim-plugin-clang -l pl.UTF-8
681 Integracja narzędzi Clang do formatowania i zmiany nazw z Vimem.
684 %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
685 %{__mv} clang-%{version}.src tools/clang
686 %{?with_rt:%{__mv} compiler-rt-%{version}.src projects/compiler-rt}
687 %{?with_lldb:%{__mv} lldb-%{version}.src tools/lldb}
688 %{?with_polly:%{__mv} polly-%{version}.src tools/polly}
689 %{__mv} clang-tools-extra-%{version}.src tools/clang/tools/extra
690 %{__mv} lld-%{version}.src tools/lld
692 %{__mv} flang-%{version}.src tools/flang
695 %{__mv} mlir-%{version}.src tools/mlir
697 %{__mv} cmake-%{version}.src cmake-utils
715 grep -rl /usr/bin/env projects tools utils | xargs sed -i -e '1{
716 s,^#!.*bin/env python3\?,#!%{__python3},
717 s,^#!.*bin/env perl,#!%{__perl},
720 find -name '*.py' -print0 | xargs -0 sed -i -e '1{
721 s,^#!.*bin/python.*,#!%{__python3},
725 %{__sed} -i -e '1s,/usr/bin/env bash,/bin/bash,' tools/flang/tools/f18/flang-to-external-fc.in
731 # Disabling assertions now, rec. by pure and needed for OpenGTL
732 # TESTFIX no PIC on ix86: http://llvm.org/bugs/show_bug.cgi?id=3801
734 CPPFLAGS="%{rpmcppflags} -D_FILE_OFFSET_BITS=64"
737 export CFLAGS="%{rpmcflags} -DNDEBUG -g0"
738 export CXXFLAGS="%{rpmcxxflags} -DNDEBUG -g0"
739 if echo 'int main(){}' | %{__cc} -x c %{rpmldflags} -Wl,--reduce-memory-overheads -o /dev/null - > /dev/null 2>&1; then
740 export LDFLAGS="%{rpmldflags} -Wl,--reduce-memory-overheads"
745 -DBUILD_SHARED_LIBS:BOOL=OFF \
746 -DENABLE_LINKER_BUILD_ID:BOOL=ON \
747 -DLLVM_ADDITIONAL_BUILD_TYPES=PLD \
748 -DLLVM_COMMON_CMAKE_UTILS="%{_builddir}/%{buildsubdir}/cmake-utils" \
749 -DLLVM_BINDINGS_LIST:LIST="%{?with_ocaml:ocaml}" \
750 -DLLVM_BINUTILS_INCDIR:STRING=%{_includedir} \
751 -DLLVM_BUILD_LLVM_DYLIB:BOOL=ON \
752 -DLLVM_ENABLE_ASSERTIONS:BOOL=OFF \
753 -DLLVM_INSTALL_PACKAGE_DIR=%(realpath -m "--relative-to=%{_prefix}" "%{_libdir}/cmake/llvm") \
754 -DLLVM_TOOLS_INSTALL_DIR=%(realpath -m "--relative-to=%{_prefix}" "%{_bindir}") \
756 -DLLVM_ENABLE_DOXYGEN:BOOL=ON \
758 %{?with_cxxmodules:-DLLVM_ENABLE_MODULES:BOOL=ON} \
759 -DLLVM_ENABLE_PIC:BOOL=ON \
760 -DLLVM_ENABLE_RTTI:BOOL=ON \
762 -DLLVM_ENABLE_SPHINX:BOOL=ON \
764 -DLLVM_INCLUDE_BENCHMARKS:BOOL=OFF \
765 %{?with_z3:-DLLVM_ENABLE_Z3_SOLVER:BOOL=ON} \
766 %if "%{_lib}" == "lib64"
767 -DLLVM_LIBDIR_SUFFIX:STRING=64 \
769 %if "%{_lib}" == "libx32"
770 -DLLVM_LIBDIR_SUFFIX:STRING=x32 \
772 -DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
773 -DLLVM_TARGET_ARCH:STRING=%{_target_base_arch} \
774 -DLLVM_DEFAULT_TARGET_TRIPLE:STRING=%{_target_platform} \
776 -DLLVM_PARALLEL_LINK_JOBS:STRING=1 \
778 -DLLVM_TARGETS_TO_BUILD="%{targets_to_build}" \
779 -DLLVM_INCLUDE_TESTS:BOOL=OFF \
781 %{cmake_on_off target_nvptx POLLY_ENABLE_GPGPU_CODEGEN} \
783 -DSPHINX_WARNINGS_AS_ERRORS=OFF \
785 -DCOMPILER_RT_INCLUDE_TESTS:BOOL=OFF \
787 -DCOMPILER_RT_BUILD_MEMPROF:BOOL=OFF
793 OPTIMIZE_OPTION="%{rpmcflags} %{rpmcppflags}"
796 %{__make} check 2>&1 | tee llvm-testlog.txt
797 %{__make} -C tools/clang test 2>&1 | tee clang-testlog.txt
801 %{__make} -C docs docs-llvm-html
802 %{__make} -C docs docs-llvm-man
803 %{__make} -C tools/clang/docs docs-clang-html
804 %{__make} -C tools/clang/docs docs-clang-man
805 %{__make} -C tools/lld/docs docs-lld-html
807 # workaround failed import of _lldb
808 cp -pnL %{_lib}/liblldb.so tools/lldb/docs/lldb/_lldb.so
810 LD_LIBRARY_PATH=$(pwd)/%{_lib} \
811 -C tools/lldb/docs lldb-python-doc-package
812 %{__make} -C tools/lldb/docs lldb-cpp-doc
816 %{__make} -C docs ocaml_doc
820 rm -rf $RPM_BUILD_ROOT
822 %{__make} -j1 -C build install \
823 DESTDIR=$RPM_BUILD_ROOT
825 # only some .pyc files are created by make install
826 %py3_comp $RPM_BUILD_ROOT%{py3_sitedir}
827 %py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir}
829 # Adjust static analyzer installation (see -libexecdir patch)
830 abs_ca_libexecdir="%{_libexecdir}/clang-analyzer"
831 rel_ca_libexecdir="${abs_ca_libexecdir#%{_prefix}}"
832 %{__sed} -i -e "s,/\.\./libexec/,/..${rel_ca_libexecdir}/," $RPM_BUILD_ROOT%{_bindir}/scan-build
833 %py3_comp $RPM_BUILD_ROOT%{_datadir}/scan-view
834 %py3_ocomp $RPM_BUILD_ROOT%{_datadir}/scan-view
836 # not installed by cmake buildsystem
837 install build/bin/pp-trace $RPM_BUILD_ROOT%{_bindir}
840 cp -p build/docs/man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
841 # these tools are not installed
842 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/{FileCheck,clang-tblgen,lldb-tblgen}.1
844 echo '.so llvm-ar.1' > $RPM_BUILD_ROOT%{_mandir}/man1/llvm-ranlib.1
847 # Move documentation back to build directory
850 %{__mv} $RPM_BUILD_ROOT%{_docdir}/llvm/ocaml-html ocamldocs
853 # and separate the apidoc
856 cp -a build/tools/clang/docs/html clang-apidoc
859 # And prepare Clang documentation
861 install -d clang-docs
862 for f in LICENSE.TXT NOTES.txt README.txt; do
863 ln tools/clang/$f clang-docs
866 install -d $RPM_BUILD_ROOT%{bash_compdir}
867 %{__mv} $RPM_BUILD_ROOT%{_datadir}/clang/bash-autocomplete.sh $RPM_BUILD_ROOT%{bash_compdir}/clang
869 %{__rm} $RPM_BUILD_ROOT%{_bindir}/c-index-test
871 %{__rm} $RPM_BUILD_ROOT%{_datadir}/clang/clang-format-bbedit.applescript
872 # it seems it is used internally by an extra clang tool
873 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libfindAllSymbols.a
875 %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/objects-PLD
878 # disable completeness check incompatible with split packaging
879 %{__sed} -i -e '/^foreach(target .*IMPORT_CHECK_TARGETS/,/^endforeach/d; /^unset(_IMPORT_CHECK_TARGETS)/d' \
880 $RPM_BUILD_ROOT%{_libdir}/cmake/clang/ClangTargets.cmake \
882 $RPM_BUILD_ROOT%{_libdir}/cmake/flang/FlangTargets.cmake \
884 $RPM_BUILD_ROOT%{_libdir}/cmake/lld/LLDTargets.cmake \
885 $RPM_BUILD_ROOT%{_libdir}/cmake/llvm/LLVMExports.cmake \
887 $RPM_BUILD_ROOT%{_libdir}/cmake/mlir/MLIRTargets.cmake
891 rm -rf $RPM_BUILD_ROOT
893 %post libs -p /sbin/ldconfig
894 %postun libs -p /sbin/ldconfig
896 %post mlir -p /sbin/ldconfig
897 %postun mlir -p /sbin/ldconfig
899 %post -n clang-libs -p /sbin/ldconfig
900 %postun -n clang-libs -p /sbin/ldconfig
902 %post -n lldb -p /sbin/ldconfig
903 %postun -n lldb -p /sbin/ldconfig
906 %defattr(644,root,root,755)
907 %doc CREDITS.TXT LICENSE.TXT README.txt %{?with_tests:llvm-testlog.txt}
908 %attr(755,root,root) %{_bindir}/bugpoint
909 %attr(755,root,root) %{_bindir}/dsymutil
910 %attr(755,root,root) %{_bindir}/llc
911 %attr(755,root,root) %{_bindir}/lli
912 %attr(755,root,root) %{_bindir}/llvm-addr2line
913 %attr(755,root,root) %{_bindir}/llvm-ar
914 %attr(755,root,root) %{_bindir}/llvm-as
915 %attr(755,root,root) %{_bindir}/llvm-bcanalyzer
916 %attr(755,root,root) %{_bindir}/llvm-bitcode-strip
917 %attr(755,root,root) %{_bindir}/llvm-c-test
918 %attr(755,root,root) %{_bindir}/llvm-cat
919 %attr(755,root,root) %{_bindir}/llvm-cfi-verify
920 %attr(755,root,root) %{_bindir}/llvm-cov
921 %attr(755,root,root) %{_bindir}/llvm-cvtres
922 %attr(755,root,root) %{_bindir}/llvm-cxxdump
923 %attr(755,root,root) %{_bindir}/llvm-cxxfilt
924 %attr(755,root,root) %{_bindir}/llvm-cxxmap
925 %attr(755,root,root) %{_bindir}/llvm-debuginfo-analyzer
926 %attr(755,root,root) %{_bindir}/llvm-debuginfod
927 %attr(755,root,root) %{_bindir}/llvm-debuginfod-find
928 %attr(755,root,root) %{_bindir}/llvm-diff
929 %attr(755,root,root) %{_bindir}/llvm-dis
930 %attr(755,root,root) %{_bindir}/llvm-dlltool
931 %attr(755,root,root) %{_bindir}/llvm-dwarfdump
932 %attr(755,root,root) %{_bindir}/llvm-dwarfutil
933 %attr(755,root,root) %{_bindir}/llvm-dwp
934 %attr(755,root,root) %{_bindir}/llvm-exegesis
935 %attr(755,root,root) %{_bindir}/llvm-extract
936 %attr(755,root,root) %{_bindir}/llvm-gsymutil
937 %attr(755,root,root) %{_bindir}/llvm-ifs
938 %attr(755,root,root) %{_bindir}/llvm-install-name-tool
939 %attr(755,root,root) %{_bindir}/llvm-jitlink
940 %attr(755,root,root) %{_bindir}/llvm-lib
941 %attr(755,root,root) %{_bindir}/llvm-libtool-darwin
942 %attr(755,root,root) %{_bindir}/llvm-link
943 %attr(755,root,root) %{_bindir}/llvm-lipo
944 %attr(755,root,root) %{_bindir}/llvm-lto
945 %attr(755,root,root) %{_bindir}/llvm-lto2
946 %attr(755,root,root) %{_bindir}/llvm-mc
947 %attr(755,root,root) %{_bindir}/llvm-mca
948 %attr(755,root,root) %{_bindir}/llvm-ml
949 %attr(755,root,root) %{_bindir}/llvm-modextract
950 %attr(755,root,root) %{_bindir}/llvm-mt
951 %attr(755,root,root) %{_bindir}/llvm-nm
952 %attr(755,root,root) %{_bindir}/llvm-objcopy
953 %attr(755,root,root) %{_bindir}/llvm-objdump
954 %attr(755,root,root) %{_bindir}/llvm-opt-report
955 %attr(755,root,root) %{_bindir}/llvm-otool
956 %attr(755,root,root) %{_bindir}/llvm-pdbutil
957 %attr(755,root,root) %{_bindir}/llvm-profdata
958 %attr(755,root,root) %{_bindir}/llvm-profgen
959 %attr(755,root,root) %{_bindir}/llvm-ranlib
960 %attr(755,root,root) %{_bindir}/llvm-rc
961 %attr(755,root,root) %{_bindir}/llvm-readelf
962 %attr(755,root,root) %{_bindir}/llvm-readobj
963 %attr(755,root,root) %{_bindir}/llvm-readtapi
964 %attr(755,root,root) %{_bindir}/llvm-reduce
965 %attr(755,root,root) %{_bindir}/llvm-remarkutil
966 %attr(755,root,root) %{_bindir}/llvm-rtdyld
967 %attr(755,root,root) %{_bindir}/llvm-sim
968 %attr(755,root,root) %{_bindir}/llvm-size
969 %attr(755,root,root) %{_bindir}/llvm-split
970 %attr(755,root,root) %{_bindir}/llvm-strip
971 %attr(755,root,root) %{_bindir}/llvm-stress
972 %attr(755,root,root) %{_bindir}/llvm-strings
973 %attr(755,root,root) %{_bindir}/llvm-symbolizer
974 %attr(755,root,root) %{_bindir}/llvm-tblgen
975 %attr(755,root,root) %{_bindir}/llvm-tli-checker
976 %attr(755,root,root) %{_bindir}/llvm-undname
977 %attr(755,root,root) %{_bindir}/llvm-windres
978 %attr(755,root,root) %{_bindir}/llvm-xray
979 %attr(755,root,root) %{_bindir}/opt
980 %attr(755,root,root) %{_bindir}/sancov
981 %attr(755,root,root) %{_bindir}/sanstats
982 %attr(755,root,root) %{_bindir}/tblgen-lsp-server
983 %attr(755,root,root) %{_bindir}/verify-uselistorder
985 %{_mandir}/man1/bugpoint.1*
986 %{_mandir}/man1/dsymutil.1*
987 %{_mandir}/man1/lit.1*
988 %{_mandir}/man1/llc.1*
989 %{_mandir}/man1/lli.1*
990 %{_mandir}/man1/llvm-addr2line.1*
991 %{_mandir}/man1/llvm-ar.1*
992 %{_mandir}/man1/llvm-as.1*
993 %{_mandir}/man1/llvm-bcanalyzer.1*
994 %{_mandir}/man1/llvm-cov.1*
995 %{_mandir}/man1/llvm-cxxfilt.1*
996 %{_mandir}/man1/llvm-cxxmap.1*
997 %{_mandir}/man1/llvm-debuginfo-analyzer.1*
998 %{_mandir}/man1/llvm-diff.1*
999 %{_mandir}/man1/llvm-dis.1*
1000 %{_mandir}/man1/llvm-dwarfdump.1*
1001 %{_mandir}/man1/llvm-dwarfutil.1*
1002 %{_mandir}/man1/llvm-exegesis.1*
1003 %{_mandir}/man1/llvm-extract.1*
1004 %{_mandir}/man1/llvm-ifs.1*
1005 %{_mandir}/man1/llvm-install-name-tool.1*
1006 %{_mandir}/man1/llvm-lib.1*
1007 %{_mandir}/man1/llvm-libtool-darwin.1*
1008 %{_mandir}/man1/llvm-link.1*
1009 %{_mandir}/man1/llvm-lipo.1*
1010 %{_mandir}/man1/llvm-locstats.1*
1011 %{_mandir}/man1/llvm-mc.1*
1012 %{_mandir}/man1/llvm-mca.1*
1013 %{_mandir}/man1/llvm-nm.1*
1014 %{_mandir}/man1/llvm-objcopy.1*
1015 %{_mandir}/man1/llvm-objdump.1*
1016 %{_mandir}/man1/llvm-opt-report.1*
1017 %{_mandir}/man1/llvm-otool.1*
1018 %{_mandir}/man1/llvm-pdbutil.1*
1019 %{_mandir}/man1/llvm-profdata.1*
1020 %{_mandir}/man1/llvm-profgen.1*
1021 %{_mandir}/man1/llvm-ranlib.1*
1022 %{_mandir}/man1/llvm-readelf.1*
1023 %{_mandir}/man1/llvm-readobj.1*
1024 %{_mandir}/man1/llvm-reduce.1*
1025 %{_mandir}/man1/llvm-remarkutil.1*
1026 %{_mandir}/man1/llvm-size.1*
1027 %{_mandir}/man1/llvm-stress.1*
1028 %{_mandir}/man1/llvm-strings.1*
1029 %{_mandir}/man1/llvm-strip.1*
1030 %{_mandir}/man1/llvm-symbolizer.1*
1031 %{_mandir}/man1/llvm-tblgen.1*
1032 %{_mandir}/man1/llvm-tli-checker.1*
1033 %{_mandir}/man1/opt.1*
1034 %{_mandir}/man1/tblgen.1*
1038 %defattr(644,root,root,755)
1039 %attr(755,root,root) %{_libdir}/LLVMgold.so
1040 %attr(755,root,root) %{_libdir}/libLLVM-18.so
1041 %attr(755,root,root) %{_libdir}/libLLVM.so.%{abi}
1042 %attr(755,root,root) %{_libdir}/libLTO.so.18.1
1043 %attr(755,root,root) %{_libdir}/libRemarks.so.18.1
1044 %attr(755,root,root) %{_libdir}/libclang-cpp.so.18.1
1047 %defattr(644,root,root,755)
1048 %attr(755,root,root) %{_bindir}/llvm-config
1049 %attr(755,root,root) %{_libdir}/libLLVM.so
1050 %attr(755,root,root) %{_libdir}/libLTO.so
1051 %attr(755,root,root) %{_libdir}/libRemarks.so
1052 %attr(755,root,root) %{_libdir}/libclang-cpp.so
1053 %{_libdir}/libLLVM*.a
1055 %{_includedir}/llvm-c
1056 %{_libdir}/cmake/llvm
1058 %{_mandir}/man1/llvm-config.1*
1063 %defattr(644,root,root,755)
1069 %defattr(644,root,root,755)
1070 %attr(755,root,root) %{_bindir}/mlir-cat
1071 %attr(755,root,root) %{_bindir}/mlir-cpu-runner
1072 %attr(755,root,root) %{_bindir}/mlir-linalg-ods-yaml-gen
1073 %attr(755,root,root) %{_bindir}/mlir-lsp-server
1074 %attr(755,root,root) %{_bindir}/mlir-minimal-opt
1075 %attr(755,root,root) %{_bindir}/mlir-minimal-opt-canonicalize
1076 %attr(755,root,root) %{_bindir}/mlir-opt
1077 %attr(755,root,root) %{_bindir}/mlir-pdll
1078 %attr(755,root,root) %{_bindir}/mlir-pdll-lsp-server*
1079 %attr(755,root,root) %{_bindir}/mlir-query
1080 %attr(755,root,root) %{_bindir}/mlir-reduce
1081 %attr(755,root,root) %{_bindir}/mlir-tblgen
1082 %attr(755,root,root) %{_bindir}/mlir-translate
1083 %attr(755,root,root) %{_bindir}/tblgen-to-irdl
1084 %attr(755,root,root) %{_libdir}/libMLIR.so.18.1
1085 %attr(755,root,root) %{_libdir}/libmlir_arm_runner_utils.so.18.1
1086 %attr(755,root,root) %{_libdir}/libmlir_arm_sme_abi_stubs.so.18.1
1087 %attr(755,root,root) %{_libdir}/libmlir_async_runtime.so.18.1
1088 %attr(755,root,root) %{_libdir}/libmlir_c_runner_utils.so.18.1
1089 %attr(755,root,root) %{_libdir}/libmlir_float16_utils.so.18.1
1090 %attr(755,root,root) %{_libdir}/libmlir_runner_utils.so.18.1
1092 %{_mandir}/man1/mlir-tblgen.1*
1096 %defattr(644,root,root,755)
1097 %attr(755,root,root) %{_libdir}/libMLIR.so
1098 %attr(755,root,root) %{_libdir}/libmlir_arm_runner_utils.so
1099 %attr(755,root,root) %{_libdir}/libmlir_arm_sme_abi_stubs.so
1100 %attr(755,root,root) %{_libdir}/libmlir_async_runtime.so
1101 %attr(755,root,root) %{_libdir}/libmlir_c_runner_utils.so
1102 %attr(755,root,root) %{_libdir}/libmlir_float16_utils.so
1103 %attr(755,root,root) %{_libdir}/libmlir_runner_utils.so
1104 %{_libdir}/libMLIR*.a
1106 %{_includedir}/mlir-c
1107 %{_libdir}/cmake/mlir
1112 %defattr(644,root,root,755)
1113 %doc tools/polly/{CREDITS.txt,LICENSE.TXT,README} tools/polly/www/{bugs,changelog,contributors}.html
1114 %attr(755,root,root) %{_libdir}/LLVMPolly.so
1117 %defattr(644,root,root,755)
1118 %{_libdir}/libPolly.a
1119 %{_libdir}/libPollyISL.a
1120 %{_includedir}/polly
1121 %{_libdir}/cmake/polly
1125 %defattr(644,root,root,755)
1126 %doc clang-docs/{LICENSE.TXT,NOTES.txt,README.txt} %{?with_tests:clang-testlog.txt}
1127 %attr(755,root,root) %{_bindir}/amdgpu-arch
1128 %attr(755,root,root) %{_bindir}/clang
1129 %attr(755,root,root) %{_bindir}/clang++
1130 %attr(755,root,root) %{_bindir}/clang-18
1131 %attr(755,root,root) %{_bindir}/clang-check
1132 %attr(755,root,root) %{_bindir}/clang-cl
1133 %attr(755,root,root) %{_bindir}/clang-cpp
1134 %attr(755,root,root) %{_bindir}/clang-doc
1135 %attr(755,root,root) %{_bindir}/clang-format
1136 %attr(755,root,root) %{_bindir}/clang-linker-wrapper
1137 %attr(755,root,root) %{_bindir}/clang-offload-bundler
1138 %attr(755,root,root) %{_bindir}/clang-offload-packager
1139 %attr(755,root,root) %{_bindir}/clang-pseudo
1140 %attr(755,root,root) %{_bindir}/clang-repl
1141 %attr(755,root,root) %{_bindir}/clang-tblgen
1142 %attr(755,root,root) %{_bindir}/git-clang-format
1143 %attr(755,root,root) %{_bindir}/nvptx-arch
1144 %dir %{_libdir}/clang
1145 %dir %{_libdir}/clang/18
1146 %{_libdir}/clang/18/include
1148 %ifarch %{x8664} x32 aarch64
1149 %dir %{_libdir}/clang/18/bin
1150 %attr(755,root,root) %{_libdir}/clang/18/bin/hwasan_symbolize
1152 %ifarch %{ix86} %{x8664} aarch64 %{armv7}
1153 %dir %{_libdir}/clang/18/lib
1154 %dir %{_libdir}/clang/18/lib/*-linux*
1155 %dir %{_libdir}/clang/18/share
1158 %if %{with multilib}
1159 %dir %{_libdir}/clang/18/lib
1160 %dir %{_libdir}/clang/18/lib/*-linux*
1161 %dir %{_libdir}/clang/18/share
1165 %{_libdir}/clang/18/lib/i*86-*linux/clang_rt.*.o
1166 %{_libdir}/clang/18/lib/i*86-*linux/libclang_rt.*.a
1167 %attr(755,root,root) %{_libdir}/clang/18/lib/i*86-*linux/libclang_rt.*.so
1170 %{_libdir}/clang/18/lib/x86_64-*linux/clang_rt.*.o
1171 %{_libdir}/clang/18/lib/x86_64-*linux/libclang_rt.*.a
1172 %attr(755,root,root) %{_libdir}/clang/18/lib/x86_64-*linux/libclang_rt.*.so
1173 %{_libdir}/clang/18/lib/x86_64-*linux/libclang_rt.*.a.syms
1174 %{_libdir}/clang/18/lib/x86_64-*linux/liborc_rt.a
1177 %{_libdir}/clang/18/lib/aarch64-*linux/clang_rt.*.o
1178 %{_libdir}/clang/18/lib/aarch64-*linux/libclang_rt.*.a
1179 %attr(755,root,root) %{_libdir}/clang/18/lib/aarch64-*linux/libclang_rt.*.so
1180 %{_libdir}/clang/18/lib/aarch64-*linux/libclang_rt.*.a.syms
1181 %{_libdir}/clang/18/lib/aarch64-*linux/liborc_rt.a
1184 %ifarch %{arm32_with_hf}
1185 %{_libdir}/clang/18/lib/arm-*linux%{_gnu}hf/clang_rt.*.o
1186 %{_libdir}/clang/18/lib/arm-*linux%{_gnu}hf/libclang_rt.*.a
1187 %attr(755,root,root) %{_libdir}/clang/18/lib/arm-*linux%{_gnu}hf/libclang_rt.*.so
1188 %{_libdir}/clang/18/lib/arm-*linux%{_gnu}hf/libclang_rt.*.a.syms
1189 %{_libdir}/clang/18/lib/arm-*linux%{_gnu}hf/liborc_rt.a
1191 %{_libdir}/clang/18/lib/arm-*linux%{_gnu}/clang_rt.*.o
1192 %{_libdir}/clang/18/lib/arm-*linux%{_gnu}/libclang_rt.*.a
1193 %attr(755,root,root) %{_libdir}/clang/18/lib/arm-*linux%{_gnu}/libclang_rt.*.so
1194 %{_libdir}/clang/18/lib/arm-*linux%{_gnu}/libclang_rt.*.a.syms
1195 %{_libdir}/clang/18/lib/arm-*linux%{_gnu}/liborc_rt.a
1198 %ifarch %{ix86} %{x8664} %{arm} aarch64 mips mips64 ppc64
1199 %{_libdir}/clang/18/share/asan_ignorelist.txt
1201 %ifarch %{ix86} %{x8664} mips64 aarch64 %{armv7}
1202 %{_libdir}/clang/18/share/cfi_ignorelist.txt
1204 %ifarch %{x8664} aarch64 mips64
1205 %{_libdir}/clang/18/share/dfsan_abilist.txt
1206 %{_libdir}/clang/18/share/msan_ignorelist.txt
1208 %ifarch %{x8664} aarch64
1209 %{_libdir}/clang/18/share/hwasan_ignorelist.txt
1212 %if %{with multilib}
1213 %{_libdir}/clang/18/share/asan_ignorelist.txt
1214 %{_libdir}/clang/18/share/cfi_ignorelist.txt
1215 %{_libdir}/clang/18/share/dfsan_abilist.txt
1216 %{_libdir}/clang/18/share/msan_ignorelist.txt
1217 %{_libdir}/clang/18/share/hwasan_ignorelist.txt
1221 %dir %{_datadir}/clang
1222 %{_datadir}/clang/clang-format-diff.py
1224 %if %{with rt} && %{with multilib}
1225 %ifarch %{x8664} x32
1226 %files -n clang-multilib
1227 %defattr(644,root,root,755)
1228 %{_libdir}/clang/18/lib/i386-*linux/clang_rt.*.o
1229 %{_libdir}/clang/18/lib/i386-*linux/libclang_rt.*.a
1230 %attr(755,root,root) %{_libdir}/clang/18/lib/i386-*linux/libclang_rt.*.so
1233 %{_libdir}/clang/18/lib/x86_64-*linux/clang_rt.*.o
1234 %{_libdir}/clang/18/lib/x86_64-*linux/libclang_rt.*.a
1235 %attr(755,root,root) %{_libdir}/clang/18/lib/x86_64-*linux/libclang_rt.*.so
1236 %{_libdir}/clang/18/lib/x86_64-*linux/libclang_rt.*.a.syms
1237 %{_libdir}/clang/18/lib/x86_64-*linux/liborc_rt.a
1241 %files -n clang-libs
1242 %defattr(644,root,root,755)
1243 %attr(755,root,root) %{_libdir}/libclang.so.18.1
1244 %attr(755,root,root) %{_libdir}/libclang.so.*.*.*
1246 %files -n clang-devel
1247 %defattr(644,root,root,755)
1248 %attr(755,root,root) %{_libdir}/libclang.so
1249 %{_libdir}/libclang*.a
1250 %{_includedir}/clang
1251 %{_includedir}/clang-c
1252 %{_includedir}/clang-tidy
1253 %{_libdir}/cmake/clang
1256 %defattr(644,root,root,755)
1257 %doc tools/clang/docs/*.{html,png,txt}
1260 %files -n clang-apidocs
1261 %defattr(644,root,root,755)
1265 %files -n clang-analyzer
1266 %defattr(644,root,root,755)
1267 %dir %{_libexecdir}/clang-analyzer
1269 %attr(755,root,root) %{_bindir}/scan-build
1270 %attr(755,root,root) %{_libexecdir}/clang-analyzer/c++-analyzer
1271 %attr(755,root,root) %{_libexecdir}/clang-analyzer/ccc-analyzer
1272 %{_datadir}/scan-build
1273 %{_mandir}/man1/scan-build.1*
1275 %attr(755,root,root) %{_bindir}/analyze-build
1276 %attr(755,root,root) %{_bindir}/intercept-build
1277 %attr(755,root,root) %{_bindir}/scan-build-py
1278 %attr(755,root,root) %{_bindir}/scan-view
1279 %attr(755,root,root) %{_libexecdir}/clang-analyzer/analyze-c++
1280 %attr(755,root,root) %{_libexecdir}/clang-analyzer/analyze-cc
1281 %attr(755,root,root) %{_libexecdir}/clang-analyzer/intercept-c++
1282 %attr(755,root,root) %{_libexecdir}/clang-analyzer/intercept-cc
1283 %{_prefix}/%{_lib}/libear
1284 %{_prefix}/%{_lib}/libscanbuild
1285 %{_datadir}/scan-view
1287 %files -n clang-tools-extra
1288 %defattr(644,root,root,755)
1289 %doc tools/clang/tools/extra/{CODE_OWNERS.TXT,README.txt}
1290 %attr(755,root,root) %{_bindir}/clang-apply-replacements
1291 %attr(755,root,root) %{_bindir}/clang-change-namespace
1292 %attr(755,root,root) %{_bindir}/clang-extdef-mapping
1293 %attr(755,root,root) %{_bindir}/clang-include-cleaner
1294 %attr(755,root,root) %{_bindir}/clang-include-fixer
1295 %attr(755,root,root) %{_bindir}/clang-move
1296 %attr(755,root,root) %{_bindir}/clang-query
1297 %attr(755,root,root) %{_bindir}/clang-refactor
1298 %attr(755,root,root) %{_bindir}/clang-rename
1299 %attr(755,root,root) %{_bindir}/clang-reorder-fields
1300 %attr(755,root,root) %{_bindir}/clang-scan-deps
1301 %attr(755,root,root) %{_bindir}/clang-tidy
1302 %attr(755,root,root) %{_bindir}/clangd
1303 %attr(755,root,root) %{_bindir}/diagtool
1304 %attr(755,root,root) %{_bindir}/find-all-symbols
1305 %attr(755,root,root) %{_bindir}/hmaptool
1306 %attr(755,root,root) %{_bindir}/modularize
1307 %attr(755,root,root) %{_bindir}/pp-trace
1308 %attr(755,root,root) %{_bindir}/run-clang-tidy
1309 %{_datadir}/clang/clang-include-fixer.py
1310 %{_datadir}/clang/clang-tidy-diff.py
1311 %{_datadir}/clang/run-find-all-symbols.py
1313 %files -n bash-completion-clang
1314 %defattr(644,root,root,755)
1315 %{bash_compdir}/clang
1319 %defattr(644,root,root,755)
1320 %doc tools/flang/{LICENSE.TXT,README.md}
1321 %attr(755,root,root) %{_bindir}/bbc
1322 %attr(755,root,root) %{_bindir}/f18-parse-demo
1323 %attr(755,root,root) %{_bindir}/fir-opt
1324 %attr(755,root,root) %{_bindir}/flang-new
1325 %attr(755,root,root) %{_bindir}/flang-to-external-fc
1326 %attr(755,root,root) %{_bindir}/tco
1327 %dir %{_includedir}/flang
1328 %{_includedir}/flang/Version.inc
1329 %{_includedir}/flang/__fortran_*.mod
1330 %{_includedir}/flang/ieee_*.mod
1331 %{_includedir}/flang/iso_*.mod
1332 %{_includedir}/flang/omp_lib*.mod
1334 %files -n flang-devel
1335 %defattr(644,root,root,755)
1336 %{_libdir}/libFIR*.a
1337 %{_libdir}/libHLFIR*.a
1338 %{_libdir}/libFortran*.a
1339 %{_libdir}/libflangFrontend*.a
1340 %{_includedir}/flang/Common
1341 %{_includedir}/flang/Decimal
1342 %{_includedir}/flang/Evaluate
1343 %{_includedir}/flang/Frontend
1344 %{_includedir}/flang/FrontendTool
1345 %{_includedir}/flang/Lower
1346 %{_includedir}/flang/Optimizer
1347 %{_includedir}/flang/Parser
1348 %{_includedir}/flang/Runtime
1349 %{_includedir}/flang/Semantics
1350 %{_includedir}/flang/Tools
1351 %{_includedir}/flang/ISO_Fortran_binding.h
1352 %{_libdir}/cmake/flang
1356 %defattr(644,root,root,755)
1357 %doc tools/lld/{LICENSE.TXT,README.md}
1358 %attr(755,root,root) %{_bindir}/ld.lld
1359 %attr(755,root,root) %{_bindir}/ld64.lld
1360 %attr(755,root,root) %{_bindir}/lld
1361 %attr(755,root,root) %{_bindir}/lld-link
1362 %attr(755,root,root) %{_bindir}/wasm-ld
1365 %defattr(644,root,root,755)
1366 %{_libdir}/liblld[ACDEHMRWXY]*.a
1368 %{_libdir}/cmake/lld
1372 %defattr(644,root,root,755)
1373 %attr(755,root,root) %{_bindir}/lldb
1374 %attr(755,root,root) %{_bindir}/lldb-argdumper
1375 %attr(755,root,root) %{_bindir}/lldb-dap
1376 %attr(755,root,root) %{_bindir}/lldb-instr
1377 %attr(755,root,root) %{_bindir}/lldb-server
1378 %attr(755,root,root) %{_libdir}/liblldb.so.%{version}
1379 %attr(755,root,root) %ghost %{_libdir}/liblldb.so.18.1
1380 %attr(755,root,root) %ghost %{_libdir}/liblldbIntelFeatures.so.18.1
1381 %dir %{py3_sitedir}/lldb
1382 %attr(755,root,root) %{py3_sitedir}/lldb/lldb-argdumper
1383 %{py3_sitedir}/lldb/formatters
1384 %{py3_sitedir}/lldb/utils
1385 %{py3_sitedir}/lldb/__init__.py
1386 %{py3_sitedir}/lldb/__pycache__
1387 %{py3_sitedir}/lldb/embedded_interpreter.py
1388 %dir %{py3_sitedir}/lldb/plugins
1389 %{py3_sitedir}/lldb/plugins/__pycache__
1390 %{py3_sitedir}/lldb/plugins/__init__.py
1391 %{py3_sitedir}/lldb/plugins/operating_system.py
1392 %{py3_sitedir}/lldb/plugins/scripted_platform.py
1393 %{py3_sitedir}/lldb/plugins/scripted_process.py
1394 %attr(755,root,root) %{py3_sitedir}/lldb/_lldb.cpython-*.so
1396 %files -n lldb-devel
1397 %defattr(644,root,root,755)
1398 %attr(755,root,root) %{_libdir}/liblldb.so
1399 %attr(755,root,root) %{_libdir}/liblldbIntelFeatures.so
1405 %defattr(644,root,root,755)
1406 %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllllvm*.so
1407 %dir %{_libdir}/ocaml/llvm
1408 %{_libdir}/ocaml/llvm/llvm*.cma
1409 %{_libdir}/ocaml/llvm/llvm*.cmi
1410 %{_libdir}/ocaml/META.llvm*
1413 %defattr(644,root,root,755)
1414 %{_libdir}/ocaml/llvm/libllvm*.a
1415 %{_libdir}/ocaml/llvm/llvm*.a
1416 %{_libdir}/ocaml/llvm/llvm*.cmt
1417 %{_libdir}/ocaml/llvm/llvm*.cmti
1418 %{_libdir}/ocaml/llvm/llvm*.cmx
1419 %{_libdir}/ocaml/llvm/llvm*.cmxa
1420 %{_libdir}/ocaml/llvm/llvm*.mli
1423 %defattr(644,root,root,755)
1428 %defattr(644,root,root,755)
1429 %{_datadir}/opt-viewer
1431 %files -n vim-plugin-clang
1432 %defattr(644,root,root,755)
1433 %{_datadir}/clang/clang-format.py
1434 %{_datadir}/clang/clang-rename.py