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 # - no content in doc package (it used to contain parts of clang apidocs and some examples)
12 # - system isl in polly?
13 # - dependencies and files for lua module
14 # %{_libdir}/lua/5.3/lldb.so
15 # - figure out whether we need obj.MLIRCAPIIR files
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
20 # find_package(SPIRV-Tools)
23 # The imported target "mlir-tblgen" references the file
25 # "/usr/bin/mlir-tblgen"
27 # but this file does not exist. Possible reasons include:
31 %bcond_without lldb # LLDB debugger
32 %bcond_without mlir # MLIR libraries and tools (required for Flang)
33 %bcond_with flang # Flang (Fortran18) compiler (heavy memory requirements during build)
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
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 armv4b armv4l armv4tl armv5tl armv5tel armv5tejl armv6l armv6hl
72 %ifarch %{arm} aarch64
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;}
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: e3a27e5cf58b146cfd2e5c9755030298
92 Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/clang-%{version}.src.tar.xz
93 # Source1-md5: f2679a17d6be9d1a2298f546c0b4e844
94 Source2: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/compiler-rt-%{version}.src.tar.xz
95 # Source2-md5: 1f990209b6c102e41a45bec854b76fa2
96 Source3: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/lldb-%{version}.src.tar.xz
97 # Source3-md5: 4a02bc28b793a698342debdd01e65ce3
98 Source4: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/polly-%{version}.src.tar.xz
99 # Source4-md5: 34a8dc88cce024f9668746f849fe3c35
100 Source5: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/clang-tools-extra-%{version}.src.tar.xz
101 # Source5-md5: 45741472f0b8a0f4261f4599a1387acd
102 Source6: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/lld-%{version}.src.tar.xz
103 # Source6-md5: 53e64e6eeda6705fb13e1d233f79def4
104 Source7: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/flang-%{version}.src.tar.xz
105 # Source7-md5: 40d4b36d5b3b954eff378b3d6f19549c
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
107 Source8: mlir-%{version}.tar.xz
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
111 Patch1: %{name}-pld.patch
112 Patch2: %{name}-python-modules.patch
113 Patch3: x32-gcc-toolchain.patch
114 Patch4: cmake-buildtype.patch
115 Patch5: %{name}-ocaml-shared.patch
116 Patch6: %{name}-flang.patch
117 Patch7: llvm12-build_fixes.patch
118 Patch8: %{name}-selective_bindings.patch
119 Patch9: %{name}-libexecdir.patch
120 Patch10: compiler-rt-paths.patch
121 Patch11: cmake-utils-path-override.patch
122 URL: https://llvm.org/
124 BuildRequires: binutils-devel
126 BuildRequires: cmake >= 3.13.4
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-pygments >= 2.0
147 BuildRequires: rpm-build >= 4.6
148 BuildRequires: rpm-pythonprov
149 BuildRequires: rpmbuild(macros) >= 1.742
150 %{?with_doc:BuildRequires: sphinx-pdg}
151 BuildRequires: tar >= 1:1.22
152 BuildRequires: xar-devel >= 1.6
154 %{?with_z3:BuildRequires: z3-devel >= 4.7.1}
155 BuildRequires: zlib-devel
157 BuildRequires: doxygen
158 BuildRequires: graphviz
161 BuildRequires: dejagnu
162 BuildRequires: tcl-devel
164 %if %{with rt} && %{with multilib}
166 BuildRequires: gcc-c++-multilib-32
167 BuildRequires: glibc-devel(ix86)
168 BuildRequires: libstdc++-multilib-32-devel
171 BuildRequires: gcc-c++-multilib-32
172 BuildRequires: gcc-c++-multilib-64
173 BuildRequires: glibc-devel(x86_64)
174 BuildRequires: glibc-devel(ix86)
175 BuildRequires: libstdc++-multilib-32-devel
176 BuildRequires: libstdc++-multilib-64-devel
180 BuildRequires: epydoc
181 %ifarch i386 i486 %{arm}
182 BuildRequires: libatomic-devel
184 BuildRequires: libxml2-devel >= 2
185 BuildRequires: lua-devel
186 BuildRequires: ncurses-ext-devel
187 BuildRequires: python3-devel >= 1:3.2
188 %{?with_doc:BuildRequires: python3-recommonmark}
189 BuildRequires: swig-python >= 3.0.11
190 BuildRequires: xz-devel
193 #BuildRequires: gmp-devel or imath-devel (private copy in polly/lib/External/isl/imath)
194 # private copy in polly/lib/External/isl
195 #BuildRequires: isl-devel >= 0.22.1
196 #TODO (bcond): cuda-devel (with POLLY_ENABLE_GPGPU_CODEGEN=ON)
197 %{?with_target_nvptx:BuildRequires: ocl-icd-libOpenCL-devel}
200 BuildConflicts: llvm-ocaml
202 Requires: %{name}-libs = %{version}-%{release}
203 # LLVM is not supported on PPC64
204 # http://llvm.org/bugs/show_bug.cgi?id=3729
206 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
209 %define _sysconfdir /etc/%{name}
211 %define specflags_ppc -fno-var-tracking-assignments
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
217 %define _enable_debug_packages 0
219 # ix86 and x32 - the same issue as https://llvm.org/bugs/show_bug.cgi?id=27237
220 # use -gsplit-dwarf only when building packages with debuginfo
221 # to avoid excessive disk space usage
222 %if 0%{?_enable_debug_packages}
223 %define specflags -gsplit-dwarf
226 # strip corrupts: $RPM_BUILD_ROOT/usr/lib64/llvm-gcc/bin/llvm-c++ ...
227 %define _noautostrip .*/\\(libmud.*\\.a\\|bin/llvm-.*\\|lib.*++\\.a\\)
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
232 %define filterout_c -fvar-tracking-assignments
233 %define filterout_cxx -fvar-tracking-assignments -Werror=format-security
234 %define filterout_ccpp -fvar-tracking-assignments
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
241 currently supports compilation of C and C++ programs using clang
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
249 kompilację programów w C i C++ przy użyciu frontendu clang.
252 Summary: LLVM shared libraries
253 Summary(pl.UTF-8): Biblioteki współdzielone LLVM-a
255 Conflicts: llvm < 3.2
258 LLVM shared libraries.
260 %description libs -l pl.UTF-8
261 Biblioteki współdzielone LLVM-a.
264 Summary: Static libraries and header files for LLVM
265 Summary(pl.UTF-8): Biblioteki statyczne i pliki nagłówkowe dla LLVM-a
266 Group: Development/Languages
267 Requires: %{name}-libs = %{version}-%{release}
268 Requires: libstdc++-devel >= 6:3.4
271 This package contains static libraries and header files needed to
272 develop new native programs that use the LLVM infrastructure.
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
280 Summary: Documentation for LLVM
281 Summary(pl.UTF-8): Dokumentacja do LLVM-a
283 # does not require base
286 Documentation for the LLVM compiler infrastructure.
288 %description doc -l pl.UTF-8
289 Dokumentacja do infrastruktury kompilatorów LLVM.
292 Summary: API documentation for LLVM
293 Summary(pl.UTF-8): Dokumentacja API LLVM-a
294 Group: Development/Languages
295 Requires: %{name}-doc = %{version}-%{release}
298 API documentation for the LLVM compiler infrastructure.
300 %description apidocs -l pl.UTF-8
301 Dokumentacja API infrastruktury kompilatorów LLVM.
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}
311 LLVM Multi-Level Intermediate Representation libraries and tools.
313 %description mlir -l pl.UTF-8
314 Biblioteki i narzędzia wielopoziomowej reprezentacji pośredniej LLVM.
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}
324 %description mlir-devel
325 LLVM Multi-Level Intermediate Representation development files.
327 %description mlir-devel -l pl.UTF-8
328 Pliki do programowania z użyciem wielopoziomowej reprezentacji
332 Summary: Polyhedral optimizations for LLVM
333 Summary(pl.UTF-8): Optymalizacje wielościanowe dla LLVM-a
334 Group: Development/Tools
335 URL: https://polly.llvm.org/
336 Requires: %{name} = %{version}-%{release}
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.
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.
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
354 URL: https://polly.llvm.org/
355 Requires: %{name}-devel = %{version}-%{release}
356 Requires: %{name}-polly = %{version}-%{release}
358 %description polly-devel
359 Header files for LLVM Polly optimization infrastructure.
361 %description polly-devel -l pl.UTF-8
362 Pliki nagłówkowe infrastruktury optymalizacji LLVM-a Polly.
365 Summary: A C language family frontend for LLVM
366 Summary(pl.UTF-8): Frontend LLVM-a do języków z rodziny C
367 Group: Development/Languages
368 URL: https://clang.llvm.org/
369 Requires: %{name} = %{version}-%{release}
370 Requires: clang-libs = %{version}-%{release}
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.
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.
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
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
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
393 Group: Development/Languages
394 URL: https://clang.llvm.org/
395 Requires: clang = %{version}-%{release}
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.
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.
405 This package contains the C compiler support for producing 32-bit
406 programs on 64-bit host.
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
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
418 Ten pakiet zawiera rozszerzenie kompilatora C o obsługę tworzenia
419 programów 32-bitowych na maszynie 64-bitowej.
421 %package -n clang-libs
422 Summary: Clang shared libraries
423 Summary(pl.UTF-8): Biblioteki współdzielone Clanga
425 URL: https://clang.llvm.org/
427 %description -n clang-libs
428 Clang shared libraries.
430 %description -n clang-libs -l pl.UTF-8
431 Biblioteki współdzielone Clanga.
433 %package -n clang-devel
434 Summary: Header files for Clang
435 Summary(pl.UTF-8): Pliki nagłówkowe Clanga
436 Group: Development/Languages
437 URL: https://clang.llvm.org/
438 Requires: %{name}-devel = %{version}-%{release}
439 Requires: clang = %{version}-%{release}
440 %{?with_polly:Requires: llvm-polly-devel = %{version}-%{release}}
442 %description -n clang-devel
443 This package contains header files for the Clang compiler.
445 %description -n clang-devel -l pl.UTF-8
446 Ten pakiet zawiera pliki nagłówkowe kompilatora Clang.
448 %package -n clang-doc
449 Summary: Documentation for Clang
450 Summary(pl.UTF-8): Dokumentacja do Clanga
451 URL: https://clang.llvm.org/
453 Requires: %{name} = %{version}-%{release}
455 %description -n clang-doc
456 Documentation for the Clang compiler front-end.
458 %description -n clang-doc -l pl.UTF-8
459 Dokumentacja do frontendu kompilatora Clang.
461 %package -n clang-apidocs
462 Summary: API documentation for Clang
463 Summary(pl.UTF-8): Dokumentacja API Clanga
464 URL: https://clang.llvm.org/
465 Group: Development/Languages
466 Requires: clang-doc = %{version}-%{release}
468 %description -n clang-apidocs
469 API documentation for the Clang compiler.
471 %description -n clang-apidocs -l pl.UTF-8
472 Dokumentacja API kompilatora Clang.
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
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.
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.
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
500 URL: https://clang.llvm.org/docs/ClangTools.html
501 Requires: clang = %{version}-%{release}
503 %description -n clang-tools-extra
504 Extra tools for Clang.
506 %description -n clang-tools-extra -l pl.UTF-8
507 Dodatkowe narzędzia do kompilatora Clang.
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 >= 1:2.0
514 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 = %{version}-%{release}
543 Requires: flang-devel = %{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 = %{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 = %{version}-%{release}
605 Requires: clang-devel = %{version}-%{release}
606 Requires: lldb = %{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 = %{version}-%{release}
634 Requires: %{name}-ocaml = %{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}
650 %description ocaml-doc
651 HTML documentation for LLVM's OCaml binding.
653 %description ocaml-doc -l pl.UTF-8
654 Dokumentacja HTML wiązania OCamla do LLVM-a.
657 Summary: Optimization records visualization tools
658 Summary(pl.UTF-8): Narzędzia do wizualizacji rekordów optymalizacji
659 Group: Development/Tools
660 Requires: %{name} = %{version}
663 %description opt-viewer
664 Optimization records visualization tools.
666 %description opt-viewer -l pl.UTF-8
667 Narzędzia do wizualizacji rekordów optymalizacji.
669 %package -n vim-plugin-clang
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
672 Group: Applications/Editors/Vim
673 Requires: vim-rt >= 4:7.0
676 %description -n vim-plugin-clang
677 Clang format and rename integration for Vim.
679 %description -n vim-plugin-clang -l pl.UTF-8
680 Integracja narzędzi Clang do formatowania i zmiany nazw z Vimem.
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
684 %{__mv} clang-%{version}.src tools/clang
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}
688 %{__mv} clang-tools-extra-%{version}.src tools/clang/tools/extra
689 %{__mv} lld-%{version}.src tools/lld
691 %{__mv} flang-%{version}.src tools/flang
694 %{__mv} mlir tools/mlir
696 %{__mv} cmake-%{version}.src cmake-utils
714 grep -rl /usr/bin/env projects tools utils | xargs sed -i -e '1{
715 s,^#!.*bin/env python3\?,#!%{__python3},
716 s,^#!.*bin/env perl,#!%{__perl},
719 find -name '*.py' -print0 | xargs -0 sed -i -e '1{
720 s,^#!.*bin/python.*,#!%{__python3},
724 %{__sed} -i -e '1s,/usr/bin/env bash,/bin/bash,' tools/flang/tools/f18/flang.in
730 # Disabling assertions now, rec. by pure and needed for OpenGTL
731 # TESTFIX no PIC on ix86: http://llvm.org/bugs/show_bug.cgi?id=3801
733 CPPFLAGS="%{rpmcppflags} -D_FILE_OFFSET_BITS=64"
736 export CFLAGS="%{rpmcflags} -g0"
737 export CXXFLAGS="%{rpmcxxflags} -g0"
738 if echo 'int main(){}' | %{__cc} -x c %{rpmldflags} -Wl,--reduce-memory-overheads -o /dev/null - > /dev/null 2>&1; then
739 export LDFLAGS="%{rpmldflags} -Wl,--reduce-memory-overheads"
744 -DBUILD_SHARED_LIBS:BOOL=OFF \
745 -DENABLE_LINKER_BUILD_ID:BOOL=ON \
746 -DLLVM_COMMON_CMAKE_UTILS="%{_builddir}/%{buildsubdir}/cmake-utils" \
747 -DLLVM_BINDINGS_LIST:LIST="%{?with_ocaml:ocaml}" \
748 -DLLVM_BINUTILS_INCDIR:STRING=%{_includedir} \
749 -DLLVM_BUILD_LLVM_DYLIB:BOOL=ON \
750 -DLLVM_ENABLE_ASSERTIONS:BOOL=OFF \
751 -DLLVM_INSTALL_PACKAGE_DIR=%(realpath -m "--relative-to=%{_prefix}" "%{_libdir}/cmake/llvm") \
752 -DLLVM_TOOLS_INSTALL_DIR=%(realpath -m "--relative-to=%{_prefix}" "%{_bindir}") \
754 -DLLVM_ENABLE_DOXYGEN:BOOL=ON \
756 %{?with_cxxmodules:-DLLVM_ENABLE_MODULES:BOOL=ON} \
757 -DLLVM_ENABLE_PIC:BOOL=ON \
758 -DLLVM_ENABLE_RTTI:BOOL=ON \
760 -DLLVM_ENABLE_SPHINX:BOOL=ON \
762 -DLLVM_INCLUDE_BENCHMARKS:BOOL=OFF \
763 %{?with_z3:-DLLVM_ENABLE_Z3_SOLVER:BOOL=ON} \
764 %if "%{_lib}" == "lib64"
765 -DLLVM_LIBDIR_SUFFIX:STRING=64 \
767 %if "%{_lib}" == "libx32"
768 -DLLVM_LIBDIR_SUFFIX:STRING=x32 \
770 -DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
771 -DLLVM_TARGET_ARCH:STRING=%{_target_base_arch} \
772 -DLLVM_DEFAULT_TARGET_TRIPLE:STRING=%{_target_platform} \
774 -DLLVM_PARALLEL_LINK_JOBS:STRING=1 \
776 -DLLVM_TARGETS_TO_BUILD="%{targets_to_build}" \
778 %{cmake_on_off target_nvptx POLLY_ENABLE_GPGPU_CODEGEN} \
780 -DSPHINX_WARNINGS_AS_ERRORS=OFF \
783 -DCOMPILER_RT_BUILD_MEMPROF:BOOL=OFF
789 OPTIMIZE_OPTION="%{rpmcflags} %{rpmcppflags}"
792 %{__make} check 2>&1 | tee llvm-testlog.txt
793 %{__make} -C tools/clang test 2>&1 | tee clang-testlog.txt
797 %{__make} -C docs docs-llvm-html
798 %{__make} -C docs docs-llvm-man
800 %{__make} -C docs ocaml_doc
802 %{__make} -C tools/clang/docs docs-clang-html
803 %{__make} -C tools/clang/docs docs-clang-man
804 %{__make} -C tools/lld/docs docs-lld-html
805 # workaround failed import of _lldb
806 cp -pnL %{_lib}/liblldb.so tools/lldb/docs/lldb/_lldb.so
808 LD_LIBRARY_PATH=$(pwd)/%{_lib} \
809 -C tools/lldb/docs lldb-python-doc-package
810 %{__make} -C tools/lldb/docs lldb-cpp-doc
814 rm -rf $RPM_BUILD_ROOT
816 %{__make} -j1 -C build install \
817 DESTDIR=$RPM_BUILD_ROOT
819 # only some .pyc files are created by make install
820 %py3_comp $RPM_BUILD_ROOT%{py3_sitedir}
821 %py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir}
823 # Adjust static analyzer installation (see -libexecdir patch)
824 abs_ca_libexecdir="%{_libexecdir}/clang-analyzer"
825 rel_ca_libexecdir="${abs_ca_libexecdir#%{_prefix}}"
826 %{__sed} -i -e "s,/\.\./libexec/,/..${rel_ca_libexecdir}/," $RPM_BUILD_ROOT%{_bindir}/scan-build
827 %py3_comp $RPM_BUILD_ROOT%{_datadir}/scan-view
828 %py3_ocomp $RPM_BUILD_ROOT%{_datadir}/scan-view
830 # not installed by cmake buildsystem
831 install build/bin/pp-trace $RPM_BUILD_ROOT%{_bindir}
834 cp -p build/docs/man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
835 # these tools are not installed
836 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/{FileCheck,clang-tblgen,lldb-tblgen}.1
838 echo '.so llvm-ar.1' > $RPM_BUILD_ROOT%{_mandir}/man1/llvm-ranlib.1
841 # Move documentation back to build directory
844 %{__mv} $RPM_BUILD_ROOT%{_docdir}/llvm/ocaml-html ocamldocs
847 # and separate the apidoc
850 cp -a build/tools/clang/docs/html clang-apidoc
853 # And prepare Clang documentation
855 install -d clang-docs
856 for f in LICENSE.TXT NOTES.txt README.txt; do
857 ln tools/clang/$f clang-docs
860 install -d $RPM_BUILD_ROOT%{bash_compdir}
861 %{__mv} $RPM_BUILD_ROOT%{_datadir}/clang/bash-autocomplete.sh $RPM_BUILD_ROOT%{bash_compdir}/clang
863 %{__rm} $RPM_BUILD_ROOT%{_bindir}/c-index-test
865 %{__rm} $RPM_BUILD_ROOT%{_datadir}/clang/clang-format-bbedit.applescript
867 %{?with_lldb:%{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/{,__pycache__/}six*.py*}
868 # it seems it is used internally by an extra clang tool
869 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libfindAllSymbols.a
871 # disable completeness check incompatible with split packaging
872 %{__sed} -i -e '/^foreach(target .*IMPORT_CHECK_TARGETS/,/^endforeach/d; /^unset(_IMPORT_CHECK_TARGETS)/d' \
873 $RPM_BUILD_ROOT%{_libdir}/cmake/clang/ClangTargets.cmake \
875 $RPM_BUILD_ROOT%{_libdir}/cmake/flang/FlangTargets.cmake \
877 $RPM_BUILD_ROOT%{_libdir}/cmake/lld/LLDTargets.cmake \
878 $RPM_BUILD_ROOT%{_libdir}/cmake/llvm/LLVMExports.cmake \
880 $RPM_BUILD_ROOT%{_libdir}/cmake/mlir/MLIRTargets.cmake
884 rm -rf $RPM_BUILD_ROOT
886 %post libs -p /sbin/ldconfig
887 %postun libs -p /sbin/ldconfig
889 %post mlir -p /sbin/ldconfig
890 %postun mlir -p /sbin/ldconfig
892 %post -n clang-libs -p /sbin/ldconfig
893 %postun -n clang-libs -p /sbin/ldconfig
895 %post -n lldb -p /sbin/ldconfig
896 %postun -n lldb -p /sbin/ldconfig
899 %defattr(644,root,root,755)
900 %doc CREDITS.TXT LICENSE.TXT README.txt %{?with_tests:llvm-testlog.txt}
901 %attr(755,root,root) %{_bindir}/bugpoint
902 %attr(755,root,root) %{_bindir}/dsymutil
903 %attr(755,root,root) %{_bindir}/llc
904 %attr(755,root,root) %{_bindir}/lli
905 %attr(755,root,root) %{_bindir}/llvm-addr2line
906 %attr(755,root,root) %{_bindir}/llvm-ar
907 %attr(755,root,root) %{_bindir}/llvm-as
908 %attr(755,root,root) %{_bindir}/llvm-bcanalyzer
909 %attr(755,root,root) %{_bindir}/llvm-bitcode-strip
910 %attr(755,root,root) %{_bindir}/llvm-c-test
911 %attr(755,root,root) %{_bindir}/llvm-cat
912 %attr(755,root,root) %{_bindir}/llvm-cfi-verify
913 %attr(755,root,root) %{_bindir}/llvm-cov
914 %attr(755,root,root) %{_bindir}/llvm-cvtres
915 %attr(755,root,root) %{_bindir}/llvm-cxxdump
916 %attr(755,root,root) %{_bindir}/llvm-cxxfilt
917 %attr(755,root,root) %{_bindir}/llvm-cxxmap
918 %attr(755,root,root) %{_bindir}/llvm-debuginfod
919 %attr(755,root,root) %{_bindir}/llvm-debuginfod-find
920 %attr(755,root,root) %{_bindir}/llvm-diff
921 %attr(755,root,root) %{_bindir}/llvm-dis
922 %attr(755,root,root) %{_bindir}/llvm-dlltool
923 %attr(755,root,root) %{_bindir}/llvm-dwarfdump
924 %attr(755,root,root) %{_bindir}/llvm-dwarfutil
925 %attr(755,root,root) %{_bindir}/llvm-dwp
926 %attr(755,root,root) %{_bindir}/llvm-exegesis
927 %attr(755,root,root) %{_bindir}/llvm-extract
928 %attr(755,root,root) %{_bindir}/llvm-gsymutil
929 %attr(755,root,root) %{_bindir}/llvm-ifs
930 %attr(755,root,root) %{_bindir}/llvm-install-name-tool
931 %attr(755,root,root) %{_bindir}/llvm-jitlink
932 %attr(755,root,root) %{_bindir}/llvm-lib
933 %attr(755,root,root) %{_bindir}/llvm-libtool-darwin
934 %attr(755,root,root) %{_bindir}/llvm-link
935 %attr(755,root,root) %{_bindir}/llvm-lipo
936 %attr(755,root,root) %{_bindir}/llvm-lto
937 %attr(755,root,root) %{_bindir}/llvm-lto2
938 %attr(755,root,root) %{_bindir}/llvm-mc
939 %attr(755,root,root) %{_bindir}/llvm-mca
940 %attr(755,root,root) %{_bindir}/llvm-ml
941 %attr(755,root,root) %{_bindir}/llvm-modextract
942 %attr(755,root,root) %{_bindir}/llvm-mt
943 %attr(755,root,root) %{_bindir}/llvm-nm
944 %attr(755,root,root) %{_bindir}/llvm-objcopy
945 %attr(755,root,root) %{_bindir}/llvm-objdump
946 %attr(755,root,root) %{_bindir}/llvm-opt-report
947 %attr(755,root,root) %{_bindir}/llvm-otool
948 %attr(755,root,root) %{_bindir}/llvm-pdbutil
949 %attr(755,root,root) %{_bindir}/llvm-profdata
950 %attr(755,root,root) %{_bindir}/llvm-profgen
951 %attr(755,root,root) %{_bindir}/llvm-ranlib
952 %attr(755,root,root) %{_bindir}/llvm-rc
953 %attr(755,root,root) %{_bindir}/llvm-readelf
954 %attr(755,root,root) %{_bindir}/llvm-readobj
955 %attr(755,root,root) %{_bindir}/llvm-reduce
956 %attr(755,root,root) %{_bindir}/llvm-remark-size-diff
957 %attr(755,root,root) %{_bindir}/llvm-rtdyld
958 %attr(755,root,root) %{_bindir}/llvm-sim
959 %attr(755,root,root) %{_bindir}/llvm-size
960 %attr(755,root,root) %{_bindir}/llvm-split
961 %attr(755,root,root) %{_bindir}/llvm-strip
962 %attr(755,root,root) %{_bindir}/llvm-stress
963 %attr(755,root,root) %{_bindir}/llvm-strings
964 %attr(755,root,root) %{_bindir}/llvm-symbolizer
965 %attr(755,root,root) %{_bindir}/llvm-tapi-diff
966 %attr(755,root,root) %{_bindir}/llvm-tblgen
967 %attr(755,root,root) %{_bindir}/llvm-tli-checker
968 %attr(755,root,root) %{_bindir}/llvm-undname
969 %attr(755,root,root) %{_bindir}/llvm-windres
970 %attr(755,root,root) %{_bindir}/llvm-xray
971 %attr(755,root,root) %{_bindir}/opt
972 %attr(755,root,root) %{_bindir}/sancov
973 %attr(755,root,root) %{_bindir}/sanstats
974 %attr(755,root,root) %{_bindir}/split-file
975 %attr(755,root,root) %{_bindir}/tblgen-lsp-server
976 %attr(755,root,root) %{_bindir}/verify-uselistorder
978 %{_mandir}/man1/bugpoint.1*
979 %{_mandir}/man1/dsymutil.1*
980 %{_mandir}/man1/lit.1*
981 %{_mandir}/man1/llc.1*
982 %{_mandir}/man1/lli.1*
983 %{_mandir}/man1/llvm-addr2line.1*
984 %{_mandir}/man1/llvm-ar.1*
985 %{_mandir}/man1/llvm-as.1*
986 %{_mandir}/man1/llvm-bcanalyzer.1*
987 %{_mandir}/man1/llvm-cov.1*
988 %{_mandir}/man1/llvm-cxxfilt.1*
989 %{_mandir}/man1/llvm-cxxmap.1*
990 %{_mandir}/man1/llvm-diff.1*
991 %{_mandir}/man1/llvm-dis.1*
992 %{_mandir}/man1/llvm-dwarfdump.1*
993 %{_mandir}/man1/llvm-dwarfutil.1*
994 %{_mandir}/man1/llvm-exegesis.1*
995 %{_mandir}/man1/llvm-extract.1*
996 %{_mandir}/man1/llvm-ifs.1*
997 %{_mandir}/man1/llvm-install-name-tool.1*
998 %{_mandir}/man1/llvm-lib.1*
999 %{_mandir}/man1/llvm-libtool-darwin.1*
1000 %{_mandir}/man1/llvm-link.1*
1001 %{_mandir}/man1/llvm-lipo.1*
1002 %{_mandir}/man1/llvm-locstats.1*
1003 %{_mandir}/man1/llvm-mca.1*
1004 %{_mandir}/man1/llvm-nm.1*
1005 %{_mandir}/man1/llvm-objcopy.1*
1006 %{_mandir}/man1/llvm-objdump.1*
1007 %{_mandir}/man1/llvm-otool.1*
1008 %{_mandir}/man1/llvm-pdbutil.1*
1009 %{_mandir}/man1/llvm-profdata.1*
1010 %{_mandir}/man1/llvm-profgen.1*
1011 %{_mandir}/man1/llvm-ranlib.1*
1012 %{_mandir}/man1/llvm-readelf.1*
1013 %{_mandir}/man1/llvm-readobj.1*
1014 %{_mandir}/man1/llvm-remark-size-diff.1*
1015 %{_mandir}/man1/llvm-size.1*
1016 %{_mandir}/man1/llvm-stress.1*
1017 %{_mandir}/man1/llvm-strings.1*
1018 %{_mandir}/man1/llvm-strip.1*
1019 %{_mandir}/man1/llvm-symbolizer.1*
1020 %{_mandir}/man1/llvm-tblgen.1*
1021 %{_mandir}/man1/llvm-tli-checker.1*
1022 %{_mandir}/man1/opt.1*
1023 %{_mandir}/man1/tblgen.1*
1027 %defattr(644,root,root,755)
1028 %attr(755,root,root) %{_libdir}/LLVMgold.so
1029 %attr(755,root,root) %{_libdir}/libLLVM-%{abi}.so
1030 # non-soname symlink
1031 %attr(755,root,root) %{_libdir}/libLLVM-%{version}.so
1032 %attr(755,root,root) %{_libdir}/libLTO.so.15
1033 %attr(755,root,root) %{_libdir}/libRemarks.so.15
1034 %attr(755,root,root) %{_libdir}/libclang-cpp.so.15
1037 %defattr(644,root,root,755)
1038 %attr(755,root,root) %{_bindir}/llvm-config
1039 %attr(755,root,root) %{_libdir}/libLLVM.so
1040 %attr(755,root,root) %{_libdir}/libLTO.so
1041 %attr(755,root,root) %{_libdir}/libRemarks.so
1042 %attr(755,root,root) %{_libdir}/libclang-cpp.so
1043 %{_libdir}/libLLVM*.a
1045 %{_includedir}/llvm-c
1046 %{_libdir}/cmake/llvm
1048 %{_mandir}/man1/llvm-config.1*
1052 #%defattr(644,root,root,755)
1056 %defattr(644,root,root,755)
1062 %defattr(644,root,root,755)
1063 %attr(755,root,root) %{_bindir}/mlir-cpu-runner
1064 %attr(755,root,root) %{_bindir}/mlir-linalg-ods-yaml-gen
1065 %attr(755,root,root) %{_bindir}/mlir-lsp-server
1066 %attr(755,root,root) %{_bindir}/mlir-opt
1067 %attr(755,root,root) %{_bindir}/mlir-pdll-lsp-server*
1068 %attr(755,root,root) %{_bindir}/mlir-reduce
1069 %attr(755,root,root) %{_bindir}/mlir-tblgen
1070 %attr(755,root,root) %{_bindir}/mlir-translate
1071 %attr(755,root,root) %{_libdir}/libMLIR.so.15
1072 %attr(755,root,root) %{_libdir}/libmlir_async_runtime.so.15
1073 %attr(755,root,root) %{_libdir}/libmlir_c_runner_utils.so.15
1074 %attr(755,root,root) %{_libdir}/libmlir_runner_utils.so.15
1076 %{_mandir}/man1/mlir-tblgen.1*
1080 %defattr(644,root,root,755)
1081 %attr(755,root,root) %{_libdir}/libMLIR.so
1082 %attr(755,root,root) %{_libdir}/libmlir_async_runtime.so
1083 %attr(755,root,root) %{_libdir}/libmlir_c_runner_utils.so
1084 %attr(755,root,root) %{_libdir}/libmlir_runner_utils.so
1085 %{_libdir}/libMLIR*.a
1087 %{_includedir}/mlir-c
1088 %{_libdir}/cmake/mlir
1093 %defattr(644,root,root,755)
1094 %doc tools/polly/{CREDITS.txt,LICENSE.TXT,README} tools/polly/www/{bugs,changelog,contributors}.html
1095 %attr(755,root,root) %{_libdir}/LLVMPolly.so
1096 %{?with_target_nvptx:%attr(755,root,root) %{_libdir}/libGPURuntime.so}
1099 %defattr(644,root,root,755)
1100 %{_libdir}/libPolly.a
1101 %{_libdir}/libPollyISL.a
1102 %{?with_target_nvptx:%{_libdir}/libPollyPPCG.a}
1103 %{_includedir}/polly
1104 %{_libdir}/cmake/polly
1108 %defattr(644,root,root,755)
1109 %doc clang-docs/{LICENSE.TXT,NOTES.txt,README.txt} %{?with_tests:clang-testlog.txt}
1110 %attr(755,root,root) %{_bindir}/clang
1111 %attr(755,root,root) %{_bindir}/clang++
1112 %attr(755,root,root) %{_bindir}/clang-%{abi}
1113 %attr(755,root,root) %{_bindir}/clang-check
1114 %attr(755,root,root) %{_bindir}/clang-cl
1115 %attr(755,root,root) %{_bindir}/clang-cpp
1116 %attr(755,root,root) %{_bindir}/clang-doc
1117 %attr(755,root,root) %{_bindir}/clang-format
1118 %attr(755,root,root) %{_bindir}/clang-linker-wrapper
1119 %attr(755,root,root) %{_bindir}/clang-nvlink-wrapper
1120 %attr(755,root,root) %{_bindir}/clang-offload-bundler
1121 %attr(755,root,root) %{_bindir}/clang-offload-packager
1122 %attr(755,root,root) %{_bindir}/clang-offload-wrapper
1123 %attr(755,root,root) %{_bindir}/clang-pseudo
1124 %attr(755,root,root) %{_bindir}/clang-repl
1125 %attr(755,root,root) %{_bindir}/git-clang-format
1126 %dir %{_libdir}/clang
1127 %dir %{_libdir}/clang/%{version}
1128 %{_libdir}/clang/%{version}/include
1130 %ifarch %{x8664} x32 aarch64
1131 %dir %{_libdir}/clang/%{version}/bin
1132 %attr(755,root,root) %{_libdir}/clang/%{version}/bin/hwasan_symbolize
1134 %ifarch %{ix86} %{x8664} aarch64 armv7hl armv7hnl
1135 %dir %{_libdir}/clang/%{version}/lib
1136 %dir %{_libdir}/clang/%{version}/lib/*-linux*
1137 %dir %{_libdir}/clang/%{version}/share
1140 %if %{with multilib}
1141 %dir %{_libdir}/clang/%{version}/lib
1142 %dir %{_libdir}/clang/%{version}/lib/*-linux*
1143 %dir %{_libdir}/clang/%{version}/share
1147 %{_libdir}/clang/%{version}/lib/i*86-*linux/clang_rt.*.o
1148 %{_libdir}/clang/%{version}/lib/i*86-*linux/libclang_rt.*.a
1149 %attr(755,root,root) %{_libdir}/clang/%{version}/lib/i*86-*linux/libclang_rt.*.so
1152 %{_libdir}/clang/%{version}/lib/x86_64-*linux/clang_rt.*.o
1153 %{_libdir}/clang/%{version}/lib/x86_64-*linux/libclang_rt.*.a
1154 %attr(755,root,root) %{_libdir}/clang/%{version}/lib/x86_64-*linux/libclang_rt.*.so
1155 %{_libdir}/clang/%{version}/lib/x86_64-*linux/libclang_rt.*.a.syms
1158 %{_libdir}/clang/%{version}/lib/aarch64-*linux/clang_rt.*.o
1159 %{_libdir}/clang/%{version}/lib/aarch64-*linux/libclang_rt.*.a
1160 %attr(755,root,root) %{_libdir}/clang/%{version}/lib/aarch64-*linux/libclang_rt.*.so
1161 %{_libdir}/clang/%{version}/lib/aarch64-*linux/libclang_rt.*.a.syms
1163 %ifarch armv7hl armv7hnl
1164 %{_libdir}/clang/%{version}/lib/armhf-*linux%{_gnu}/clang_rt.*.o
1165 %{_libdir}/clang/%{version}/lib/armhf-*linux%{_gnu}/libclang_rt.*.a
1166 %attr(755,root,root) %{_libdir}/clang/%{version}/lib/armhf-*linux%{_gnu}/libclang_rt.*.so
1167 %{_libdir}/clang/%{version}/lib/armhf-*linux%{_gnu}/libclang_rt.*.a.syms
1169 %ifarch %{ix86} %{x8664} %{arm} aarch64 mips mips64 ppc64
1170 %{_libdir}/clang/%{version}/share/asan_ignorelist.txt
1172 %ifarch %{ix86} %{x8664} mips64 aarch64 armv7hl armv7hnl
1173 %{_libdir}/clang/%{version}/share/cfi_ignorelist.txt
1175 %ifarch %{x8664} aarch64 mips64
1176 %{_libdir}/clang/%{version}/share/dfsan_abilist.txt
1177 %{_libdir}/clang/%{version}/share/msan_ignorelist.txt
1179 %ifarch %{x8664} aarch64
1180 %{_libdir}/clang/%{version}/share/hwasan_ignorelist.txt
1183 %if %{with multilib}
1184 %{_libdir}/clang/%{version}/share/asan_ignorelist.txt
1185 %{_libdir}/clang/%{version}/share/cfi_ignorelist.txt
1186 %{_libdir}/clang/%{version}/share/dfsan_abilist.txt
1187 %{_libdir}/clang/%{version}/share/msan_ignorelist.txt
1188 %{_libdir}/clang/%{version}/share/hwasan_ignorelist.txt
1192 %dir %{_datadir}/clang
1193 %{_datadir}/clang/clang-format-diff.py
1195 %if %{with rt} && %{with multilib}
1196 %ifarch %{x8664} x32
1197 %files -n clang-multilib
1198 %defattr(644,root,root,755)
1199 %{_libdir}/clang/%{version}/lib/i386-*linux/clang_rt.*.o
1200 %{_libdir}/clang/%{version}/lib/i386-*linux/libclang_rt.*.a
1201 %attr(755,root,root) %{_libdir}/clang/%{version}/lib/i386-*linux/libclang_rt.*.so
1204 %{_libdir}/clang/%{version}/lib/x86_64-*linux/clang_rt.*.o
1205 %{_libdir}/clang/%{version}/lib/x86_64-*linux/libclang_rt.*.a
1206 %attr(755,root,root) %{_libdir}/clang/%{version}/lib/x86_64-*linux/libclang_rt.*.so
1207 %{_libdir}/clang/%{version}/lib/x86_64-*linux/libclang_rt.*.a.syms
1211 %files -n clang-libs
1212 %defattr(644,root,root,755)
1213 %attr(755,root,root) %{_libdir}/libclang.so.15
1214 %attr(755,root,root) %{_libdir}/libclang.so.*.*.*
1216 %files -n clang-devel
1217 %defattr(644,root,root,755)
1218 %attr(755,root,root) %{_libdir}/libclang.so
1219 %{_libdir}/libclang*.a
1220 %{_includedir}/clang
1221 %{_includedir}/clang-c
1222 %{_includedir}/clang-tidy
1223 %{_libdir}/cmake/clang
1226 %defattr(644,root,root,755)
1227 %doc tools/clang/docs/*.{html,png,txt}
1230 %files -n clang-apidocs
1231 %defattr(644,root,root,755)
1235 %files -n clang-analyzer
1236 %defattr(644,root,root,755)
1237 %dir %{_libexecdir}/clang-analyzer
1239 %attr(755,root,root) %{_bindir}/scan-build
1240 %attr(755,root,root) %{_libexecdir}/clang-analyzer/c++-analyzer
1241 %attr(755,root,root) %{_libexecdir}/clang-analyzer/ccc-analyzer
1242 %{_datadir}/scan-build
1243 %{_mandir}/man1/scan-build.1*
1245 %attr(755,root,root) %{_bindir}/analyze-build
1246 %attr(755,root,root) %{_bindir}/intercept-build
1247 %attr(755,root,root) %{_bindir}/scan-build-py
1248 %attr(755,root,root) %{_bindir}/scan-view
1249 %attr(755,root,root) %{_libexecdir}/clang-analyzer/analyze-c++
1250 %attr(755,root,root) %{_libexecdir}/clang-analyzer/analyze-cc
1251 %attr(755,root,root) %{_libexecdir}/clang-analyzer/intercept-c++
1252 %attr(755,root,root) %{_libexecdir}/clang-analyzer/intercept-cc
1253 %{_prefix}/lib/libear
1254 %{_prefix}/lib/libscanbuild
1255 %{_datadir}/scan-view
1257 %files -n clang-tools-extra
1258 %defattr(644,root,root,755)
1259 %doc tools/clang/tools/extra/{CODE_OWNERS.TXT,README.txt}
1260 %attr(755,root,root) %{_bindir}/clang-apply-replacements
1261 %attr(755,root,root) %{_bindir}/clang-change-namespace
1262 %attr(755,root,root) %{_bindir}/clang-extdef-mapping
1263 %attr(755,root,root) %{_bindir}/clang-include-fixer
1264 %attr(755,root,root) %{_bindir}/clang-move
1265 %attr(755,root,root) %{_bindir}/clang-query
1266 %attr(755,root,root) %{_bindir}/clang-refactor
1267 %attr(755,root,root) %{_bindir}/clang-rename
1268 %attr(755,root,root) %{_bindir}/clang-reorder-fields
1269 %attr(755,root,root) %{_bindir}/clang-scan-deps
1270 %attr(755,root,root) %{_bindir}/clang-tidy
1271 %attr(755,root,root) %{_bindir}/clangd
1272 %attr(755,root,root) %{_bindir}/diagtool
1273 %attr(755,root,root) %{_bindir}/find-all-symbols
1274 %attr(755,root,root) %{_bindir}/hmaptool
1275 %attr(755,root,root) %{_bindir}/modularize
1276 %attr(755,root,root) %{_bindir}/pp-trace
1277 %attr(755,root,root) %{_bindir}/run-clang-tidy
1278 %{_datadir}/clang/clang-include-fixer.py
1279 %{_datadir}/clang/clang-tidy-diff.py
1280 %{_datadir}/clang/run-find-all-symbols.py
1282 %files -n bash-completion-clang
1283 %defattr(644,root,root,755)
1284 %{bash_compdir}/clang
1288 %defattr(644,root,root,755)
1289 %doc tools/flang/{LICENSE.TXT,README.md}
1290 %attr(755,root,root) %{_bindir}/f18
1291 %attr(755,root,root) %{_bindir}/f18-parse-demo
1292 %attr(755,root,root) %{_bindir}/fir-opt
1293 %attr(755,root,root) %{_bindir}/flang
1294 %attr(755,root,root) %{_bindir}/tco
1295 %dir %{_includedir}/flang
1296 %{_includedir}/flang/Version.inc
1297 %{_includedir}/flang/__fortran_*.mod
1298 %{_includedir}/flang/ieee_*.mod
1299 %{_includedir}/flang/iso_*.mod
1300 %{_includedir}/flang/omp_lib*.mod
1302 %files -n flang-devel
1303 %defattr(644,root,root,755)
1304 %{_libdir}/libFIROptimizer.a
1305 %{_libdir}/libFortran*.a
1306 %{_includedir}/flang/Common
1307 %{_includedir}/flang/Decimal
1308 %{_includedir}/flang/Evaluate
1309 %{_includedir}/flang/Frontend
1310 %{_includedir}/flang/FrontendTool
1311 %{_includedir}/flang/Lower
1312 %{_includedir}/flang/Optimizer
1313 %{_includedir}/flang/Parser
1314 %{_includedir}/flang/Semantics
1315 %{_includedir}/flang/ISO_Fortran_binding.h
1316 %{_libdir}/cmake/flang
1320 %defattr(644,root,root,755)
1321 %doc tools/lld/{LICENSE.TXT,README.md}
1322 %attr(755,root,root) %{_bindir}/ld.lld
1323 %attr(755,root,root) %{_bindir}/ld64.lld
1324 %attr(755,root,root) %{_bindir}/lld
1325 %attr(755,root,root) %{_bindir}/lld-link
1326 %attr(755,root,root) %{_bindir}/wasm-ld
1329 %defattr(644,root,root,755)
1330 %{_libdir}/liblld[ACDEHMRWXY]*.a
1332 %{_libdir}/cmake/lld
1336 %defattr(644,root,root,755)
1337 %attr(755,root,root) %{_bindir}/lldb
1338 %attr(755,root,root) %{_bindir}/lldb-argdumper
1339 %attr(755,root,root) %{_bindir}/lldb-instr
1340 %attr(755,root,root) %{_bindir}/lldb-server
1341 %attr(755,root,root) %{_bindir}/lldb-vscode
1342 %attr(755,root,root) %{_libdir}/liblldb.so.%{version}
1343 %attr(755,root,root) %ghost %{_libdir}/liblldb.so.15
1344 %attr(755,root,root) %ghost %{_libdir}/liblldbIntelFeatures.so.15
1345 %dir %{py3_sitedir}/lldb
1346 %attr(755,root,root) %{py3_sitedir}/lldb/lldb-argdumper
1347 %{py3_sitedir}/lldb/formatters
1348 %{py3_sitedir}/lldb/utils
1349 %{py3_sitedir}/lldb/__init__.py
1350 %{py3_sitedir}/lldb/__pycache__
1351 %{py3_sitedir}/lldb/embedded_interpreter.py
1352 %dir %{py3_sitedir}/lldb/plugins
1353 %{py3_sitedir}/lldb/plugins/__pycache__
1354 %{py3_sitedir}/lldb/plugins/__init__.py
1355 %{py3_sitedir}/lldb/plugins/scripted_process.py
1356 %attr(755,root,root) %{py3_sitedir}/lldb/_lldb.cpython-*.so
1358 %files -n lldb-devel
1359 %defattr(644,root,root,755)
1360 %attr(755,root,root) %{_libdir}/liblldb.so
1361 %attr(755,root,root) %{_libdir}/liblldbIntelFeatures.so
1367 %defattr(644,root,root,755)
1368 %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllllvm*.so
1369 %dir %{_libdir}/ocaml/llvm
1370 %{_libdir}/ocaml/llvm/llvm*.cma
1371 %{_libdir}/ocaml/llvm/llvm*.cmi
1372 %{_libdir}/ocaml/META.llvm*
1375 %defattr(644,root,root,755)
1376 %{_libdir}/ocaml/llvm/libllvm*.a
1377 %{_libdir}/ocaml/llvm/llvm*.a
1378 %{_libdir}/ocaml/llvm/llvm*.cmt
1379 %{_libdir}/ocaml/llvm/llvm*.cmti
1380 %{_libdir}/ocaml/llvm/llvm*.cmx
1381 %{_libdir}/ocaml/llvm/llvm*.cmxa
1382 %{_libdir}/ocaml/llvm/llvm*.mli
1385 %defattr(644,root,root,755)
1390 %defattr(644,root,root,755)
1391 %{_datadir}/opt-viewer
1393 %files -n vim-plugin-clang
1394 %defattr(644,root,root,755)
1395 %{_datadir}/clang/clang-format.py
1396 %{_datadir}/clang/clang-rename.py