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 # - figure out whether we need obj.MLIRCAPIIR files
15 # - cmake dependencies mess (LLVMExports.cmake appears to require all -devels):
16 # with llvm-devel and spirv-tools-devel installed but without llvm-mlir (or other packages):
17 # $ cat CMakeLists.txt
19 # find_package(SPIRV-Tools)
22 # The imported target "mlir-tblgen" references the file
24 # "/usr/bin/mlir-tblgen"
26 # but this file does not exist. Possible reasons include:
30 %bcond_without lldb # LLDB debugger
31 %bcond_without mlir # MLIR libraries and tools (required for Flang)
32 %bcond_with flang # Flang (Fortran18) compiler (heavy memory requirements during build)
33 %bcond_without polly # Polly cache-locality optimization, auto-parallelism and vectorization
34 %bcond_without rt # compiler-rt libraries
35 %bcond_without multilib # compiler-rt multilib libraries
36 %bcond_without ocaml # OCaml binding
37 %bcond_without z3 # Z3 constraint solver support in Clang Static Analyzer
38 %bcond_without doc # HTML docs and man pages
39 %bcond_without target_aarch64 # AArch64 target support
40 %bcond_without target_amdgpu # AMDGPU target support
41 %bcond_without target_arm # ARM target support
42 %bcond_without target_avr # AVR target support
43 %bcond_without target_bpf # BPF target support
44 %bcond_without target_hexagon # Hexagon target support
45 %bcond_without target_lanai # Lanai target support
46 %bcond_without target_mips # Mips target support
47 %bcond_without target_msp430 # MSP430 target support
48 %bcond_without target_nvptx # NVPTX target support
49 %bcond_without target_powerpc # PowerPC target support
50 %bcond_without target_riscv # RISCV target support
51 %bcond_without target_sparc # Sparc target support
52 %bcond_without target_systemz # SystemZ target support
53 %bcond_without target_ve # VE target support
54 %bcond_without target_webassembly # WebAssembly target support
55 %bcond_without target_x86 # X86 target support
56 %bcond_without target_xcore # XCore target support
57 %bcond_with cxxmodules # C++20 modules (requires support in bootstrap compiler)
58 %bcond_with apidocs # doxygen docs (HUGE, so they are not built by default)
59 %bcond_with tests # run tests
60 %bcond_with lowmem # lower memory requirements
62 # No ocaml on other arches or no native ocaml (required for ocaml-ctypes)
63 %ifnarch %{ix86} %{x8664} %{arm} aarch64 ppc sparc sparcv9
67 %ifarch armv3l armv4b armv4l armv4tl armv5tl armv5tel armv5tejl armv6l armv6hl
71 %ifarch %{arm} aarch64
75 %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;}
81 Summary: The Low Level Virtual Machine (An Optimizing Compiler Infrastructure)
82 Summary(pl.UTF-8): Niskopoziomowa maszyna wirtualna (infrastruktura kompilatora optymalizującego)
86 License: Apache 2.0 with LLVM exceptions
87 Group: Development/Languages
88 #Source0Download: https://github.com/llvm/llvm-project/releases/
89 Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/%{name}-%{version}.src.tar.xz
90 # Source0-md5: 8aad3395466b23d3d34e98dbe386b018
91 Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/clang-%{version}.src.tar.xz
92 # Source1-md5: 335980de1f61d2641acc83bdf0ab0faf
93 Source2: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/compiler-rt-%{version}.src.tar.xz
94 # Source2-md5: 1068037dce5e42a0eeb2217484f501fd
95 Source3: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/lldb-%{version}.src.tar.xz
96 # Source3-md5: 8741b5d30a5390a7daef639cf4042f0c
97 Source4: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/polly-%{version}.src.tar.xz
98 # Source4-md5: 5d37eabbfb147314187fc8abe7880796
99 Source5: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/clang-tools-extra-%{version}.src.tar.xz
100 # Source5-md5: 2c71885c8bad1724cea3d021224a69a1
101 Source6: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/lld-%{version}.src.tar.xz
102 # Source6-md5: cd93e87550e48b1a8ae3ee638861f47c
103 Source7: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/flang-%{version}.src.tar.xz
104 # Source7-md5: ce6eebfe98c5372c969cd1da6145bfb6
105 # "mlir" subdir extracted from https://github.com/llvm/llvm-project/releases/download/llvmorg-13.0.1/llvm-project-13.0.1.src.tar.xz
106 Source8: mlir-%{version}.tar.xz
107 # Source8-md5: 34fbb0505b40478016d9e518b0fcf24c
108 Patch1: %{name}-pld.patch
109 Patch2: %{name}-python-modules.patch
110 Patch3: x32-gcc-toolchain.patch
111 Patch4: cmake-buildtype.patch
112 Patch5: %{name}-ocaml-shared.patch
113 Patch6: %{name}-flang.patch
114 Patch7: llvm12-build_fixes.patch
115 Patch8: %{name}-selective_bindings.patch
116 Patch9: %{name}-libexecdir.patch
117 Patch10: compiler-rt-paths.patch
118 URL: https://llvm.org/
120 BuildRequires: binutils-devel
122 BuildRequires: cmake >= 3.13.4
125 BuildRequires: libedit-devel
126 BuildRequires: libltdl-devel
127 BuildRequires: libpfm-devel
128 BuildRequires: libstdc++-devel >= 6:5
129 BuildRequires: libxml2-devel >= 2
130 BuildRequires: ncurses-devel
132 BuildRequires: ocaml >= 4.00.0
133 BuildRequires: ocaml-ctypes-devel >= 0.4
134 BuildRequires: ocaml-findlib
135 BuildRequires: ocaml-ocamldoc
136 %{?with_tests:BuildRequires: ocaml-ounit >= 2}
138 BuildRequires: perl-base >= 1:5.6
139 BuildRequires: perl-tools-pod
140 BuildRequires: python3 >= 1:3
141 BuildRequires: python3-PyYAML
142 BuildRequires: python3-pygments >= 2.0
143 BuildRequires: rpm-build >= 4.6
144 BuildRequires: rpm-pythonprov
145 BuildRequires: rpmbuild(macros) >= 1.742
146 %{?with_doc:BuildRequires: sphinx-pdg}
147 BuildRequires: tar >= 1:1.22
148 BuildRequires: xar-devel >= 1.6
150 %{?with_z3:BuildRequires: z3-devel >= 4.7.1}
151 BuildRequires: zlib-devel
153 BuildRequires: doxygen
154 BuildRequires: graphviz
157 BuildRequires: dejagnu
158 BuildRequires: tcl-devel
160 %if %{with rt} && %{with multilib}
162 BuildRequires: gcc-c++-multilib-32
163 BuildRequires: glibc-devel(ix86)
164 BuildRequires: libstdc++-multilib-32-devel
167 BuildRequires: gcc-c++-multilib-32
168 BuildRequires: gcc-c++-multilib-64
169 BuildRequires: glibc-devel(x86_64)
170 BuildRequires: glibc-devel(ix86)
171 BuildRequires: libstdc++-multilib-32-devel
172 BuildRequires: libstdc++-multilib-64-devel
176 BuildRequires: epydoc
177 %ifarch i386 i486 %{arm}
178 BuildRequires: libatomic-devel
180 BuildRequires: libxml2-devel >= 2
181 BuildRequires: lua-devel
182 BuildRequires: ncurses-ext-devel
183 BuildRequires: python3-devel >= 1:3.2
184 %{?with_doc:BuildRequires: python3-recommonmark}
185 BuildRequires: swig-python >= 3.0.11
186 BuildRequires: xz-devel
189 #BuildRequires: gmp-devel or imath-devel (private copy in polly/lib/External/isl/imath)
190 # private copy in polly/lib/External/isl
191 #BuildRequires: isl-devel >= 0.22.1
192 #TODO (bcond): cuda-devel (with POLLY_ENABLE_GPGPU_CODEGEN=ON)
193 %{?with_target_nvptx:BuildRequires: ocl-icd-libOpenCL-devel}
196 BuildConflicts: llvm-ocaml
198 Requires: %{name}-libs = %{version}-%{release}
199 # LLVM is not supported on PPC64
200 # http://llvm.org/bugs/show_bug.cgi?id=3729
202 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
205 %define _sysconfdir /etc/%{name}
207 %define specflags_ppc -fno-var-tracking-assignments
209 # objcopy: BFD (GNU Binutils) 2.32 assertion fail format.c:459
210 # objcopy: error: .../libLLVM-8.so(.debug_gnu_pubtypes) is too large (0x1ceee347 bytes)
211 # objcopy: .../libLLVM-8.so[.debug_gnu_pubtypes]: memory exhausted
213 %define _enable_debug_packages 0
215 # ix86 and x32 - the same issue as https://llvm.org/bugs/show_bug.cgi?id=27237
216 # use -gsplit-dwarf only when building packages with debuginfo
217 # to avoid excessive disk space usage
218 %if 0%{?_enable_debug_packages}
219 %define specflags -gsplit-dwarf
222 # strip corrupts: $RPM_BUILD_ROOT/usr/lib64/llvm-gcc/bin/llvm-c++ ...
223 %define _noautostrip .*/\\(libmud.*\\.a\\|bin/llvm-.*\\|lib.*++\\.a\\)
225 # clang doesn't know -fvar-tracking-assignments, and leaving it here would pollute llvm-config
226 # -Werror=format-security is for swig
227 # TODO: add - -Werror=format-security to tools/lldb/scripts/LLDBWrapPython.cpp
228 %define filterout_c -fvar-tracking-assignments
229 %define filterout_cxx -fvar-tracking-assignments -Werror=format-security
230 %define filterout_ccpp -fvar-tracking-assignments
233 LLVM is a compiler infrastructure designed for compile-time,
234 link-time, runtime, and idle-time optimization of programs from
235 arbitrary programming languages. LLVM is written in C++ and has been
236 developed since 2000 at the University of Illinois and Apple. It
237 currently supports compilation of C and C++ programs using clang
240 %description -l pl.UTF-8
241 LLVM to infrastruktura kompilatora zaprojektowana do optymalizacji
242 czasu kompilowania, linkowania, działania i bezczynności programów w
243 dowolnych językach programowania. Jest napisana w C++, rozwijana od
244 roku 2000 przez Uniwersytet w Illinois i Apple. Aktualnie obsługuje
245 kompilację programów w C i C++ przy użyciu frontendu clang.
248 Summary: LLVM shared libraries
249 Summary(pl.UTF-8): Biblioteki współdzielone LLVM-a
251 Conflicts: llvm < 3.2
254 LLVM shared libraries.
256 %description libs -l pl.UTF-8
257 Biblioteki współdzielone LLVM-a.
260 Summary: Static libraries and header files for LLVM
261 Summary(pl.UTF-8): Biblioteki statyczne i pliki nagłówkowe dla LLVM-a
262 Group: Development/Languages
263 Requires: %{name}-libs = %{version}-%{release}
264 Requires: libstdc++-devel >= 6:3.4
267 This package contains static libraries and header files needed to
268 develop new native programs that use the LLVM infrastructure.
270 %description devel -l pl.UTF-8
271 Ten pakiet zawiera biblioteki statyczne oraz pliki nagłówkowe
272 potrzebne do tworzenia nowych programów natywnych wykorzystujących
276 Summary: Documentation for LLVM
277 Summary(pl.UTF-8): Dokumentacja do LLVM-a
279 # does not require base
282 Documentation for the LLVM compiler infrastructure.
284 %description doc -l pl.UTF-8
285 Dokumentacja do infrastruktury kompilatorów LLVM.
288 Summary: API documentation for LLVM
289 Summary(pl.UTF-8): Dokumentacja API LLVM-a
290 Group: Development/Languages
291 Requires: %{name}-doc = %{version}-%{release}
294 API documentation for the LLVM compiler infrastructure.
296 %description apidocs -l pl.UTF-8
297 Dokumentacja API infrastruktury kompilatorów LLVM.
300 Summary: LLVM Multi-Level Intermediate Representation libraries and tools
301 Summary(pl.UTF-8): Biblioteki i narzędzia wielopoziomowej reprezentacji pośredniej LLVM
302 Group: Development/Tools
303 URL: https://mlir.llvm.org/
304 Requires: %{name} = %{version}-%{release}
307 LLVM Multi-Level Intermediate Representation libraries and tools.
309 %description mlir -l pl.UTF-8
310 Biblioteki i narzędzia wielopoziomowej reprezentacji pośredniej LLVM.
313 Summary: LLVM Multi-Level Intermediate Representation development files
314 Summary(pl.UTF-8): Pliki do programowania z użyciem wielopoziomowej reprezentacji pośredniej LLVM
315 Group: Development/Tools
316 URL: https://mlir.llvm.org/
317 Requires: %{name}-devel = %{version}-%{release}
318 Requires: %{name}-mlir = %{version}-%{release}
320 %description mlir-devel
321 LLVM Multi-Level Intermediate Representation development files.
323 %description mlir-devel -l pl.UTF-8
324 Pliki do programowania z użyciem wielopoziomowej reprezentacji
328 Summary: Polyhedral optimizations for LLVM
329 Summary(pl.UTF-8): Optymalizacje wielościanowe dla LLVM-a
330 Group: Development/Tools
331 URL: https://polly.llvm.org/
332 Requires: %{name} = %{version}-%{release}
335 Polly is a high-level loop and data-locality optimizer and
336 optimization infrastructure for LLVM. It uses an abstract mathematical
337 representation based on integer polyhedra to analyze and optimize the
338 memory access pattern of a program.
340 %description polly -l pl.UTF-8
341 Polly to wysokopoziomowy optymalizator i infrastruktura LLVM-a do
342 optymalizacji pętli i położenia danych. Wykorzystuje abstrakcyjną
343 reprezentację matematyczną opartą na wielościanach całkowitoliczbowych
344 do analizy i optymalizacji wzorców dostępu do pamięci przez program.
347 Summary: Header files for LLVM Polly optimization infrastructure
348 Summary(pl.UTF-8): Pliki nagłówkowe infrastruktury optymalizacji LLVM-a Polly
349 Group: Development/Libraries
350 URL: https://polly.llvm.org/
351 Requires: %{name}-devel = %{version}-%{release}
352 Requires: %{name}-polly = %{version}-%{release}
354 %description polly-devel
355 Header files for LLVM Polly optimization infrastructure.
357 %description polly-devel -l pl.UTF-8
358 Pliki nagłówkowe infrastruktury optymalizacji LLVM-a Polly.
361 Summary: A C language family frontend for LLVM
362 Summary(pl.UTF-8): Frontend LLVM-a do języków z rodziny C
363 Group: Development/Languages
364 URL: https://clang.llvm.org/
365 Requires: %{name} = %{version}-%{release}
366 Requires: clang-libs = %{version}-%{release}
368 %description -n clang
369 clang: noun 1. A loud, resonant, metallic sound. 2. The strident call
370 of a crane or goose. 3. C-language family front-end toolkit.
372 The goal of the Clang project is to create a new C, C++, Objective C
373 and Objective C++ front-end for the LLVM compiler. Its tools are built
374 as libraries and designed to be loosely-coupled and extendable.
376 %description -n clang -l pl.UTF-8
377 clang (z angielskiego): 1. głośny, rezonujący, metaliczny dźwięk; 2.
378 piskliwy odgłos żurawia lub gęsi; 3. narzędzia frontendowe dla języków
381 Celem projektu Clang jest utworzenie nowego frontendu dla kompilatora
382 LLVM do języków C, C++, Objective C i Objective C++. Narzędzia są
383 budowane jako biblioteki i zaprojektowane z myślą o swobodnym łączeniu
386 %package -n clang-multilib
387 Summary: A C language family frontend for LLVM - 32-bit support
388 Summary(pl.UTF-8): Frontend LLVM-a do języków z rodziny C - obsługa binariów 32-bitowych
389 Group: Development/Languages
390 URL: https://clang.llvm.org/
391 Requires: clang = %{version}-%{release}
393 %description -n clang-multilib
394 clang: noun 1. A loud, resonant, metallic sound. 2. The strident call
395 of a crane or goose. 3. C-language family front-end toolkit.
397 The goal of the Clang project is to create a new C, C++, Objective C
398 and Objective C++ front-end for the LLVM compiler. Its tools are built
399 as libraries and designed to be loosely-coupled and extendable.
401 This package contains the C compiler support for producing 32-bit
402 programs on 64-bit host.
404 %description -n clang-multilib -l pl.UTF-8
405 clang (z angielskiego): 1. głośny, rezonujący, metaliczny dźwięk; 2.
406 piskliwy odgłos żurawia lub gęsi; 3. narzędzia frontendowe dla języków
409 Celem projektu Clang jest utworzenie nowego frontendu dla kompilatora
410 LLVM do języków C, C++, Objective C i Objective C++. Narzędzia są
411 budowane jako biblioteki i zaprojektowane z myślą o swobodnym łączeniu
414 Ten pakiet zawiera rozszerzenie kompilatora C o obsługę tworzenia
415 programów 32-bitowych na maszynie 64-bitowej.
417 %package -n clang-libs
418 Summary: Clang shared libraries
419 Summary(pl.UTF-8): Biblioteki współdzielone Clanga
421 URL: https://clang.llvm.org/
423 %description -n clang-libs
424 Clang shared libraries.
426 %description -n clang-libs -l pl.UTF-8
427 Biblioteki współdzielone Clanga.
429 %package -n clang-devel
430 Summary: Header files for Clang
431 Summary(pl.UTF-8): Pliki nagłówkowe Clanga
432 Group: Development/Languages
433 URL: https://clang.llvm.org/
434 Requires: %{name}-devel = %{version}-%{release}
435 Requires: clang = %{version}-%{release}
436 %{?with_polly:Requires: llvm-polly-devel = %{version}-%{release}}
438 %description -n clang-devel
439 This package contains header files for the Clang compiler.
441 %description -n clang-devel -l pl.UTF-8
442 Ten pakiet zawiera pliki nagłówkowe kompilatora Clang.
444 %package -n clang-doc
445 Summary: Documentation for Clang
446 Summary(pl.UTF-8): Dokumentacja do Clanga
447 URL: https://clang.llvm.org/
449 Requires: %{name} = %{version}-%{release}
451 %description -n clang-doc
452 Documentation for the Clang compiler front-end.
454 %description -n clang-doc -l pl.UTF-8
455 Dokumentacja do frontendu kompilatora Clang.
457 %package -n clang-apidocs
458 Summary: API documentation for Clang
459 Summary(pl.UTF-8): Dokumentacja API Clanga
460 URL: https://clang.llvm.org/
461 Group: Development/Languages
462 Requires: clang-doc = %{version}-%{release}
464 %description -n clang-apidocs
465 API documentation for the Clang compiler.
467 %description -n clang-apidocs -l pl.UTF-8
468 Dokumentacja API kompilatora Clang.
470 %package -n clang-analyzer
471 Summary: A source code analysis framework
472 Summary(pl.UTF-8): Szkielet do analizy kodu źródłowego
473 Group: Development/Languages
474 URL: https://clang-analyzer.llvm.org/
475 Requires: clang = %{version}-%{release}
476 # not picked up automatically since files are currently not instaled
477 # in standard Python hierarchies yet
480 %description -n clang-analyzer
481 The Clang Static Analyzer consists of both a source code analysis
482 framework and a standalone tool that finds bugs in C and Objective-C
483 programs. The standalone tool is invoked from the command-line, and is
484 intended to run in tandem with a build of a project or code base.
486 %description -n clang-analyzer -l pl.UTF-8
487 Clang Static Analyzer składa się ze szkieletu do analizy kodu
488 źródłowego oraz samodzielnego narzędzia znajdującego błędy w
489 programach w C i C++. Narzędzie jest wywoływane z linii poleceń, z
490 myślą o uruchamianiu wraz z kompilacją projektu lub kodu.
492 %package -n clang-tools-extra
493 Summary: Extra tools for Clang
494 Summary(pl.UTF-8): Dodatkowe narzędzia do kompilatora Clang
495 Group: Development/Tools
496 URL: https://clang.llvm.org/docs/ClangTools.html
497 Requires: clang = %{version}-%{release}
499 %description -n clang-tools-extra
500 Extra tools for Clang.
502 %description -n clang-tools-extra -l pl.UTF-8
503 Dodatkowe narzędzia do kompilatora Clang.
505 %package -n bash-completion-clang
506 Summary: Bash completion for clang command
507 Summary(pl.UTF-8): Bashowe dopełnianie składni polecenia clang
508 Group: Applications/Shells
509 Requires: bash-completion >= 2.0
510 Requires: clang = %{version}-%{release}
512 %description -n bash-completion-clang
513 Bash completion for clang command.
515 %description -n bash-completion-clang -l pl.UTF-8
516 Bashowe dopełnianie składni polecenia clang.
519 Summary: Fortran frontend for LLVM
520 Summary(pl.UTF-8): Frontend LLVM-a do Fortranu
521 Group: Development/Languages
522 URL: http://flang.llvm.org/
523 Requires: %{name}-mlir = %{version}-%{release}
525 %description -n flang
526 Flang is a ground-up implementation of a Fortran front end written in
529 %description -n flang -l pl.UTF-8
530 Flang to napisana od podstaw we współczesnym C++ implementacja
531 frontendu do Fortranu.
533 %package -n flang-devel
534 Summary: Fortran frontend for LLVM - development files
535 Summary(pl.UTF-8): Frontend LLVM-a do Fortranu - pliki programistyczne
536 Group: Development/Languages
537 URL: http://flang.llvm.org/
538 Requires: %{name}-mlir-devel = %{version}-%{release}
539 Requires: flang-devel = %{version}-%{release}
541 %description -n flang-devel
542 Development files for LLVM Fortran frontend.
544 %description -n flang-devel -l pl.UTF-8
545 Pliki prosramistyczne frontendu LLVM do Fortranu.
548 Summary: The LLVM linker
549 Summary(pl.UTF-8): Konsolidator z projektu LLVM
550 Group: Development/Libraries
551 URL: https://lld.llvm.org/
552 Requires: %{name} = %{version}-%{release}
555 lld is a new set of modular code for creating linker tools.
557 %description -n lld -l pl.UTF-8
558 lld to nowy zbiór modularnego kodu do tworzenia narzędzi
561 %package -n lld-devel
562 Summary: Development files for LLD linker tools
563 Summary(pl.UTF-8): Pliki programistyczne narzędzi konsolidujących LLD
564 Group: Development/Tools
565 URL: https://lld.llvm.org/
566 Requires: %{name}-devel = %{version}-%{release}
567 Requires: xar-devel >= 1.6
569 %description -n lld-devel
570 Development files for LLD linker tools.
572 %description -n lld-devel -l pl.UTF-8
573 Pliki programistyczne narzędzi konsolidujących LLD.
576 Summary: Next generation high-performance debugger
577 Summary(pl.UTF-8): Wydajny debugger nowej generacji
578 Group: Development/Debuggers
579 URL: https://lldb.llvm.org/
580 Requires: %{name} = %{version}-%{release}
581 Requires: python3-six
584 LLDB is a next generation, high-performance debugger. It is built as a
585 set of reusable components which highly leverage existing libraries in
586 the larger LLVM Project, such as the Clang expression parser and LLVM
589 %description -n lldb -l pl.UTF-8
590 LLDB to wydajny debugger nowej generacji. Jest zbudowany w oparciu o
591 komponenty wielokrotnego użytku, wykorzystujące istniejące biblioteki
592 w projekcie LLVM, takie jak analizator wyrażeń kompilatora Clang oraz
595 %package -n lldb-devel
596 Summary: Development files for LLDB debugger
597 Summary(pl.UTF-8): Pliki programistyczne debuggera LLDB
598 Group: Development/Libraries
599 URL: https://lldb.llvm.org/
600 Requires: %{name}-devel = %{version}-%{release}
601 Requires: clang-devel = %{version}-%{release}
602 Requires: lldb = %{version}-%{release}
604 %description -n lldb-devel
605 Development files for LLDB debugger.
607 %description -n lldb-devel -l pl.UTF-8
608 Pliki programistyczne debuggera LLDB.
611 Summary: OCaml binding for LLVM
612 Summary(pl.UTF-8): Wiązanie OCamla do LLVM-a
614 Requires: %{name} = %{version}-%{release}
616 %requires_eq ocaml-runtime
620 OCaml binding for LLVM.
622 %description ocaml -l pl.UTF-8
623 Wiązanie OCamla do LLVM-a.
626 Summary: Development files for LLVM OCaml binding
627 Summary(pl.UTF-8): Pliki programistyczne wiązania OCamla do LLVM-a
628 Group: Development/Libraries
629 Requires: %{name}-devel = %{version}-%{release}
630 Requires: %{name}-ocaml = %{version}-%{release}
632 %description ocaml-devel
633 The llvm-ocaml-devel package contains libraries and signature files
634 for developing applications that use llvm-ocaml binding.
636 %description ocaml-devel -l pl.UTF-8
637 Ten pakiet zawiera biblioteki i pliki sygnatur do tworzenia aplikacji
638 wykorzystujących wiązanie llvm-ocaml.
641 Summary: Documentation for LLVM's OCaml binding
642 Summary(pl.UTF-8): Dokumentacja wiązania OCamla do LLVM-a
644 Requires: %{name}-ocaml = %{version}-%{release}
646 %description ocaml-doc
647 HTML documentation for LLVM's OCaml binding.
649 %description ocaml-doc -l pl.UTF-8
650 Dokumentacja HTML wiązania OCamla do LLVM-a.
653 Summary: Optimization records visualization tools
654 Summary(pl.UTF-8): Narzędzia do wizualizacji rekordów optymalizacji
655 Group: Development/Tools
656 Requires: %{name} = %{version}
659 %description opt-viewer
660 Optimization records visualization tools.
662 %description opt-viewer -l pl.UTF-8
663 Narzędzia do wizualizacji rekordów optymalizacji.
665 %package -n vim-plugin-clang
666 Summary: Clang format and rename integration for Vim
667 Summary(pl.UTF-8): Integracja narzędzi Clang do formatowania i zmiany nazw z Vimem
668 Group: Applications/Editors/Vim
669 Requires: vim-rt >= 4:7.0
672 %description -n vim-plugin-clang
673 Clang format and rename integration for Vim.
675 %description -n vim-plugin-clang -l pl.UTF-8
676 Integracja narzędzi Clang do formatowania i zmiany nazw z Vimem.
679 %setup -q -n %{name}-%{version}.src -a1 %{?with_rt:-a2} %{?with_lldb:-a3} %{?with_polly:-a4} -a5 -a6 %{?with_flang:-a7} %{?with_mlir:-a8}
680 %{__mv} clang-%{version}.src tools/clang
681 %{?with_rt:%{__mv} compiler-rt-%{version}.src projects/compiler-rt}
682 %{?with_lldb:%{__mv} lldb-%{version}.src tools/lldb}
683 %{?with_polly:%{__mv} polly-%{version}.src tools/polly}
684 %{__mv} clang-tools-extra-%{version}.src tools/clang/tools/extra
685 %{__mv} lld-%{version}.src tools/lld
687 %{__mv} flang-%{version}.src tools/flang
690 %{__mv} mlir tools/mlir
708 grep -rl /usr/bin/env projects tools utils | xargs sed -i -e '1{
709 s,^#!.*bin/env python3\?,#!%{__python3},
710 s,^#!.*bin/env perl,#!%{__perl},
713 find -name '*.py' -print0 | xargs -0 sed -i -e '1{
714 s,^#!.*bin/python.*,#!%{__python3},
718 %{__sed} -i -e '1s,/usr/bin/env bash,/bin/bash,' tools/flang/tools/f18/flang.in
724 # Disabling assertions now, rec. by pure and needed for OpenGTL
725 # TESTFIX no PIC on ix86: http://llvm.org/bugs/show_bug.cgi?id=3801
727 CPPFLAGS="%{rpmcppflags} -D_FILE_OFFSET_BITS=64"
730 export CFLAGS="%{rpmcflags} -g0"
731 export CXXFLAGS="%{rpmcxxflags} -g0"
732 export LDFLAGS="%{rpmldflags} -Wl,--reduce-memory-overheads"
736 -DBUILD_SHARED_LIBS:BOOL=OFF \
737 -DENABLE_LINKER_BUILD_ID:BOOL=ON \
738 -DLLVM_BINDINGS_LIST:LIST="%{?with_ocaml:ocaml}" \
739 -DLLVM_BINUTILS_INCDIR:STRING=%{_includedir} \
740 -DLLVM_BUILD_LLVM_DYLIB:BOOL=ON \
741 -DLLVM_ENABLE_ASSERTIONS:BOOL=OFF \
742 -DLLVM_TOOLS_INSTALL_DIR=%(realpath -m "--relative-to=%{_prefix}" "%{_bindir}") \
744 -DLLVM_ENABLE_DOXYGEN:BOOL=ON \
746 %{?with_cxxmodules:-DLLVM_ENABLE_MODULES:BOOL=ON} \
747 -DLLVM_ENABLE_PIC:BOOL=ON \
748 -DLLVM_ENABLE_RTTI:BOOL=ON \
750 -DLLVM_ENABLE_SPHINX:BOOL=ON \
752 -DLLVM_INCLUDE_BENCHMARKS:BOOL=OFF \
753 %{?with_z3:-DLLVM_ENABLE_Z3_SOLVER:BOOL=ON} \
754 %if "%{_lib}" == "lib64"
755 -DLLVM_LIBDIR_SUFFIX:STRING=64 \
757 %if "%{_lib}" == "libx32"
758 -DLLVM_LIBDIR_SUFFIX:STRING=x32 \
760 -DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
761 -DLLVM_TARGET_ARCH:STRING=%{_target_base_arch} \
762 -DLLVM_DEFAULT_TARGET_TRIPLE:STRING=%{_target_platform} \
764 -DLLVM_PARALLEL_LINK_JOBS:STRING=1 \
766 -DLLVM_TARGETS_TO_BUILD="%{targets_to_build}" \
768 %{cmake_on_off target_nvptx POLLY_ENABLE_GPGPU_CODEGEN} \
770 -DSPHINX_WARNINGS_AS_ERRORS=OFF \
773 -DCOMPILER_RT_BUILD_MEMPROF:BOOL=OFF
779 OPTIMIZE_OPTION="%{rpmcflags} %{rpmcppflags}"
782 %{__make} check 2>&1 | tee llvm-testlog.txt
783 %{__make} -C tools/clang test 2>&1 | tee clang-testlog.txt
787 %{__make} -C docs docs-llvm-html
788 %{__make} -C docs docs-llvm-man
790 %{__make} -C docs ocaml_doc
792 %{__make} -C tools/clang/docs docs-clang-html
793 %{__make} -C tools/clang/docs docs-clang-man
794 %{__make} -C tools/lld/docs docs-lld-html
795 # workaround failed import of _lldb
796 cp -pnL %{_lib}/liblldb.so tools/lldb/docs/lldb/_lldb.so
798 LD_LIBRARY_PATH=$(pwd)/%{_lib} \
799 -C tools/lldb/docs lldb-python-doc-package
800 %{__make} -C tools/lldb/docs lldb-cpp-doc
804 rm -rf $RPM_BUILD_ROOT
806 %{__make} -j1 -C build install \
807 DESTDIR=$RPM_BUILD_ROOT
809 # only some .pyc files are created by make install
810 %py3_comp $RPM_BUILD_ROOT%{py3_sitedir}
811 %py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir}
813 # Adjust static analyzer installation (see -libexecdir patch)
814 abs_ca_libexecdir="%{_libexecdir}/clang-analyzer"
815 rel_ca_libexecdir="${abs_ca_libexecdir#%{_prefix}}"
816 %{__sed} -i -e "s,/\.\./libexec/,/..${rel_ca_libexecdir}/," $RPM_BUILD_ROOT%{_bindir}/scan-build
817 %py3_comp $RPM_BUILD_ROOT%{_datadir}/scan-view
818 %py3_ocomp $RPM_BUILD_ROOT%{_datadir}/scan-view
820 # not installed by cmake buildsystem
821 install build/bin/pp-trace $RPM_BUILD_ROOT%{_bindir}
824 cp -p build/docs/man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
825 # these tools are not installed
826 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/{FileCheck,clang-tblgen,lldb-tblgen}.1
828 echo '.so llvm-ar.1' > $RPM_BUILD_ROOT%{_mandir}/man1/llvm-ranlib.1
831 # Move documentation back to build directory
834 %{__mv} $RPM_BUILD_ROOT%{_docdir}/llvm/ocaml-html ocamldocs
837 # and separate the apidoc
840 cp -a build/tools/clang/docs/html clang-apidoc
843 # And prepare Clang documentation
845 install -d clang-docs
846 for f in LICENSE.TXT NOTES.txt README.txt; do
847 ln tools/clang/$f clang-docs
850 install -d $RPM_BUILD_ROOT%{bash_compdir}
851 %{__mv} $RPM_BUILD_ROOT%{_datadir}/clang/bash-autocomplete.sh $RPM_BUILD_ROOT%{bash_compdir}/clang
853 %{__rm} $RPM_BUILD_ROOT%{_bindir}/c-index-test
855 %{__rm} $RPM_BUILD_ROOT%{_datadir}/clang/clang-format-bbedit.applescript
857 %{?with_lldb:%{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/{,__pycache__/}six*.py*}
858 # it seems it is used internally by an extra clang tool
859 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libfindAllSymbols.a
861 # disable completeness check incompatible with split packaging
862 %{__sed} -i -e '/^foreach(target .*IMPORT_CHECK_TARGETS/,/^endforeach/d; /^unset(_IMPORT_CHECK_TARGETS)/d' \
863 $RPM_BUILD_ROOT%{_libdir}/cmake/clang/ClangTargets.cmake \
865 $RPM_BUILD_ROOT%{_libdir}/cmake/flang/FlangTargets.cmake \
867 $RPM_BUILD_ROOT%{_libdir}/cmake/lld/LLDTargets.cmake \
868 $RPM_BUILD_ROOT%{_libdir}/cmake/llvm/LLVMExports.cmake \
870 $RPM_BUILD_ROOT%{_libdir}/cmake/mlir/MLIRTargets.cmake
874 rm -rf $RPM_BUILD_ROOT
876 %post libs -p /sbin/ldconfig
877 %postun libs -p /sbin/ldconfig
879 %post mlir -p /sbin/ldconfig
880 %postun mlir -p /sbin/ldconfig
882 %post -n clang-libs -p /sbin/ldconfig
883 %postun -n clang-libs -p /sbin/ldconfig
885 %post -n lldb -p /sbin/ldconfig
886 %postun -n lldb -p /sbin/ldconfig
889 %defattr(644,root,root,755)
890 %doc CREDITS.TXT LICENSE.TXT README.txt %{?with_tests:llvm-testlog.txt}
891 %attr(755,root,root) %{_bindir}/bugpoint
892 %attr(755,root,root) %{_bindir}/dsymutil
893 %attr(755,root,root) %{_bindir}/llc
894 %attr(755,root,root) %{_bindir}/lli
895 %attr(755,root,root) %{_bindir}/llvm-addr2line
896 %attr(755,root,root) %{_bindir}/llvm-ar
897 %attr(755,root,root) %{_bindir}/llvm-as
898 %attr(755,root,root) %{_bindir}/llvm-bcanalyzer
899 %attr(755,root,root) %{_bindir}/llvm-bitcode-strip
900 %attr(755,root,root) %{_bindir}/llvm-c-test
901 %attr(755,root,root) %{_bindir}/llvm-cat
902 %attr(755,root,root) %{_bindir}/llvm-cfi-verify
903 %attr(755,root,root) %{_bindir}/llvm-cov
904 %attr(755,root,root) %{_bindir}/llvm-cvtres
905 %attr(755,root,root) %{_bindir}/llvm-cxxdump
906 %attr(755,root,root) %{_bindir}/llvm-cxxfilt
907 %attr(755,root,root) %{_bindir}/llvm-cxxmap
908 %attr(755,root,root) %{_bindir}/llvm-debuginfod-find
909 %attr(755,root,root) %{_bindir}/llvm-diff
910 %attr(755,root,root) %{_bindir}/llvm-dis
911 %attr(755,root,root) %{_bindir}/llvm-dlltool
912 %attr(755,root,root) %{_bindir}/llvm-dwarfdump
913 %attr(755,root,root) %{_bindir}/llvm-dwp
914 %attr(755,root,root) %{_bindir}/llvm-exegesis
915 %attr(755,root,root) %{_bindir}/llvm-extract
916 %attr(755,root,root) %{_bindir}/llvm-gsymutil
917 %attr(755,root,root) %{_bindir}/llvm-ifs
918 %attr(755,root,root) %{_bindir}/llvm-install-name-tool
919 %attr(755,root,root) %{_bindir}/llvm-jitlink
920 %attr(755,root,root) %{_bindir}/llvm-lib
921 %attr(755,root,root) %{_bindir}/llvm-libtool-darwin
922 %attr(755,root,root) %{_bindir}/llvm-link
923 %attr(755,root,root) %{_bindir}/llvm-lipo
924 %attr(755,root,root) %{_bindir}/llvm-lto
925 %attr(755,root,root) %{_bindir}/llvm-lto2
926 %attr(755,root,root) %{_bindir}/llvm-mc
927 %attr(755,root,root) %{_bindir}/llvm-mca
928 %attr(755,root,root) %{_bindir}/llvm-ml
929 %attr(755,root,root) %{_bindir}/llvm-modextract
930 %attr(755,root,root) %{_bindir}/llvm-mt
931 %attr(755,root,root) %{_bindir}/llvm-nm
932 %attr(755,root,root) %{_bindir}/llvm-objcopy
933 %attr(755,root,root) %{_bindir}/llvm-objdump
934 %attr(755,root,root) %{_bindir}/llvm-opt-report
935 %attr(755,root,root) %{_bindir}/llvm-otool
936 %attr(755,root,root) %{_bindir}/llvm-pdbutil
937 %attr(755,root,root) %{_bindir}/llvm-profdata
938 %attr(755,root,root) %{_bindir}/llvm-profgen
939 %attr(755,root,root) %{_bindir}/llvm-ranlib
940 %attr(755,root,root) %{_bindir}/llvm-rc
941 %attr(755,root,root) %{_bindir}/llvm-readelf
942 %attr(755,root,root) %{_bindir}/llvm-readobj
943 %attr(755,root,root) %{_bindir}/llvm-reduce
944 %attr(755,root,root) %{_bindir}/llvm-rtdyld
945 %attr(755,root,root) %{_bindir}/llvm-sim
946 %attr(755,root,root) %{_bindir}/llvm-size
947 %attr(755,root,root) %{_bindir}/llvm-split
948 %attr(755,root,root) %{_bindir}/llvm-strip
949 %attr(755,root,root) %{_bindir}/llvm-stress
950 %attr(755,root,root) %{_bindir}/llvm-strings
951 %attr(755,root,root) %{_bindir}/llvm-symbolizer
952 %attr(755,root,root) %{_bindir}/llvm-tapi-diff
953 %attr(755,root,root) %{_bindir}/llvm-tblgen
954 %attr(755,root,root) %{_bindir}/llvm-tli-checker
955 %attr(755,root,root) %{_bindir}/llvm-undname
956 %attr(755,root,root) %{_bindir}/llvm-windres
957 %attr(755,root,root) %{_bindir}/llvm-xray
958 %attr(755,root,root) %{_bindir}/opt
959 %attr(755,root,root) %{_bindir}/sancov
960 %attr(755,root,root) %{_bindir}/sanstats
961 %attr(755,root,root) %{_bindir}/split-file
962 %attr(755,root,root) %{_bindir}/verify-uselistorder
964 %{_mandir}/man1/bugpoint.1*
965 %{_mandir}/man1/dsymutil.1*
966 %{_mandir}/man1/lit.1*
967 %{_mandir}/man1/llc.1*
968 %{_mandir}/man1/lli.1*
969 %{_mandir}/man1/llvm-addr2line.1*
970 %{_mandir}/man1/llvm-ar.1*
971 %{_mandir}/man1/llvm-as.1*
972 %{_mandir}/man1/llvm-bcanalyzer.1*
973 %{_mandir}/man1/llvm-cov.1*
974 %{_mandir}/man1/llvm-cxxfilt.1*
975 %{_mandir}/man1/llvm-cxxmap.1*
976 %{_mandir}/man1/llvm-diff.1*
977 %{_mandir}/man1/llvm-dis.1*
978 %{_mandir}/man1/llvm-dwarfdump.1*
979 %{_mandir}/man1/llvm-exegesis.1*
980 %{_mandir}/man1/llvm-extract.1*
981 %{_mandir}/man1/llvm-install-name-tool.1*
982 %{_mandir}/man1/llvm-lib.1*
983 %{_mandir}/man1/llvm-libtool-darwin.1*
984 %{_mandir}/man1/llvm-link.1*
985 %{_mandir}/man1/llvm-lipo.1*
986 %{_mandir}/man1/llvm-locstats.1*
987 %{_mandir}/man1/llvm-mca.1*
988 %{_mandir}/man1/llvm-nm.1*
989 %{_mandir}/man1/llvm-objcopy.1*
990 %{_mandir}/man1/llvm-objdump.1*
991 %{_mandir}/man1/llvm-otool.1*
992 %{_mandir}/man1/llvm-pdbutil.1*
993 %{_mandir}/man1/llvm-profdata.1*
994 %{_mandir}/man1/llvm-profgen.1*
995 %{_mandir}/man1/llvm-ranlib.1*
996 %{_mandir}/man1/llvm-readelf.1*
997 %{_mandir}/man1/llvm-readobj.1*
998 %{_mandir}/man1/llvm-size.1*
999 %{_mandir}/man1/llvm-stress.1*
1000 %{_mandir}/man1/llvm-strings.1*
1001 %{_mandir}/man1/llvm-strip.1*
1002 %{_mandir}/man1/llvm-symbolizer.1*
1003 %{_mandir}/man1/llvm-tblgen.1*
1004 %{_mandir}/man1/llvm-tli-checker.1*
1005 %{_mandir}/man1/opt.1*
1006 %{_mandir}/man1/tblgen.1*
1010 %defattr(644,root,root,755)
1011 %attr(755,root,root) %{_libdir}/LLVMgold.so
1012 %attr(755,root,root) %{_libdir}/libLLVM-%{abi}.so
1013 # non-soname symlink
1014 %attr(755,root,root) %{_libdir}/libLLVM-%{version}.so
1015 %attr(755,root,root) %{_libdir}/libLTO.so.14
1016 %attr(755,root,root) %{_libdir}/libRemarks.so.14
1017 %attr(755,root,root) %{_libdir}/libclang-cpp.so.14
1020 %defattr(644,root,root,755)
1021 %attr(755,root,root) %{_bindir}/llvm-config
1022 %attr(755,root,root) %{_libdir}/libLLVM.so
1023 %attr(755,root,root) %{_libdir}/libLTO.so
1024 %attr(755,root,root) %{_libdir}/libRemarks.so
1025 %attr(755,root,root) %{_libdir}/libclang-cpp.so
1026 %{_libdir}/libLLVM*.a
1028 %{_includedir}/llvm-c
1029 %{_libdir}/cmake/llvm
1031 %{_mandir}/man1/llvm-config.1*
1035 #%defattr(644,root,root,755)
1039 %defattr(644,root,root,755)
1045 %defattr(644,root,root,755)
1046 %attr(755,root,root) %{_bindir}/mlir-cpu-runner
1047 %attr(755,root,root) %{_bindir}/mlir-linalg-ods-yaml-gen
1048 %attr(755,root,root) %{_bindir}/mlir-lsp-server
1049 %attr(755,root,root) %{_bindir}/mlir-opt
1050 %attr(755,root,root) %{_bindir}/mlir-pdll
1051 %attr(755,root,root) %{_bindir}/mlir-reduce
1052 %attr(755,root,root) %{_bindir}/mlir-tblgen
1053 %attr(755,root,root) %{_bindir}/mlir-translate
1054 %attr(755,root,root) %{_libdir}/libMLIR.so.14
1055 %attr(755,root,root) %{_libdir}/libmlir_async_runtime.so.14
1056 %attr(755,root,root) %{_libdir}/libmlir_c_runner_utils.so.14
1057 %attr(755,root,root) %{_libdir}/libmlir_runner_utils.so.14
1059 %{_mandir}/man1/mlir-tblgen.1*
1063 %defattr(644,root,root,755)
1064 %attr(755,root,root) %{_libdir}/libMLIR.so
1065 %attr(755,root,root) %{_libdir}/libmlir_async_runtime.so
1066 %attr(755,root,root) %{_libdir}/libmlir_c_runner_utils.so
1067 %attr(755,root,root) %{_libdir}/libmlir_runner_utils.so
1068 %{_libdir}/libMLIR*.a
1070 %{_includedir}/mlir-c
1071 %{_libdir}/cmake/mlir
1076 %defattr(644,root,root,755)
1077 %doc tools/polly/{CREDITS.txt,LICENSE.TXT,README} tools/polly/www/{bugs,changelog,contributors}.html
1078 %attr(755,root,root) %{_libdir}/LLVMPolly.so
1079 %{?with_target_nvptx:%attr(755,root,root) %{_libdir}/libGPURuntime.so}
1082 %defattr(644,root,root,755)
1083 %{_libdir}/libPolly.a
1084 %{_libdir}/libPollyISL.a
1085 %{?with_target_nvptx:%{_libdir}/libPollyPPCG.a}
1086 %{_includedir}/polly
1087 %{_libdir}/cmake/polly
1091 %defattr(644,root,root,755)
1092 %doc clang-docs/{LICENSE.TXT,NOTES.txt,README.txt} %{?with_tests:clang-testlog.txt}
1093 %attr(755,root,root) %{_bindir}/clang
1094 %attr(755,root,root) %{_bindir}/clang++
1095 %attr(755,root,root) %{_bindir}/clang-%{abi}
1096 %attr(755,root,root) %{_bindir}/clang-check
1097 %attr(755,root,root) %{_bindir}/clang-cl
1098 %attr(755,root,root) %{_bindir}/clang-cpp
1099 %attr(755,root,root) %{_bindir}/clang-doc
1100 %attr(755,root,root) %{_bindir}/clang-format
1101 %attr(755,root,root) %{_bindir}/clang-linker-wrapper
1102 %attr(755,root,root) %{_bindir}/clang-nvlink-wrapper
1103 %attr(755,root,root) %{_bindir}/clang-offload-bundler
1104 %attr(755,root,root) %{_bindir}/clang-offload-wrapper
1105 %attr(755,root,root) %{_bindir}/clang-repl
1106 %attr(755,root,root) %{_bindir}/git-clang-format
1107 %dir %{_libdir}/clang
1108 %dir %{_libdir}/clang/%{version}
1109 %{_libdir}/clang/%{version}/include
1111 %ifarch %{x8664} x32 aarch64
1112 %dir %{_libdir}/clang/%{version}/bin
1113 %attr(755,root,root) %{_libdir}/clang/%{version}/bin/hwasan_symbolize
1115 %ifarch %{ix86} %{x8664} aarch64 armv7hl armv7hnl
1116 %dir %{_libdir}/clang/%{version}/lib
1117 %dir %{_libdir}/clang/%{version}/lib/linux
1118 %dir %{_libdir}/clang/%{version}/share
1121 %if %{with multilib}
1122 %dir %{_libdir}/clang/%{version}/lib
1123 %dir %{_libdir}/clang/%{version}/lib/linux
1124 %dir %{_libdir}/clang/%{version}/share
1128 %{_libdir}/clang/%{version}/lib/linux/clang_rt.*-i*86.o
1129 %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-i*86.a
1130 %attr(755,root,root) %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-i*86.so
1133 %{_libdir}/clang/%{version}/lib/linux/clang_rt.*-x86_64.o
1134 %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-x86_64.a
1135 %attr(755,root,root) %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-x86_64.so
1136 %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-x86_64.a.syms
1139 %{_libdir}/clang/%{version}/lib/linux/clang_rt.*-aarch64.o
1140 %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-aarch64.a
1141 %attr(755,root,root) %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-aarch64.so
1142 %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-aarch64.a.syms
1144 %ifarch armv7hl armv7hnl
1145 %{_libdir}/clang/%{version}/lib/linux/clang_rt.*-armhf.o
1146 %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-armhf.a
1147 %attr(755,root,root) %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-armhf.so
1148 %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-armhf.a.syms
1150 %ifarch %{ix86} %{x8664} %{arm} aarch64 mips mips64 ppc64
1151 %{_libdir}/clang/%{version}/share/asan_ignorelist.txt
1153 %ifarch %{ix86} %{x8664} mips64 aarch64 armv7hl armv7hnl
1154 %{_libdir}/clang/%{version}/share/cfi_ignorelist.txt
1156 %ifarch %{x8664} aarch64 mips64
1157 %{_libdir}/clang/%{version}/share/dfsan_abilist.txt
1158 %{_libdir}/clang/%{version}/share/msan_ignorelist.txt
1160 %ifarch %{x8664} aarch64
1161 %{_libdir}/clang/%{version}/share/hwasan_ignorelist.txt
1164 %if %{with multilib}
1165 %{_libdir}/clang/%{version}/share/asan_ignorelist.txt
1166 %{_libdir}/clang/%{version}/share/cfi_ignorelist.txt
1167 %{_libdir}/clang/%{version}/share/dfsan_abilist.txt
1168 %{_libdir}/clang/%{version}/share/msan_ignorelist.txt
1169 %{_libdir}/clang/%{version}/share/hwasan_ignorelist.txt
1173 %dir %{_datadir}/clang
1174 %{_datadir}/clang/clang-format-diff.py
1176 %if %{with rt} && %{with multilib}
1177 %ifarch %{x8664} x32
1178 %files -n clang-multilib
1179 %defattr(644,root,root,755)
1180 %{_libdir}/clang/%{version}/lib/linux/clang_rt.*-i386.o
1181 %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-i386.a
1182 %attr(755,root,root) %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-i386.so
1185 %{_libdir}/clang/%{version}/lib/linux/clang_rt.*-x86_64.o
1186 %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-x86_64.a
1187 %attr(755,root,root) %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-x86_64.so
1188 %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-x86_64.a.syms
1192 %files -n clang-libs
1193 %defattr(644,root,root,755)
1194 %attr(755,root,root) %{_libdir}/libclang.so.13
1195 %attr(755,root,root) %{_libdir}/libclang.so.*.*.*
1197 %files -n clang-devel
1198 %defattr(644,root,root,755)
1199 %attr(755,root,root) %{_libdir}/libclang.so
1200 %{_libdir}/libclang*.a
1201 %{_includedir}/clang
1202 %{_includedir}/clang-c
1203 %{_includedir}/clang-tidy
1204 %{_libdir}/cmake/clang
1207 %defattr(644,root,root,755)
1208 %doc tools/clang/docs/*.{html,png,txt}
1211 %files -n clang-apidocs
1212 %defattr(644,root,root,755)
1216 %files -n clang-analyzer
1217 %defattr(644,root,root,755)
1218 %dir %{_libexecdir}/clang-analyzer
1220 %attr(755,root,root) %{_bindir}/scan-build
1221 %attr(755,root,root) %{_libexecdir}/clang-analyzer/c++-analyzer
1222 %attr(755,root,root) %{_libexecdir}/clang-analyzer/ccc-analyzer
1223 %{_datadir}/scan-build
1224 %{_mandir}/man1/scan-build.1*
1226 %attr(755,root,root) %{_bindir}/analyze-build
1227 %attr(755,root,root) %{_bindir}/intercept-build
1228 %attr(755,root,root) %{_bindir}/scan-build-py
1229 %attr(755,root,root) %{_bindir}/scan-view
1230 %attr(755,root,root) %{_libexecdir}/clang-analyzer/analyze-c++
1231 %attr(755,root,root) %{_libexecdir}/clang-analyzer/analyze-cc
1232 %attr(755,root,root) %{_libexecdir}/clang-analyzer/intercept-c++
1233 %attr(755,root,root) %{_libexecdir}/clang-analyzer/intercept-cc
1234 %{_prefix}/lib/libear
1235 %{_prefix}/lib/libscanbuild
1236 %{_datadir}/scan-view
1238 %files -n clang-tools-extra
1239 %defattr(644,root,root,755)
1240 %doc tools/clang/tools/extra/{CODE_OWNERS.TXT,README.txt}
1241 %attr(755,root,root) %{_bindir}/clang-apply-replacements
1242 %attr(755,root,root) %{_bindir}/clang-change-namespace
1243 %attr(755,root,root) %{_bindir}/clang-extdef-mapping
1244 %attr(755,root,root) %{_bindir}/clang-include-fixer
1245 %attr(755,root,root) %{_bindir}/clang-move
1246 %attr(755,root,root) %{_bindir}/clang-query
1247 %attr(755,root,root) %{_bindir}/clang-refactor
1248 %attr(755,root,root) %{_bindir}/clang-rename
1249 %attr(755,root,root) %{_bindir}/clang-reorder-fields
1250 %attr(755,root,root) %{_bindir}/clang-scan-deps
1251 %attr(755,root,root) %{_bindir}/clang-tidy
1252 %attr(755,root,root) %{_bindir}/clangd
1253 %attr(755,root,root) %{_bindir}/diagtool
1254 %attr(755,root,root) %{_bindir}/find-all-symbols
1255 %attr(755,root,root) %{_bindir}/hmaptool
1256 %attr(755,root,root) %{_bindir}/modularize
1257 %attr(755,root,root) %{_bindir}/pp-trace
1258 %attr(755,root,root) %{_bindir}/run-clang-tidy
1259 %{_datadir}/clang/clang-include-fixer.py
1260 %{_datadir}/clang/clang-tidy-diff.py
1261 %{_datadir}/clang/run-find-all-symbols.py
1263 %files -n bash-completion-clang
1264 %defattr(644,root,root,755)
1265 %{bash_compdir}/clang
1269 %defattr(644,root,root,755)
1270 %doc tools/flang/{LICENSE.TXT,README.md}
1271 %attr(755,root,root) %{_bindir}/f18
1272 %attr(755,root,root) %{_bindir}/f18-parse-demo
1273 %attr(755,root,root) %{_bindir}/fir-opt
1274 %attr(755,root,root) %{_bindir}/flang
1275 %attr(755,root,root) %{_bindir}/tco
1276 %dir %{_includedir}/flang
1277 %{_includedir}/flang/Version.inc
1278 %{_includedir}/flang/__fortran_*.mod
1279 %{_includedir}/flang/ieee_*.mod
1280 %{_includedir}/flang/iso_*.mod
1281 %{_includedir}/flang/omp_lib*.mod
1283 %files -n flang-devel
1284 %defattr(644,root,root,755)
1285 %{_libdir}/libFIROptimizer.a
1286 %{_libdir}/libFortran*.a
1287 %{_includedir}/flang/Common
1288 %{_includedir}/flang/Decimal
1289 %{_includedir}/flang/Evaluate
1290 %{_includedir}/flang/Frontend
1291 %{_includedir}/flang/FrontendTool
1292 %{_includedir}/flang/Lower
1293 %{_includedir}/flang/Optimizer
1294 %{_includedir}/flang/Parser
1295 %{_includedir}/flang/Semantics
1296 %{_includedir}/flang/ISO_Fortran_binding.h
1297 %{_libdir}/cmake/flang
1301 %defattr(644,root,root,755)
1302 %doc tools/lld/{LICENSE.TXT,README.md}
1303 %attr(755,root,root) %{_bindir}/ld.lld
1304 %attr(755,root,root) %{_bindir}/ld64.lld
1305 %attr(755,root,root) %{_bindir}/lld
1306 %attr(755,root,root) %{_bindir}/lld-link
1307 %attr(755,root,root) %{_bindir}/wasm-ld
1310 %defattr(644,root,root,755)
1311 %{_libdir}/liblld[ACDEHMRWXY]*.a
1313 %{_libdir}/cmake/lld
1317 %defattr(644,root,root,755)
1318 %attr(755,root,root) %{_bindir}/lldb
1319 %attr(755,root,root) %{_bindir}/lldb-argdumper
1320 %attr(755,root,root) %{_bindir}/lldb-instr
1321 %attr(755,root,root) %{_bindir}/lldb-server
1322 %attr(755,root,root) %{_bindir}/lldb-vscode
1323 %attr(755,root,root) %{_libdir}/liblldb.so.%{version}
1324 %attr(755,root,root) %ghost %{_libdir}/liblldb.so.14
1325 %attr(755,root,root) %ghost %{_libdir}/liblldbIntelFeatures.so.14
1326 %dir %{py3_sitedir}/lldb
1327 %attr(755,root,root) %{py3_sitedir}/lldb/lldb-argdumper
1328 %{py3_sitedir}/lldb/formatters
1329 %{py3_sitedir}/lldb/utils
1330 %{py3_sitedir}/lldb/__init__.py
1331 %{py3_sitedir}/lldb/__pycache__
1332 %{py3_sitedir}/lldb/embedded_interpreter.py
1333 %dir %{py3_sitedir}/lldb/plugins
1334 %{py3_sitedir}/lldb/plugins/__pycache__
1335 %{py3_sitedir}/lldb/plugins/__init__.py
1336 %{py3_sitedir}/lldb/plugins/scripted_process.py
1337 %attr(755,root,root) %{py3_sitedir}/lldb/_lldb.cpython-*.so
1339 %files -n lldb-devel
1340 %defattr(644,root,root,755)
1341 %attr(755,root,root) %{_libdir}/liblldb.so
1342 %attr(755,root,root) %{_libdir}/liblldbIntelFeatures.so
1348 %defattr(644,root,root,755)
1349 %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllllvm*.so
1350 %dir %{_libdir}/ocaml/llvm
1351 %{_libdir}/ocaml/llvm/llvm*.cma
1352 %{_libdir}/ocaml/llvm/llvm*.cmi
1353 %{_libdir}/ocaml/META.llvm*
1356 %defattr(644,root,root,755)
1357 %{_libdir}/ocaml/llvm/libllvm*.a
1358 %{_libdir}/ocaml/llvm/llvm*.a
1359 %{_libdir}/ocaml/llvm/llvm*.cmt
1360 %{_libdir}/ocaml/llvm/llvm*.cmti
1361 %{_libdir}/ocaml/llvm/llvm*.cmx
1362 %{_libdir}/ocaml/llvm/llvm*.cmxa
1363 %{_libdir}/ocaml/llvm/llvm*.mli
1366 %defattr(644,root,root,755)
1371 %defattr(644,root,root,755)
1372 %{_datadir}/opt-viewer
1374 %files -n vim-plugin-clang
1375 %defattr(644,root,root,755)
1376 %{_datadir}/clang/clang-format.py
1377 %{_datadir}/clang/clang-rename.py