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 Patch12: x32-compiler-rt.patch
123 URL: https://llvm.org/
125 BuildRequires: binutils-devel
127 BuildRequires: cmake >= 3.13.4
130 BuildRequires: libedit-devel
131 BuildRequires: libltdl-devel
132 BuildRequires: libpfm-devel
133 BuildRequires: libstdc++-devel >= 6:5
134 BuildRequires: libxml2-devel >= 2
135 BuildRequires: ncurses-devel
137 BuildRequires: ocaml >= 4.00.0
138 BuildRequires: ocaml-ctypes-devel >= 0.4
139 BuildRequires: ocaml-findlib
140 BuildRequires: ocaml-ocamldoc
141 %{?with_tests:BuildRequires: ocaml-ounit >= 2}
143 BuildRequires: perl-base >= 1:5.6
144 BuildRequires: perl-tools-pod
145 BuildRequires: python3 >= 1:3
146 BuildRequires: python3-PyYAML
147 BuildRequires: python3-pygments >= 2.0
148 BuildRequires: rpm-build >= 4.6
149 BuildRequires: rpm-pythonprov
150 BuildRequires: rpmbuild(macros) >= 1.742
151 %{?with_doc:BuildRequires: sphinx-pdg}
152 BuildRequires: tar >= 1:1.22
153 BuildRequires: xar-devel >= 1.6
155 %{?with_z3:BuildRequires: z3-devel >= 4.7.1}
156 BuildRequires: zlib-devel
158 BuildRequires: doxygen
159 BuildRequires: graphviz
162 BuildRequires: dejagnu
163 BuildRequires: tcl-devel
165 %if %{with rt} && %{with multilib}
167 BuildRequires: gcc-c++-multilib-32
168 BuildRequires: glibc-devel(ix86)
169 BuildRequires: libstdc++-multilib-32-devel
172 BuildRequires: gcc-c++-multilib-32
173 BuildRequires: gcc-c++-multilib-64
174 BuildRequires: glibc-devel(x86_64)
175 BuildRequires: glibc-devel(ix86)
176 BuildRequires: libstdc++-multilib-32-devel
177 BuildRequires: libstdc++-multilib-64-devel
181 BuildRequires: epydoc
182 %ifarch i386 i486 %{arm}
183 BuildRequires: libatomic-devel
185 BuildRequires: libxml2-devel >= 2
186 BuildRequires: lua-devel
187 BuildRequires: ncurses-ext-devel
188 BuildRequires: python3-devel >= 1:3.2
189 %{?with_doc:BuildRequires: python3-recommonmark}
190 BuildRequires: swig-python >= 3.0.11
191 BuildRequires: xz-devel
194 #BuildRequires: gmp-devel or imath-devel (private copy in polly/lib/External/isl/imath)
195 # private copy in polly/lib/External/isl
196 #BuildRequires: isl-devel >= 0.22.1
197 #TODO (bcond): cuda-devel (with POLLY_ENABLE_GPGPU_CODEGEN=ON)
198 %{?with_target_nvptx:BuildRequires: ocl-icd-libOpenCL-devel}
201 BuildConflicts: llvm-ocaml
203 Requires: %{name}-libs = %{version}-%{release}
204 # LLVM is not supported on PPC64
205 # http://llvm.org/bugs/show_bug.cgi?id=3729
207 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
210 %define _sysconfdir /etc/%{name}
212 %define specflags_ppc -fno-var-tracking-assignments
214 # objcopy: BFD (GNU Binutils) 2.32 assertion fail format.c:459
215 # objcopy: error: .../libLLVM-8.so(.debug_gnu_pubtypes) is too large (0x1ceee347 bytes)
216 # objcopy: .../libLLVM-8.so[.debug_gnu_pubtypes]: memory exhausted
218 %define _enable_debug_packages 0
220 # ix86 and x32 - the same issue as https://llvm.org/bugs/show_bug.cgi?id=27237
221 # use -gsplit-dwarf only when building packages with debuginfo
222 # to avoid excessive disk space usage
223 %if 0%{?_enable_debug_packages}
224 %define specflags -gsplit-dwarf
227 # strip corrupts: $RPM_BUILD_ROOT/usr/lib64/llvm-gcc/bin/llvm-c++ ...
228 %define _noautostrip .*/\\(libmud.*\\.a\\|bin/llvm-.*\\|lib.*++\\.a\\)
230 # clang doesn't know -fvar-tracking-assignments, and leaving it here would pollute llvm-config
231 # -Werror=format-security is for swig
232 # TODO: add - -Werror=format-security to tools/lldb/scripts/LLDBWrapPython.cpp
233 %define filterout_c -fvar-tracking-assignments
234 %define filterout_cxx -fvar-tracking-assignments -Werror=format-security
235 %define filterout_ccpp -fvar-tracking-assignments
238 LLVM is a compiler infrastructure designed for compile-time,
239 link-time, runtime, and idle-time optimization of programs from
240 arbitrary programming languages. LLVM is written in C++ and has been
241 developed since 2000 at the University of Illinois and Apple. It
242 currently supports compilation of C and C++ programs using clang
245 %description -l pl.UTF-8
246 LLVM to infrastruktura kompilatora zaprojektowana do optymalizacji
247 czasu kompilowania, linkowania, działania i bezczynności programów w
248 dowolnych językach programowania. Jest napisana w C++, rozwijana od
249 roku 2000 przez Uniwersytet w Illinois i Apple. Aktualnie obsługuje
250 kompilację programów w C i C++ przy użyciu frontendu clang.
253 Summary: LLVM shared libraries
254 Summary(pl.UTF-8): Biblioteki współdzielone LLVM-a
256 Conflicts: llvm < 3.2
259 LLVM shared libraries.
261 %description libs -l pl.UTF-8
262 Biblioteki współdzielone LLVM-a.
265 Summary: Static libraries and header files for LLVM
266 Summary(pl.UTF-8): Biblioteki statyczne i pliki nagłówkowe dla LLVM-a
267 Group: Development/Languages
268 Requires: %{name}-libs = %{version}-%{release}
269 Requires: libstdc++-devel >= 6:3.4
272 This package contains static libraries and header files needed to
273 develop new native programs that use the LLVM infrastructure.
275 %description devel -l pl.UTF-8
276 Ten pakiet zawiera biblioteki statyczne oraz pliki nagłówkowe
277 potrzebne do tworzenia nowych programów natywnych wykorzystujących
281 Summary: Documentation for LLVM
282 Summary(pl.UTF-8): Dokumentacja do LLVM-a
284 # does not require base
287 Documentation for the LLVM compiler infrastructure.
289 %description doc -l pl.UTF-8
290 Dokumentacja do infrastruktury kompilatorów LLVM.
293 Summary: API documentation for LLVM
294 Summary(pl.UTF-8): Dokumentacja API LLVM-a
295 Group: Development/Languages
296 Requires: %{name}-doc = %{version}-%{release}
299 API documentation for the LLVM compiler infrastructure.
301 %description apidocs -l pl.UTF-8
302 Dokumentacja API infrastruktury kompilatorów LLVM.
305 Summary: LLVM Multi-Level Intermediate Representation libraries and tools
306 Summary(pl.UTF-8): Biblioteki i narzędzia wielopoziomowej reprezentacji pośredniej LLVM
307 Group: Development/Tools
308 URL: https://mlir.llvm.org/
309 Requires: %{name} = %{version}-%{release}
312 LLVM Multi-Level Intermediate Representation libraries and tools.
314 %description mlir -l pl.UTF-8
315 Biblioteki i narzędzia wielopoziomowej reprezentacji pośredniej LLVM.
318 Summary: LLVM Multi-Level Intermediate Representation development files
319 Summary(pl.UTF-8): Pliki do programowania z użyciem wielopoziomowej reprezentacji pośredniej LLVM
320 Group: Development/Tools
321 URL: https://mlir.llvm.org/
322 Requires: %{name}-devel = %{version}-%{release}
323 Requires: %{name}-mlir = %{version}-%{release}
325 %description mlir-devel
326 LLVM Multi-Level Intermediate Representation development files.
328 %description mlir-devel -l pl.UTF-8
329 Pliki do programowania z użyciem wielopoziomowej reprezentacji
333 Summary: Polyhedral optimizations for LLVM
334 Summary(pl.UTF-8): Optymalizacje wielościanowe dla LLVM-a
335 Group: Development/Tools
336 URL: https://polly.llvm.org/
337 Requires: %{name} = %{version}-%{release}
340 Polly is a high-level loop and data-locality optimizer and
341 optimization infrastructure for LLVM. It uses an abstract mathematical
342 representation based on integer polyhedra to analyze and optimize the
343 memory access pattern of a program.
345 %description polly -l pl.UTF-8
346 Polly to wysokopoziomowy optymalizator i infrastruktura LLVM-a do
347 optymalizacji pętli i położenia danych. Wykorzystuje abstrakcyjną
348 reprezentację matematyczną opartą na wielościanach całkowitoliczbowych
349 do analizy i optymalizacji wzorców dostępu do pamięci przez program.
352 Summary: Header files for LLVM Polly optimization infrastructure
353 Summary(pl.UTF-8): Pliki nagłówkowe infrastruktury optymalizacji LLVM-a Polly
354 Group: Development/Libraries
355 URL: https://polly.llvm.org/
356 Requires: %{name}-devel = %{version}-%{release}
357 Requires: %{name}-polly = %{version}-%{release}
359 %description polly-devel
360 Header files for LLVM Polly optimization infrastructure.
362 %description polly-devel -l pl.UTF-8
363 Pliki nagłówkowe infrastruktury optymalizacji LLVM-a Polly.
366 Summary: A C language family frontend for LLVM
367 Summary(pl.UTF-8): Frontend LLVM-a do języków z rodziny C
368 Group: Development/Languages
369 URL: https://clang.llvm.org/
370 Requires: %{name} = %{version}-%{release}
371 Requires: clang-libs = %{version}-%{release}
373 %description -n clang
374 clang: noun 1. A loud, resonant, metallic sound. 2. The strident call
375 of a crane or goose. 3. C-language family front-end toolkit.
377 The goal of the Clang project is to create a new C, C++, Objective C
378 and Objective C++ front-end for the LLVM compiler. Its tools are built
379 as libraries and designed to be loosely-coupled and extendable.
381 %description -n clang -l pl.UTF-8
382 clang (z angielskiego): 1. głośny, rezonujący, metaliczny dźwięk; 2.
383 piskliwy odgłos żurawia lub gęsi; 3. narzędzia frontendowe dla języków
386 Celem projektu Clang jest utworzenie nowego frontendu dla kompilatora
387 LLVM do języków C, C++, Objective C i Objective C++. Narzędzia są
388 budowane jako biblioteki i zaprojektowane z myślą o swobodnym łączeniu
391 %package -n clang-multilib
392 Summary: A C language family frontend for LLVM - 32-bit support
393 Summary(pl.UTF-8): Frontend LLVM-a do języków z rodziny C - obsługa binariów 32-bitowych
394 Group: Development/Languages
395 URL: https://clang.llvm.org/
396 Requires: clang = %{version}-%{release}
398 %description -n clang-multilib
399 clang: noun 1. A loud, resonant, metallic sound. 2. The strident call
400 of a crane or goose. 3. C-language family front-end toolkit.
402 The goal of the Clang project is to create a new C, C++, Objective C
403 and Objective C++ front-end for the LLVM compiler. Its tools are built
404 as libraries and designed to be loosely-coupled and extendable.
406 This package contains the C compiler support for producing 32-bit
407 programs on 64-bit host.
409 %description -n clang-multilib -l pl.UTF-8
410 clang (z angielskiego): 1. głośny, rezonujący, metaliczny dźwięk; 2.
411 piskliwy odgłos żurawia lub gęsi; 3. narzędzia frontendowe dla języków
414 Celem projektu Clang jest utworzenie nowego frontendu dla kompilatora
415 LLVM do języków C, C++, Objective C i Objective C++. Narzędzia są
416 budowane jako biblioteki i zaprojektowane z myślą o swobodnym łączeniu
419 Ten pakiet zawiera rozszerzenie kompilatora C o obsługę tworzenia
420 programów 32-bitowych na maszynie 64-bitowej.
422 %package -n clang-libs
423 Summary: Clang shared libraries
424 Summary(pl.UTF-8): Biblioteki współdzielone Clanga
426 URL: https://clang.llvm.org/
428 %description -n clang-libs
429 Clang shared libraries.
431 %description -n clang-libs -l pl.UTF-8
432 Biblioteki współdzielone Clanga.
434 %package -n clang-devel
435 Summary: Header files for Clang
436 Summary(pl.UTF-8): Pliki nagłówkowe Clanga
437 Group: Development/Languages
438 URL: https://clang.llvm.org/
439 Requires: %{name}-devel = %{version}-%{release}
440 Requires: clang = %{version}-%{release}
441 %{?with_polly:Requires: llvm-polly-devel = %{version}-%{release}}
443 %description -n clang-devel
444 This package contains header files for the Clang compiler.
446 %description -n clang-devel -l pl.UTF-8
447 Ten pakiet zawiera pliki nagłówkowe kompilatora Clang.
449 %package -n clang-doc
450 Summary: Documentation for Clang
451 Summary(pl.UTF-8): Dokumentacja do Clanga
452 URL: https://clang.llvm.org/
454 Requires: %{name} = %{version}-%{release}
456 %description -n clang-doc
457 Documentation for the Clang compiler front-end.
459 %description -n clang-doc -l pl.UTF-8
460 Dokumentacja do frontendu kompilatora Clang.
462 %package -n clang-apidocs
463 Summary: API documentation for Clang
464 Summary(pl.UTF-8): Dokumentacja API Clanga
465 URL: https://clang.llvm.org/
466 Group: Development/Languages
467 Requires: clang-doc = %{version}-%{release}
469 %description -n clang-apidocs
470 API documentation for the Clang compiler.
472 %description -n clang-apidocs -l pl.UTF-8
473 Dokumentacja API kompilatora Clang.
475 %package -n clang-analyzer
476 Summary: A source code analysis framework
477 Summary(pl.UTF-8): Szkielet do analizy kodu źródłowego
478 Group: Development/Languages
479 URL: https://clang-analyzer.llvm.org/
480 Requires: clang = %{version}-%{release}
481 # not picked up automatically since files are currently not instaled
482 # in standard Python hierarchies yet
485 %description -n clang-analyzer
486 The Clang Static Analyzer consists of both a source code analysis
487 framework and a standalone tool that finds bugs in C and Objective-C
488 programs. The standalone tool is invoked from the command-line, and is
489 intended to run in tandem with a build of a project or code base.
491 %description -n clang-analyzer -l pl.UTF-8
492 Clang Static Analyzer składa się ze szkieletu do analizy kodu
493 źródłowego oraz samodzielnego narzędzia znajdującego błędy w
494 programach w C i C++. Narzędzie jest wywoływane z linii poleceń, z
495 myślą o uruchamianiu wraz z kompilacją projektu lub kodu.
497 %package -n clang-tools-extra
498 Summary: Extra tools for Clang
499 Summary(pl.UTF-8): Dodatkowe narzędzia do kompilatora Clang
500 Group: Development/Tools
501 URL: https://clang.llvm.org/docs/ClangTools.html
502 Requires: clang = %{version}-%{release}
504 %description -n clang-tools-extra
505 Extra tools for Clang.
507 %description -n clang-tools-extra -l pl.UTF-8
508 Dodatkowe narzędzia do kompilatora Clang.
510 %package -n bash-completion-clang
511 Summary: Bash completion for clang command
512 Summary(pl.UTF-8): Bashowe dopełnianie składni polecenia clang
513 Group: Applications/Shells
514 Requires: bash-completion >= 1:2.0
515 Requires: clang = %{version}-%{release}
517 %description -n bash-completion-clang
518 Bash completion for clang command.
520 %description -n bash-completion-clang -l pl.UTF-8
521 Bashowe dopełnianie składni polecenia clang.
524 Summary: Fortran frontend for LLVM
525 Summary(pl.UTF-8): Frontend LLVM-a do Fortranu
526 Group: Development/Languages
527 URL: http://flang.llvm.org/
528 Requires: %{name}-mlir = %{version}-%{release}
530 %description -n flang
531 Flang is a ground-up implementation of a Fortran front end written in
534 %description -n flang -l pl.UTF-8
535 Flang to napisana od podstaw we współczesnym C++ implementacja
536 frontendu do Fortranu.
538 %package -n flang-devel
539 Summary: Fortran frontend for LLVM - development files
540 Summary(pl.UTF-8): Frontend LLVM-a do Fortranu - pliki programistyczne
541 Group: Development/Languages
542 URL: http://flang.llvm.org/
543 Requires: %{name}-mlir-devel = %{version}-%{release}
544 Requires: flang-devel = %{version}-%{release}
546 %description -n flang-devel
547 Development files for LLVM Fortran frontend.
549 %description -n flang-devel -l pl.UTF-8
550 Pliki prosramistyczne frontendu LLVM do Fortranu.
553 Summary: The LLVM linker
554 Summary(pl.UTF-8): Konsolidator z projektu LLVM
555 Group: Development/Libraries
556 URL: https://lld.llvm.org/
557 Requires: %{name} = %{version}-%{release}
560 lld is a new set of modular code for creating linker tools.
562 %description -n lld -l pl.UTF-8
563 lld to nowy zbiór modularnego kodu do tworzenia narzędzi
566 %package -n lld-devel
567 Summary: Development files for LLD linker tools
568 Summary(pl.UTF-8): Pliki programistyczne narzędzi konsolidujących LLD
569 Group: Development/Tools
570 URL: https://lld.llvm.org/
571 Requires: %{name}-devel = %{version}-%{release}
572 Requires: xar-devel >= 1.6
574 %description -n lld-devel
575 Development files for LLD linker tools.
577 %description -n lld-devel -l pl.UTF-8
578 Pliki programistyczne narzędzi konsolidujących LLD.
581 Summary: Next generation high-performance debugger
582 Summary(pl.UTF-8): Wydajny debugger nowej generacji
583 Group: Development/Debuggers
584 URL: https://lldb.llvm.org/
585 Requires: %{name} = %{version}-%{release}
586 Requires: python3-six
589 LLDB is a next generation, high-performance debugger. It is built as a
590 set of reusable components which highly leverage existing libraries in
591 the larger LLVM Project, such as the Clang expression parser and LLVM
594 %description -n lldb -l pl.UTF-8
595 LLDB to wydajny debugger nowej generacji. Jest zbudowany w oparciu o
596 komponenty wielokrotnego użytku, wykorzystujące istniejące biblioteki
597 w projekcie LLVM, takie jak analizator wyrażeń kompilatora Clang oraz
600 %package -n lldb-devel
601 Summary: Development files for LLDB debugger
602 Summary(pl.UTF-8): Pliki programistyczne debuggera LLDB
603 Group: Development/Libraries
604 URL: https://lldb.llvm.org/
605 Requires: %{name}-devel = %{version}-%{release}
606 Requires: clang-devel = %{version}-%{release}
607 Requires: lldb = %{version}-%{release}
609 %description -n lldb-devel
610 Development files for LLDB debugger.
612 %description -n lldb-devel -l pl.UTF-8
613 Pliki programistyczne debuggera LLDB.
616 Summary: OCaml binding for LLVM
617 Summary(pl.UTF-8): Wiązanie OCamla do LLVM-a
619 Requires: %{name} = %{version}-%{release}
621 %requires_eq ocaml-runtime
625 OCaml binding for LLVM.
627 %description ocaml -l pl.UTF-8
628 Wiązanie OCamla do LLVM-a.
631 Summary: Development files for LLVM OCaml binding
632 Summary(pl.UTF-8): Pliki programistyczne wiązania OCamla do LLVM-a
633 Group: Development/Libraries
634 Requires: %{name}-devel = %{version}-%{release}
635 Requires: %{name}-ocaml = %{version}-%{release}
637 %description ocaml-devel
638 The llvm-ocaml-devel package contains libraries and signature files
639 for developing applications that use llvm-ocaml binding.
641 %description ocaml-devel -l pl.UTF-8
642 Ten pakiet zawiera biblioteki i pliki sygnatur do tworzenia aplikacji
643 wykorzystujących wiązanie llvm-ocaml.
646 Summary: Documentation for LLVM's OCaml binding
647 Summary(pl.UTF-8): Dokumentacja wiązania OCamla do LLVM-a
649 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 tools/mlir
697 %{__mv} cmake-%{version}.src cmake-utils
716 grep -rl /usr/bin/env projects tools utils | xargs sed -i -e '1{
717 s,^#!.*bin/env python3\?,#!%{__python3},
718 s,^#!.*bin/env perl,#!%{__perl},
721 find -name '*.py' -print0 | xargs -0 sed -i -e '1{
722 s,^#!.*bin/python.*,#!%{__python3},
726 %{__sed} -i -e '1s,/usr/bin/env bash,/bin/bash,' tools/flang/tools/f18/flang.in
732 # Disabling assertions now, rec. by pure and needed for OpenGTL
733 # TESTFIX no PIC on ix86: http://llvm.org/bugs/show_bug.cgi?id=3801
735 CPPFLAGS="%{rpmcppflags} -D_FILE_OFFSET_BITS=64"
738 export CFLAGS="%{rpmcflags} -g0"
739 export CXXFLAGS="%{rpmcxxflags} -g0"
740 if echo 'int main(){}' | %{__cc} -x c %{rpmldflags} -Wl,--reduce-memory-overheads -o /dev/null - > /dev/null 2>&1; then
741 export LDFLAGS="%{rpmldflags} -Wl,--reduce-memory-overheads"
746 -DBUILD_SHARED_LIBS:BOOL=OFF \
747 -DENABLE_LINKER_BUILD_ID:BOOL=ON \
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}" \
780 %{cmake_on_off target_nvptx POLLY_ENABLE_GPGPU_CODEGEN} \
782 -DSPHINX_WARNINGS_AS_ERRORS=OFF \
785 -DCOMPILER_RT_BUILD_MEMPROF:BOOL=OFF
791 OPTIMIZE_OPTION="%{rpmcflags} %{rpmcppflags}"
794 %{__make} check 2>&1 | tee llvm-testlog.txt
795 %{__make} -C tools/clang test 2>&1 | tee clang-testlog.txt
799 %{__make} -C docs docs-llvm-html
800 %{__make} -C docs docs-llvm-man
802 %{__make} -C docs ocaml_doc
804 %{__make} -C tools/clang/docs docs-clang-html
805 %{__make} -C tools/clang/docs docs-clang-man
806 %{__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 rm -rf $RPM_BUILD_ROOT
818 %{__make} -j1 -C build install \
819 DESTDIR=$RPM_BUILD_ROOT
821 # only some .pyc files are created by make install
822 %py3_comp $RPM_BUILD_ROOT%{py3_sitedir}
823 %py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir}
825 # Adjust static analyzer installation (see -libexecdir patch)
826 abs_ca_libexecdir="%{_libexecdir}/clang-analyzer"
827 rel_ca_libexecdir="${abs_ca_libexecdir#%{_prefix}}"
828 %{__sed} -i -e "s,/\.\./libexec/,/..${rel_ca_libexecdir}/," $RPM_BUILD_ROOT%{_bindir}/scan-build
829 %py3_comp $RPM_BUILD_ROOT%{_datadir}/scan-view
830 %py3_ocomp $RPM_BUILD_ROOT%{_datadir}/scan-view
832 # not installed by cmake buildsystem
833 install build/bin/pp-trace $RPM_BUILD_ROOT%{_bindir}
836 cp -p build/docs/man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
837 # these tools are not installed
838 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/{FileCheck,clang-tblgen,lldb-tblgen}.1
840 echo '.so llvm-ar.1' > $RPM_BUILD_ROOT%{_mandir}/man1/llvm-ranlib.1
843 # Move documentation back to build directory
846 %{__mv} $RPM_BUILD_ROOT%{_docdir}/llvm/ocaml-html ocamldocs
849 # and separate the apidoc
852 cp -a build/tools/clang/docs/html clang-apidoc
855 # And prepare Clang documentation
857 install -d clang-docs
858 for f in LICENSE.TXT NOTES.txt README.txt; do
859 ln tools/clang/$f clang-docs
862 install -d $RPM_BUILD_ROOT%{bash_compdir}
863 %{__mv} $RPM_BUILD_ROOT%{_datadir}/clang/bash-autocomplete.sh $RPM_BUILD_ROOT%{bash_compdir}/clang
865 %{__rm} $RPM_BUILD_ROOT%{_bindir}/c-index-test
867 %{__rm} $RPM_BUILD_ROOT%{_datadir}/clang/clang-format-bbedit.applescript
869 %{?with_lldb:%{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/{,__pycache__/}six*.py*}
870 # it seems it is used internally by an extra clang tool
871 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libfindAllSymbols.a
873 # disable completeness check incompatible with split packaging
874 %{__sed} -i -e '/^foreach(target .*IMPORT_CHECK_TARGETS/,/^endforeach/d; /^unset(_IMPORT_CHECK_TARGETS)/d' \
875 $RPM_BUILD_ROOT%{_libdir}/cmake/clang/ClangTargets.cmake \
877 $RPM_BUILD_ROOT%{_libdir}/cmake/flang/FlangTargets.cmake \
879 $RPM_BUILD_ROOT%{_libdir}/cmake/lld/LLDTargets.cmake \
880 $RPM_BUILD_ROOT%{_libdir}/cmake/llvm/LLVMExports.cmake \
882 $RPM_BUILD_ROOT%{_libdir}/cmake/mlir/MLIRTargets.cmake
886 rm -rf $RPM_BUILD_ROOT
888 %post libs -p /sbin/ldconfig
889 %postun libs -p /sbin/ldconfig
891 %post mlir -p /sbin/ldconfig
892 %postun mlir -p /sbin/ldconfig
894 %post -n clang-libs -p /sbin/ldconfig
895 %postun -n clang-libs -p /sbin/ldconfig
897 %post -n lldb -p /sbin/ldconfig
898 %postun -n lldb -p /sbin/ldconfig
901 %defattr(644,root,root,755)
902 %doc CREDITS.TXT LICENSE.TXT README.txt %{?with_tests:llvm-testlog.txt}
903 %attr(755,root,root) %{_bindir}/bugpoint
904 %attr(755,root,root) %{_bindir}/dsymutil
905 %attr(755,root,root) %{_bindir}/llc
906 %attr(755,root,root) %{_bindir}/lli
907 %attr(755,root,root) %{_bindir}/llvm-addr2line
908 %attr(755,root,root) %{_bindir}/llvm-ar
909 %attr(755,root,root) %{_bindir}/llvm-as
910 %attr(755,root,root) %{_bindir}/llvm-bcanalyzer
911 %attr(755,root,root) %{_bindir}/llvm-bitcode-strip
912 %attr(755,root,root) %{_bindir}/llvm-c-test
913 %attr(755,root,root) %{_bindir}/llvm-cat
914 %attr(755,root,root) %{_bindir}/llvm-cfi-verify
915 %attr(755,root,root) %{_bindir}/llvm-cov
916 %attr(755,root,root) %{_bindir}/llvm-cvtres
917 %attr(755,root,root) %{_bindir}/llvm-cxxdump
918 %attr(755,root,root) %{_bindir}/llvm-cxxfilt
919 %attr(755,root,root) %{_bindir}/llvm-cxxmap
920 %attr(755,root,root) %{_bindir}/llvm-debuginfod
921 %attr(755,root,root) %{_bindir}/llvm-debuginfod-find
922 %attr(755,root,root) %{_bindir}/llvm-diff
923 %attr(755,root,root) %{_bindir}/llvm-dis
924 %attr(755,root,root) %{_bindir}/llvm-dlltool
925 %attr(755,root,root) %{_bindir}/llvm-dwarfdump
926 %attr(755,root,root) %{_bindir}/llvm-dwarfutil
927 %attr(755,root,root) %{_bindir}/llvm-dwp
928 %attr(755,root,root) %{_bindir}/llvm-exegesis
929 %attr(755,root,root) %{_bindir}/llvm-extract
930 %attr(755,root,root) %{_bindir}/llvm-gsymutil
931 %attr(755,root,root) %{_bindir}/llvm-ifs
932 %attr(755,root,root) %{_bindir}/llvm-install-name-tool
933 %attr(755,root,root) %{_bindir}/llvm-jitlink
934 %attr(755,root,root) %{_bindir}/llvm-lib
935 %attr(755,root,root) %{_bindir}/llvm-libtool-darwin
936 %attr(755,root,root) %{_bindir}/llvm-link
937 %attr(755,root,root) %{_bindir}/llvm-lipo
938 %attr(755,root,root) %{_bindir}/llvm-lto
939 %attr(755,root,root) %{_bindir}/llvm-lto2
940 %attr(755,root,root) %{_bindir}/llvm-mc
941 %attr(755,root,root) %{_bindir}/llvm-mca
942 %attr(755,root,root) %{_bindir}/llvm-ml
943 %attr(755,root,root) %{_bindir}/llvm-modextract
944 %attr(755,root,root) %{_bindir}/llvm-mt
945 %attr(755,root,root) %{_bindir}/llvm-nm
946 %attr(755,root,root) %{_bindir}/llvm-objcopy
947 %attr(755,root,root) %{_bindir}/llvm-objdump
948 %attr(755,root,root) %{_bindir}/llvm-opt-report
949 %attr(755,root,root) %{_bindir}/llvm-otool
950 %attr(755,root,root) %{_bindir}/llvm-pdbutil
951 %attr(755,root,root) %{_bindir}/llvm-profdata
952 %attr(755,root,root) %{_bindir}/llvm-profgen
953 %attr(755,root,root) %{_bindir}/llvm-ranlib
954 %attr(755,root,root) %{_bindir}/llvm-rc
955 %attr(755,root,root) %{_bindir}/llvm-readelf
956 %attr(755,root,root) %{_bindir}/llvm-readobj
957 %attr(755,root,root) %{_bindir}/llvm-reduce
958 %attr(755,root,root) %{_bindir}/llvm-remark-size-diff
959 %attr(755,root,root) %{_bindir}/llvm-rtdyld
960 %attr(755,root,root) %{_bindir}/llvm-sim
961 %attr(755,root,root) %{_bindir}/llvm-size
962 %attr(755,root,root) %{_bindir}/llvm-split
963 %attr(755,root,root) %{_bindir}/llvm-strip
964 %attr(755,root,root) %{_bindir}/llvm-stress
965 %attr(755,root,root) %{_bindir}/llvm-strings
966 %attr(755,root,root) %{_bindir}/llvm-symbolizer
967 %attr(755,root,root) %{_bindir}/llvm-tapi-diff
968 %attr(755,root,root) %{_bindir}/llvm-tblgen
969 %attr(755,root,root) %{_bindir}/llvm-tli-checker
970 %attr(755,root,root) %{_bindir}/llvm-undname
971 %attr(755,root,root) %{_bindir}/llvm-windres
972 %attr(755,root,root) %{_bindir}/llvm-xray
973 %attr(755,root,root) %{_bindir}/opt
974 %attr(755,root,root) %{_bindir}/sancov
975 %attr(755,root,root) %{_bindir}/sanstats
976 %attr(755,root,root) %{_bindir}/split-file
977 %attr(755,root,root) %{_bindir}/tblgen-lsp-server
978 %attr(755,root,root) %{_bindir}/verify-uselistorder
980 %{_mandir}/man1/bugpoint.1*
981 %{_mandir}/man1/dsymutil.1*
982 %{_mandir}/man1/lit.1*
983 %{_mandir}/man1/llc.1*
984 %{_mandir}/man1/lli.1*
985 %{_mandir}/man1/llvm-addr2line.1*
986 %{_mandir}/man1/llvm-ar.1*
987 %{_mandir}/man1/llvm-as.1*
988 %{_mandir}/man1/llvm-bcanalyzer.1*
989 %{_mandir}/man1/llvm-cov.1*
990 %{_mandir}/man1/llvm-cxxfilt.1*
991 %{_mandir}/man1/llvm-cxxmap.1*
992 %{_mandir}/man1/llvm-diff.1*
993 %{_mandir}/man1/llvm-dis.1*
994 %{_mandir}/man1/llvm-dwarfdump.1*
995 %{_mandir}/man1/llvm-dwarfutil.1*
996 %{_mandir}/man1/llvm-exegesis.1*
997 %{_mandir}/man1/llvm-extract.1*
998 %{_mandir}/man1/llvm-ifs.1*
999 %{_mandir}/man1/llvm-install-name-tool.1*
1000 %{_mandir}/man1/llvm-lib.1*
1001 %{_mandir}/man1/llvm-libtool-darwin.1*
1002 %{_mandir}/man1/llvm-link.1*
1003 %{_mandir}/man1/llvm-lipo.1*
1004 %{_mandir}/man1/llvm-locstats.1*
1005 %{_mandir}/man1/llvm-mca.1*
1006 %{_mandir}/man1/llvm-nm.1*
1007 %{_mandir}/man1/llvm-objcopy.1*
1008 %{_mandir}/man1/llvm-objdump.1*
1009 %{_mandir}/man1/llvm-otool.1*
1010 %{_mandir}/man1/llvm-pdbutil.1*
1011 %{_mandir}/man1/llvm-profdata.1*
1012 %{_mandir}/man1/llvm-profgen.1*
1013 %{_mandir}/man1/llvm-ranlib.1*
1014 %{_mandir}/man1/llvm-readelf.1*
1015 %{_mandir}/man1/llvm-readobj.1*
1016 %{_mandir}/man1/llvm-remark-size-diff.1*
1017 %{_mandir}/man1/llvm-size.1*
1018 %{_mandir}/man1/llvm-stress.1*
1019 %{_mandir}/man1/llvm-strings.1*
1020 %{_mandir}/man1/llvm-strip.1*
1021 %{_mandir}/man1/llvm-symbolizer.1*
1022 %{_mandir}/man1/llvm-tblgen.1*
1023 %{_mandir}/man1/llvm-tli-checker.1*
1024 %{_mandir}/man1/opt.1*
1025 %{_mandir}/man1/tblgen.1*
1029 %defattr(644,root,root,755)
1030 %attr(755,root,root) %{_libdir}/LLVMgold.so
1031 %attr(755,root,root) %{_libdir}/libLLVM-%{abi}.so
1032 # non-soname symlink
1033 %attr(755,root,root) %{_libdir}/libLLVM-%{version}.so
1034 %attr(755,root,root) %{_libdir}/libLTO.so.15
1035 %attr(755,root,root) %{_libdir}/libRemarks.so.15
1036 %attr(755,root,root) %{_libdir}/libclang-cpp.so.15
1039 %defattr(644,root,root,755)
1040 %attr(755,root,root) %{_bindir}/llvm-config
1041 %attr(755,root,root) %{_libdir}/libLLVM.so
1042 %attr(755,root,root) %{_libdir}/libLTO.so
1043 %attr(755,root,root) %{_libdir}/libRemarks.so
1044 %attr(755,root,root) %{_libdir}/libclang-cpp.so
1045 %{_libdir}/libLLVM*.a
1047 %{_includedir}/llvm-c
1048 %{_libdir}/cmake/llvm
1050 %{_mandir}/man1/llvm-config.1*
1054 #%defattr(644,root,root,755)
1058 %defattr(644,root,root,755)
1064 %defattr(644,root,root,755)
1065 %attr(755,root,root) %{_bindir}/mlir-cpu-runner
1066 %attr(755,root,root) %{_bindir}/mlir-linalg-ods-yaml-gen
1067 %attr(755,root,root) %{_bindir}/mlir-lsp-server
1068 %attr(755,root,root) %{_bindir}/mlir-opt
1069 %attr(755,root,root) %{_bindir}/mlir-pdll-lsp-server*
1070 %attr(755,root,root) %{_bindir}/mlir-reduce
1071 %attr(755,root,root) %{_bindir}/mlir-tblgen
1072 %attr(755,root,root) %{_bindir}/mlir-translate
1073 %attr(755,root,root) %{_libdir}/libMLIR.so.15
1074 %attr(755,root,root) %{_libdir}/libmlir_async_runtime.so.15
1075 %attr(755,root,root) %{_libdir}/libmlir_c_runner_utils.so.15
1076 %attr(755,root,root) %{_libdir}/libmlir_runner_utils.so.15
1078 %{_mandir}/man1/mlir-tblgen.1*
1082 %defattr(644,root,root,755)
1083 %attr(755,root,root) %{_libdir}/libMLIR.so
1084 %attr(755,root,root) %{_libdir}/libmlir_async_runtime.so
1085 %attr(755,root,root) %{_libdir}/libmlir_c_runner_utils.so
1086 %attr(755,root,root) %{_libdir}/libmlir_runner_utils.so
1087 %{_libdir}/libMLIR*.a
1089 %{_includedir}/mlir-c
1090 %{_libdir}/cmake/mlir
1095 %defattr(644,root,root,755)
1096 %doc tools/polly/{CREDITS.txt,LICENSE.TXT,README} tools/polly/www/{bugs,changelog,contributors}.html
1097 %attr(755,root,root) %{_libdir}/LLVMPolly.so
1098 %{?with_target_nvptx:%attr(755,root,root) %{_libdir}/libGPURuntime.so}
1101 %defattr(644,root,root,755)
1102 %{_libdir}/libPolly.a
1103 %{_libdir}/libPollyISL.a
1104 %{?with_target_nvptx:%{_libdir}/libPollyPPCG.a}
1105 %{_includedir}/polly
1106 %{_libdir}/cmake/polly
1110 %defattr(644,root,root,755)
1111 %doc clang-docs/{LICENSE.TXT,NOTES.txt,README.txt} %{?with_tests:clang-testlog.txt}
1112 %attr(755,root,root) %{_bindir}/clang
1113 %attr(755,root,root) %{_bindir}/clang++
1114 %attr(755,root,root) %{_bindir}/clang-%{abi}
1115 %attr(755,root,root) %{_bindir}/clang-check
1116 %attr(755,root,root) %{_bindir}/clang-cl
1117 %attr(755,root,root) %{_bindir}/clang-cpp
1118 %attr(755,root,root) %{_bindir}/clang-doc
1119 %attr(755,root,root) %{_bindir}/clang-format
1120 %attr(755,root,root) %{_bindir}/clang-linker-wrapper
1121 %attr(755,root,root) %{_bindir}/clang-nvlink-wrapper
1122 %attr(755,root,root) %{_bindir}/clang-offload-bundler
1123 %attr(755,root,root) %{_bindir}/clang-offload-packager
1124 %attr(755,root,root) %{_bindir}/clang-offload-wrapper
1125 %attr(755,root,root) %{_bindir}/clang-pseudo
1126 %attr(755,root,root) %{_bindir}/clang-repl
1127 %attr(755,root,root) %{_bindir}/git-clang-format
1128 %dir %{_libdir}/clang
1129 %dir %{_libdir}/clang/%{version}
1130 %{_libdir}/clang/%{version}/include
1132 %ifarch %{x8664} x32 aarch64
1133 %dir %{_libdir}/clang/%{version}/bin
1134 %attr(755,root,root) %{_libdir}/clang/%{version}/bin/hwasan_symbolize
1136 %ifarch %{ix86} %{x8664} aarch64 armv7hl armv7hnl
1137 %dir %{_libdir}/clang/%{version}/lib
1138 %dir %{_libdir}/clang/%{version}/lib/*-linux*
1139 %dir %{_libdir}/clang/%{version}/share
1142 %if %{with multilib}
1143 %dir %{_libdir}/clang/%{version}/lib
1144 %dir %{_libdir}/clang/%{version}/lib/*-linux*
1145 %dir %{_libdir}/clang/%{version}/share
1149 %{_libdir}/clang/%{version}/lib/i*86-*linux/clang_rt.*.o
1150 %{_libdir}/clang/%{version}/lib/i*86-*linux/libclang_rt.*.a
1151 %attr(755,root,root) %{_libdir}/clang/%{version}/lib/i*86-*linux/libclang_rt.*.so
1154 %{_libdir}/clang/%{version}/lib/x86_64-*linux/clang_rt.*.o
1155 %{_libdir}/clang/%{version}/lib/x86_64-*linux/libclang_rt.*.a
1156 %attr(755,root,root) %{_libdir}/clang/%{version}/lib/x86_64-*linux/libclang_rt.*.so
1157 %{_libdir}/clang/%{version}/lib/x86_64-*linux/libclang_rt.*.a.syms
1160 %{_libdir}/clang/%{version}/lib/aarch64-*linux/clang_rt.*.o
1161 %{_libdir}/clang/%{version}/lib/aarch64-*linux/libclang_rt.*.a
1162 %attr(755,root,root) %{_libdir}/clang/%{version}/lib/aarch64-*linux/libclang_rt.*.so
1163 %{_libdir}/clang/%{version}/lib/aarch64-*linux/libclang_rt.*.a.syms
1165 %ifarch armv7hl armv7hnl
1166 %{_libdir}/clang/%{version}/lib/armhf-*linux%{_gnu}/clang_rt.*.o
1167 %{_libdir}/clang/%{version}/lib/armhf-*linux%{_gnu}/libclang_rt.*.a
1168 %attr(755,root,root) %{_libdir}/clang/%{version}/lib/armhf-*linux%{_gnu}/libclang_rt.*.so
1169 %{_libdir}/clang/%{version}/lib/armhf-*linux%{_gnu}/libclang_rt.*.a.syms
1171 %ifarch %{ix86} %{x8664} %{arm} aarch64 mips mips64 ppc64
1172 %{_libdir}/clang/%{version}/share/asan_ignorelist.txt
1174 %ifarch %{ix86} %{x8664} mips64 aarch64 armv7hl armv7hnl
1175 %{_libdir}/clang/%{version}/share/cfi_ignorelist.txt
1177 %ifarch %{x8664} aarch64 mips64
1178 %{_libdir}/clang/%{version}/share/dfsan_abilist.txt
1179 %{_libdir}/clang/%{version}/share/msan_ignorelist.txt
1181 %ifarch %{x8664} aarch64
1182 %{_libdir}/clang/%{version}/share/hwasan_ignorelist.txt
1185 %if %{with multilib}
1186 %{_libdir}/clang/%{version}/share/asan_ignorelist.txt
1187 %{_libdir}/clang/%{version}/share/cfi_ignorelist.txt
1188 %{_libdir}/clang/%{version}/share/dfsan_abilist.txt
1189 %{_libdir}/clang/%{version}/share/msan_ignorelist.txt
1190 %{_libdir}/clang/%{version}/share/hwasan_ignorelist.txt
1194 %dir %{_datadir}/clang
1195 %{_datadir}/clang/clang-format-diff.py
1197 %if %{with rt} && %{with multilib}
1198 %ifarch %{x8664} x32
1199 %files -n clang-multilib
1200 %defattr(644,root,root,755)
1201 %{_libdir}/clang/%{version}/lib/i386-*linux/clang_rt.*.o
1202 %{_libdir}/clang/%{version}/lib/i386-*linux/libclang_rt.*.a
1203 %attr(755,root,root) %{_libdir}/clang/%{version}/lib/i386-*linux/libclang_rt.*.so
1206 %{_libdir}/clang/%{version}/lib/x86_64-*linux/clang_rt.*.o
1207 %{_libdir}/clang/%{version}/lib/x86_64-*linux/libclang_rt.*.a
1208 %attr(755,root,root) %{_libdir}/clang/%{version}/lib/x86_64-*linux/libclang_rt.*.so
1209 %{_libdir}/clang/%{version}/lib/x86_64-*linux/libclang_rt.*.a.syms
1213 %files -n clang-libs
1214 %defattr(644,root,root,755)
1215 %attr(755,root,root) %{_libdir}/libclang.so.15
1216 %attr(755,root,root) %{_libdir}/libclang.so.*.*.*
1218 %files -n clang-devel
1219 %defattr(644,root,root,755)
1220 %attr(755,root,root) %{_libdir}/libclang.so
1221 %{_libdir}/libclang*.a
1222 %{_includedir}/clang
1223 %{_includedir}/clang-c
1224 %{_includedir}/clang-tidy
1225 %{_libdir}/cmake/clang
1228 %defattr(644,root,root,755)
1229 %doc tools/clang/docs/*.{html,png,txt}
1232 %files -n clang-apidocs
1233 %defattr(644,root,root,755)
1237 %files -n clang-analyzer
1238 %defattr(644,root,root,755)
1239 %dir %{_libexecdir}/clang-analyzer
1241 %attr(755,root,root) %{_bindir}/scan-build
1242 %attr(755,root,root) %{_libexecdir}/clang-analyzer/c++-analyzer
1243 %attr(755,root,root) %{_libexecdir}/clang-analyzer/ccc-analyzer
1244 %{_datadir}/scan-build
1245 %{_mandir}/man1/scan-build.1*
1247 %attr(755,root,root) %{_bindir}/analyze-build
1248 %attr(755,root,root) %{_bindir}/intercept-build
1249 %attr(755,root,root) %{_bindir}/scan-build-py
1250 %attr(755,root,root) %{_bindir}/scan-view
1251 %attr(755,root,root) %{_libexecdir}/clang-analyzer/analyze-c++
1252 %attr(755,root,root) %{_libexecdir}/clang-analyzer/analyze-cc
1253 %attr(755,root,root) %{_libexecdir}/clang-analyzer/intercept-c++
1254 %attr(755,root,root) %{_libexecdir}/clang-analyzer/intercept-cc
1255 %{_prefix}/lib/libear
1256 %{_prefix}/lib/libscanbuild
1257 %{_datadir}/scan-view
1259 %files -n clang-tools-extra
1260 %defattr(644,root,root,755)
1261 %doc tools/clang/tools/extra/{CODE_OWNERS.TXT,README.txt}
1262 %attr(755,root,root) %{_bindir}/clang-apply-replacements
1263 %attr(755,root,root) %{_bindir}/clang-change-namespace
1264 %attr(755,root,root) %{_bindir}/clang-extdef-mapping
1265 %attr(755,root,root) %{_bindir}/clang-include-fixer
1266 %attr(755,root,root) %{_bindir}/clang-move
1267 %attr(755,root,root) %{_bindir}/clang-query
1268 %attr(755,root,root) %{_bindir}/clang-refactor
1269 %attr(755,root,root) %{_bindir}/clang-rename
1270 %attr(755,root,root) %{_bindir}/clang-reorder-fields
1271 %attr(755,root,root) %{_bindir}/clang-scan-deps
1272 %attr(755,root,root) %{_bindir}/clang-tidy
1273 %attr(755,root,root) %{_bindir}/clangd
1274 %attr(755,root,root) %{_bindir}/diagtool
1275 %attr(755,root,root) %{_bindir}/find-all-symbols
1276 %attr(755,root,root) %{_bindir}/hmaptool
1277 %attr(755,root,root) %{_bindir}/modularize
1278 %attr(755,root,root) %{_bindir}/pp-trace
1279 %attr(755,root,root) %{_bindir}/run-clang-tidy
1280 %{_datadir}/clang/clang-include-fixer.py
1281 %{_datadir}/clang/clang-tidy-diff.py
1282 %{_datadir}/clang/run-find-all-symbols.py
1284 %files -n bash-completion-clang
1285 %defattr(644,root,root,755)
1286 %{bash_compdir}/clang
1290 %defattr(644,root,root,755)
1291 %doc tools/flang/{LICENSE.TXT,README.md}
1292 %attr(755,root,root) %{_bindir}/f18
1293 %attr(755,root,root) %{_bindir}/f18-parse-demo
1294 %attr(755,root,root) %{_bindir}/fir-opt
1295 %attr(755,root,root) %{_bindir}/flang
1296 %attr(755,root,root) %{_bindir}/tco
1297 %dir %{_includedir}/flang
1298 %{_includedir}/flang/Version.inc
1299 %{_includedir}/flang/__fortran_*.mod
1300 %{_includedir}/flang/ieee_*.mod
1301 %{_includedir}/flang/iso_*.mod
1302 %{_includedir}/flang/omp_lib*.mod
1304 %files -n flang-devel
1305 %defattr(644,root,root,755)
1306 %{_libdir}/libFIROptimizer.a
1307 %{_libdir}/libFortran*.a
1308 %{_includedir}/flang/Common
1309 %{_includedir}/flang/Decimal
1310 %{_includedir}/flang/Evaluate
1311 %{_includedir}/flang/Frontend
1312 %{_includedir}/flang/FrontendTool
1313 %{_includedir}/flang/Lower
1314 %{_includedir}/flang/Optimizer
1315 %{_includedir}/flang/Parser
1316 %{_includedir}/flang/Semantics
1317 %{_includedir}/flang/ISO_Fortran_binding.h
1318 %{_libdir}/cmake/flang
1322 %defattr(644,root,root,755)
1323 %doc tools/lld/{LICENSE.TXT,README.md}
1324 %attr(755,root,root) %{_bindir}/ld.lld
1325 %attr(755,root,root) %{_bindir}/ld64.lld
1326 %attr(755,root,root) %{_bindir}/lld
1327 %attr(755,root,root) %{_bindir}/lld-link
1328 %attr(755,root,root) %{_bindir}/wasm-ld
1331 %defattr(644,root,root,755)
1332 %{_libdir}/liblld[ACDEHMRWXY]*.a
1334 %{_libdir}/cmake/lld
1338 %defattr(644,root,root,755)
1339 %attr(755,root,root) %{_bindir}/lldb
1340 %attr(755,root,root) %{_bindir}/lldb-argdumper
1341 %attr(755,root,root) %{_bindir}/lldb-instr
1342 %attr(755,root,root) %{_bindir}/lldb-server
1343 %attr(755,root,root) %{_bindir}/lldb-vscode
1344 %attr(755,root,root) %{_libdir}/liblldb.so.%{version}
1345 %attr(755,root,root) %ghost %{_libdir}/liblldb.so.15
1346 %attr(755,root,root) %ghost %{_libdir}/liblldbIntelFeatures.so.15
1347 %dir %{py3_sitedir}/lldb
1348 %attr(755,root,root) %{py3_sitedir}/lldb/lldb-argdumper
1349 %{py3_sitedir}/lldb/formatters
1350 %{py3_sitedir}/lldb/utils
1351 %{py3_sitedir}/lldb/__init__.py
1352 %{py3_sitedir}/lldb/__pycache__
1353 %{py3_sitedir}/lldb/embedded_interpreter.py
1354 %dir %{py3_sitedir}/lldb/plugins
1355 %{py3_sitedir}/lldb/plugins/__pycache__
1356 %{py3_sitedir}/lldb/plugins/__init__.py
1357 %{py3_sitedir}/lldb/plugins/scripted_process.py
1358 %attr(755,root,root) %{py3_sitedir}/lldb/_lldb.cpython-*.so
1360 %files -n lldb-devel
1361 %defattr(644,root,root,755)
1362 %attr(755,root,root) %{_libdir}/liblldb.so
1363 %attr(755,root,root) %{_libdir}/liblldbIntelFeatures.so
1369 %defattr(644,root,root,755)
1370 %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllllvm*.so
1371 %dir %{_libdir}/ocaml/llvm
1372 %{_libdir}/ocaml/llvm/llvm*.cma
1373 %{_libdir}/ocaml/llvm/llvm*.cmi
1374 %{_libdir}/ocaml/META.llvm*
1377 %defattr(644,root,root,755)
1378 %{_libdir}/ocaml/llvm/libllvm*.a
1379 %{_libdir}/ocaml/llvm/llvm*.a
1380 %{_libdir}/ocaml/llvm/llvm*.cmt
1381 %{_libdir}/ocaml/llvm/llvm*.cmti
1382 %{_libdir}/ocaml/llvm/llvm*.cmx
1383 %{_libdir}/ocaml/llvm/llvm*.cmxa
1384 %{_libdir}/ocaml/llvm/llvm*.mli
1387 %defattr(644,root,root,755)
1392 %defattr(644,root,root,755)
1393 %{_datadir}/opt-viewer
1395 %files -n vim-plugin-clang
1396 %defattr(644,root,root,755)
1397 %{_datadir}/clang/clang-format.py
1398 %{_datadir}/clang/clang-rename.py