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
17 %bcond_without lldb # LLDB debugger
18 %bcond_without mlir # MLIR libraries and tools (required for Flang)
19 %bcond_with flang # Flang (Fortran18) compiler (heavy memory requirements during build)
20 %bcond_without polly # Polly cache-locality optimization, auto-parallelism and vectorization
21 %bcond_without rt # compiler-rt libraries
22 %bcond_without multilib # compiler-rt multilib libraries
23 %bcond_without ocaml # OCaml binding
24 %bcond_without z3 # Z3 constraint solver support in Clang Static Analyzer
25 %bcond_without doc # HTML docs and man pages
26 %bcond_without target_aarch64 # AArch64 target support
27 %bcond_without target_amdgpu # AMDGPU target support
28 %bcond_without target_arm # ARM target support
29 %bcond_without target_avr # AVR target support
30 %bcond_without target_bpf # BPF target support
31 %bcond_without target_hexagon # Hexagon target support
32 %bcond_without target_lanai # Lanai target support
33 %bcond_without target_mips # Mips target support
34 %bcond_without target_msp430 # MSP430 target support
35 %bcond_without target_nvptx # NVPTX target support
36 %bcond_without target_powerpc # PowerPC target support
37 %bcond_without target_riscv # RISCV target support
38 %bcond_without target_sparc # Sparc target support
39 %bcond_without target_systemz # SystemZ target support
40 %bcond_without target_ve # VE target support
41 %bcond_without target_webassembly # WebAssembly target support
42 %bcond_without target_x86 # X86 target support
43 %bcond_without target_xcore # XCore target support
44 %bcond_with cxxmodules # C++20 modules (requires support in bootstrap compiler)
45 %bcond_with apidocs # doxygen docs (HUGE, so they are not built by default)
46 %bcond_with tests # run tests
47 %bcond_with lowmem # lower memory requirements
49 # No ocaml on other arches or no native ocaml (required for ocaml-ctypes)
50 %ifnarch %{ix86} %{x8664} %{arm} aarch64 ppc sparc sparcv9
54 %ifarch armv3l armv4b armv4l armv4tl armv5tl armv5tel armv5tejl armv6l armv6hl
58 %ifarch %{arm} aarch64
62 %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;}
68 Summary: The Low Level Virtual Machine (An Optimizing Compiler Infrastructure)
69 Summary(pl.UTF-8): Niskopoziomowa maszyna wirtualna (infrastruktura kompilatora optymalizującego)
73 License: Apache 2.0 with LLVM exceptions
74 Group: Development/Languages
75 #Source0Download: https://github.com/llvm/llvm-project/releases/
76 Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/%{name}-%{version}.src.tar.xz
77 # Source0-md5: 8aad3395466b23d3d34e98dbe386b018
78 Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/clang-%{version}.src.tar.xz
79 # Source1-md5: 335980de1f61d2641acc83bdf0ab0faf
80 Source2: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/compiler-rt-%{version}.src.tar.xz
81 # Source2-md5: 1068037dce5e42a0eeb2217484f501fd
82 Source3: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/lldb-%{version}.src.tar.xz
83 # Source3-md5: 8741b5d30a5390a7daef639cf4042f0c
84 Source4: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/polly-%{version}.src.tar.xz
85 # Source4-md5: 5d37eabbfb147314187fc8abe7880796
86 Source5: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/clang-tools-extra-%{version}.src.tar.xz
87 # Source5-md5: 2c71885c8bad1724cea3d021224a69a1
88 Source6: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/lld-%{version}.src.tar.xz
89 # Source6-md5: cd93e87550e48b1a8ae3ee638861f47c
90 Source7: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/flang-%{version}.src.tar.xz
91 # Source7-md5: ce6eebfe98c5372c969cd1da6145bfb6
92 # "mlir" subdir extracted from https://github.com/llvm/llvm-project/releases/download/llvmorg-13.0.1/llvm-project-13.0.1.src.tar.xz
93 Source8: mlir-%{version}.tar.xz
94 # Source8-md5: 34fbb0505b40478016d9e518b0fcf24c
95 Patch1: %{name}-pld.patch
96 Patch2: %{name}-python-modules.patch
97 Patch3: x32-gcc-toolchain.patch
98 Patch4: cmake-buildtype.patch
99 Patch5: %{name}-ocaml-shared.patch
100 Patch6: %{name}-flang.patch
101 Patch7: llvm12-build_fixes.patch
102 Patch8: %{name}-selective_bindings.patch
103 Patch9: %{name}-libexecdir.patch
104 Patch10: compiler-rt-paths.patch
105 URL: https://llvm.org/
107 BuildRequires: binutils-devel
109 BuildRequires: cmake >= 3.13.4
112 BuildRequires: libedit-devel
113 BuildRequires: libltdl-devel
114 BuildRequires: libpfm-devel
115 BuildRequires: libstdc++-devel >= 6:5
116 BuildRequires: libxml2-devel >= 2
117 BuildRequires: ncurses-devel
119 BuildRequires: ocaml >= 4.00.0
120 BuildRequires: ocaml-ctypes-devel >= 0.4
121 BuildRequires: ocaml-findlib
122 BuildRequires: ocaml-ocamldoc
123 %{?with_tests:BuildRequires: ocaml-ounit >= 2}
125 BuildRequires: perl-base >= 1:5.6
126 BuildRequires: perl-tools-pod
127 BuildRequires: python3 >= 1:3
128 BuildRequires: python3-PyYAML
129 BuildRequires: python3-pygments >= 2.0
130 BuildRequires: rpm-build >= 4.6
131 BuildRequires: rpm-pythonprov
132 BuildRequires: rpmbuild(macros) >= 1.742
133 %{?with_doc:BuildRequires: sphinx-pdg}
134 BuildRequires: tar >= 1:1.22
135 BuildRequires: xar-devel >= 1.6
137 %{?with_z3:BuildRequires: z3-devel >= 4.7.1}
138 BuildRequires: zlib-devel
140 BuildRequires: doxygen
141 BuildRequires: graphviz
144 BuildRequires: dejagnu
145 BuildRequires: tcl-devel
147 %if %{with rt} && %{with multilib}
149 BuildRequires: gcc-c++-multilib-32
150 BuildRequires: glibc-devel(ix86)
151 BuildRequires: libstdc++-multilib-32-devel
154 BuildRequires: gcc-c++-multilib-32
155 BuildRequires: gcc-c++-multilib-64
156 BuildRequires: glibc-devel(x86_64)
157 BuildRequires: glibc-devel(ix86)
158 BuildRequires: libstdc++-multilib-32-devel
159 BuildRequires: libstdc++-multilib-64-devel
163 BuildRequires: epydoc
164 %ifarch i386 i486 %{arm}
165 BuildRequires: libatomic-devel
167 BuildRequires: libxml2-devel >= 2
168 BuildRequires: lua-devel
169 BuildRequires: ncurses-ext-devel
170 BuildRequires: python3-devel >= 1:3.2
171 %{?with_doc:BuildRequires: python3-recommonmark}
172 BuildRequires: swig-python >= 3.0.11
173 BuildRequires: xz-devel
176 #BuildRequires: gmp-devel or imath-devel (private copy in polly/lib/External/isl/imath)
177 # private copy in polly/lib/External/isl
178 #BuildRequires: isl-devel >= 0.22.1
179 #TODO (bcond): cuda-devel (with POLLY_ENABLE_GPGPU_CODEGEN=ON)
180 %{?with_target_nvptx:BuildRequires: ocl-icd-libOpenCL-devel}
183 BuildConflicts: llvm-ocaml
185 Requires: %{name}-libs = %{version}-%{release}
186 # LLVM is not supported on PPC64
187 # http://llvm.org/bugs/show_bug.cgi?id=3729
189 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
192 %define _sysconfdir /etc/%{name}
194 %define specflags_ppc -fno-var-tracking-assignments
196 # objcopy: BFD (GNU Binutils) 2.32 assertion fail format.c:459
197 # objcopy: error: .../libLLVM-8.so(.debug_gnu_pubtypes) is too large (0x1ceee347 bytes)
198 # objcopy: .../libLLVM-8.so[.debug_gnu_pubtypes]: memory exhausted
200 %define _enable_debug_packages 0
202 # ix86 and x32 - the same issue as https://llvm.org/bugs/show_bug.cgi?id=27237
203 # use -gsplit-dwarf only when building packages with debuginfo
204 # to avoid excessive disk space usage
205 %if 0%{?_enable_debug_packages}
206 %define specflags -gsplit-dwarf
209 # strip corrupts: $RPM_BUILD_ROOT/usr/lib64/llvm-gcc/bin/llvm-c++ ...
210 %define _noautostrip .*/\\(libmud.*\\.a\\|bin/llvm-.*\\|lib.*++\\.a\\)
212 # clang doesn't know -fvar-tracking-assignments, and leaving it here would pollute llvm-config
213 # -Werror=format-security is for swig
214 # TODO: add - -Werror=format-security to tools/lldb/scripts/LLDBWrapPython.cpp
215 %define filterout_c -fvar-tracking-assignments
216 %define filterout_cxx -fvar-tracking-assignments -Werror=format-security
217 %define filterout_ccpp -fvar-tracking-assignments
220 LLVM is a compiler infrastructure designed for compile-time,
221 link-time, runtime, and idle-time optimization of programs from
222 arbitrary programming languages. LLVM is written in C++ and has been
223 developed since 2000 at the University of Illinois and Apple. It
224 currently supports compilation of C and C++ programs using clang
227 %description -l pl.UTF-8
228 LLVM to infrastruktura kompilatora zaprojektowana do optymalizacji
229 czasu kompilowania, linkowania, działania i bezczynności programów w
230 dowolnych językach programowania. Jest napisana w C++, rozwijana od
231 roku 2000 przez Uniwersytet w Illinois i Apple. Aktualnie obsługuje
232 kompilację programów w C i C++ przy użyciu frontendu clang.
235 Summary: LLVM shared libraries
236 Summary(pl.UTF-8): Biblioteki współdzielone LLVM-a
238 Conflicts: llvm < 3.2
241 LLVM shared libraries.
243 %description libs -l pl.UTF-8
244 Biblioteki współdzielone LLVM-a.
247 Summary: Static libraries and header files for LLVM
248 Summary(pl.UTF-8): Biblioteki statyczne i pliki nagłówkowe dla LLVM-a
249 Group: Development/Languages
250 Requires: %{name}-libs = %{version}-%{release}
251 Requires: libstdc++-devel >= 6:3.4
254 This package contains static libraries and header files needed to
255 develop new native programs that use the LLVM infrastructure.
257 %description devel -l pl.UTF-8
258 Ten pakiet zawiera biblioteki statyczne oraz pliki nagłówkowe
259 potrzebne do tworzenia nowych programów natywnych wykorzystujących
263 Summary: Documentation for LLVM
264 Summary(pl.UTF-8): Dokumentacja do LLVM-a
266 # does not require base
269 Documentation for the LLVM compiler infrastructure.
271 %description doc -l pl.UTF-8
272 Dokumentacja do infrastruktury kompilatorów LLVM.
275 Summary: API documentation for LLVM
276 Summary(pl.UTF-8): Dokumentacja API LLVM-a
277 Group: Development/Languages
278 Requires: %{name}-doc = %{version}-%{release}
281 API documentation for the LLVM compiler infrastructure.
283 %description apidocs -l pl.UTF-8
284 Dokumentacja API infrastruktury kompilatorów LLVM.
287 Summary: LLVM Multi-Level Intermediate Representation libraries and tools
288 Summary(pl.UTF-8): Biblioteki i narzędzia wielopoziomowej reprezentacji pośredniej LLVM
289 Group: Development/Tools
290 URL: https://mlir.llvm.org/
291 Requires: %{name} = %{version}-%{release}
294 LLVM Multi-Level Intermediate Representation libraries and tools.
296 %description mlir -l pl.UTF-8
297 Biblioteki i narzędzia wielopoziomowej reprezentacji pośredniej LLVM.
300 Summary: LLVM Multi-Level Intermediate Representation development files
301 Summary(pl.UTF-8): Pliki do programowania z użyciem wielopoziomowej reprezentacji pośredniej LLVM
302 Group: Development/Tools
303 URL: https://mlir.llvm.org/
304 Requires: %{name}-devel = %{version}-%{release}
305 Requires: %{name}-mlir = %{version}-%{release}
307 %description mlir-devel
308 LLVM Multi-Level Intermediate Representation development files.
310 %description mlir-devel -l pl.UTF-8
311 Pliki do programowania z użyciem wielopoziomowej reprezentacji
315 Summary: Polyhedral optimizations for LLVM
316 Summary(pl.UTF-8): Optymalizacje wielościanowe dla LLVM-a
317 Group: Development/Tools
318 URL: https://polly.llvm.org/
319 Requires: %{name} = %{version}-%{release}
322 Polly is a high-level loop and data-locality optimizer and
323 optimization infrastructure for LLVM. It uses an abstract mathematical
324 representation based on integer polyhedra to analyze and optimize the
325 memory access pattern of a program.
327 %description polly -l pl.UTF-8
328 Polly to wysokopoziomowy optymalizator i infrastruktura LLVM-a do
329 optymalizacji pętli i położenia danych. Wykorzystuje abstrakcyjną
330 reprezentację matematyczną opartą na wielościanach całkowitoliczbowych
331 do analizy i optymalizacji wzorców dostępu do pamięci przez program.
334 Summary: Header files for LLVM Polly optimization infrastructure
335 Summary(pl.UTF-8): Pliki nagłówkowe infrastruktury optymalizacji LLVM-a Polly
336 Group: Development/Libraries
337 URL: https://polly.llvm.org/
338 Requires: %{name}-devel = %{version}-%{release}
339 Requires: %{name}-polly = %{version}-%{release}
341 %description polly-devel
342 Header files for LLVM Polly optimization infrastructure.
344 %description polly-devel -l pl.UTF-8
345 Pliki nagłówkowe infrastruktury optymalizacji LLVM-a Polly.
348 Summary: A C language family frontend for LLVM
349 Summary(pl.UTF-8): Frontend LLVM-a do języków z rodziny C
350 Group: Development/Languages
351 URL: https://clang.llvm.org/
352 Requires: %{name} = %{version}-%{release}
353 Requires: clang-libs = %{version}-%{release}
355 %description -n clang
356 clang: noun 1. A loud, resonant, metallic sound. 2. The strident call
357 of a crane or goose. 3. C-language family front-end toolkit.
359 The goal of the Clang project is to create a new C, C++, Objective C
360 and Objective C++ front-end for the LLVM compiler. Its tools are built
361 as libraries and designed to be loosely-coupled and extendable.
363 %description -n clang -l pl.UTF-8
364 clang (z angielskiego): 1. głośny, rezonujący, metaliczny dźwięk; 2.
365 piskliwy odgłos żurawia lub gęsi; 3. narzędzia frontendowe dla języków
368 Celem projektu Clang jest utworzenie nowego frontendu dla kompilatora
369 LLVM do języków C, C++, Objective C i Objective C++. Narzędzia są
370 budowane jako biblioteki i zaprojektowane z myślą o swobodnym łączeniu
373 %package -n clang-multilib
374 Summary: A C language family frontend for LLVM - 32-bit support
375 Summary(pl.UTF-8): Frontend LLVM-a do języków z rodziny C - obsługa binariów 32-bitowych
376 Group: Development/Languages
377 URL: https://clang.llvm.org/
378 Requires: clang = %{version}-%{release}
380 %description -n clang-multilib
381 clang: noun 1. A loud, resonant, metallic sound. 2. The strident call
382 of a crane or goose. 3. C-language family front-end toolkit.
384 The goal of the Clang project is to create a new C, C++, Objective C
385 and Objective C++ front-end for the LLVM compiler. Its tools are built
386 as libraries and designed to be loosely-coupled and extendable.
388 This package contains the C compiler support for producing 32-bit
389 programs on 64-bit host.
391 %description -n clang-multilib -l pl.UTF-8
392 clang (z angielskiego): 1. głośny, rezonujący, metaliczny dźwięk; 2.
393 piskliwy odgłos żurawia lub gęsi; 3. narzędzia frontendowe dla języków
396 Celem projektu Clang jest utworzenie nowego frontendu dla kompilatora
397 LLVM do języków C, C++, Objective C i Objective C++. Narzędzia są
398 budowane jako biblioteki i zaprojektowane z myślą o swobodnym łączeniu
401 Ten pakiet zawiera rozszerzenie kompilatora C o obsługę tworzenia
402 programów 32-bitowych na maszynie 64-bitowej.
404 %package -n clang-libs
405 Summary: Clang shared libraries
406 Summary(pl.UTF-8): Biblioteki współdzielone Clanga
408 URL: https://clang.llvm.org/
410 %description -n clang-libs
411 Clang shared libraries.
413 %description -n clang-libs -l pl.UTF-8
414 Biblioteki współdzielone Clanga.
416 %package -n clang-devel
417 Summary: Header files for Clang
418 Summary(pl.UTF-8): Pliki nagłówkowe Clanga
419 Group: Development/Languages
420 URL: https://clang.llvm.org/
421 Requires: %{name}-devel = %{version}-%{release}
422 Requires: clang = %{version}-%{release}
423 %{?with_polly:Requires: llvm-polly-devel = %{version}-%{release}}
425 %description -n clang-devel
426 This package contains header files for the Clang compiler.
428 %description -n clang-devel -l pl.UTF-8
429 Ten pakiet zawiera pliki nagłówkowe kompilatora Clang.
431 %package -n clang-doc
432 Summary: Documentation for Clang
433 Summary(pl.UTF-8): Dokumentacja do Clanga
434 URL: https://clang.llvm.org/
436 Requires: %{name} = %{version}-%{release}
438 %description -n clang-doc
439 Documentation for the Clang compiler front-end.
441 %description -n clang-doc -l pl.UTF-8
442 Dokumentacja do frontendu kompilatora Clang.
444 %package -n clang-apidocs
445 Summary: API documentation for Clang
446 Summary(pl.UTF-8): Dokumentacja API Clanga
447 URL: https://clang.llvm.org/
448 Group: Development/Languages
449 Requires: clang-doc = %{version}-%{release}
451 %description -n clang-apidocs
452 API documentation for the Clang compiler.
454 %description -n clang-apidocs -l pl.UTF-8
455 Dokumentacja API kompilatora Clang.
457 %package -n clang-analyzer
458 Summary: A source code analysis framework
459 Summary(pl.UTF-8): Szkielet do analizy kodu źródłowego
460 Group: Development/Languages
461 URL: https://clang-analyzer.llvm.org/
462 Requires: clang = %{version}-%{release}
463 # not picked up automatically since files are currently not instaled
464 # in standard Python hierarchies yet
467 %description -n clang-analyzer
468 The Clang Static Analyzer consists of both a source code analysis
469 framework and a standalone tool that finds bugs in C and Objective-C
470 programs. The standalone tool is invoked from the command-line, and is
471 intended to run in tandem with a build of a project or code base.
473 %description -n clang-analyzer -l pl.UTF-8
474 Clang Static Analyzer składa się ze szkieletu do analizy kodu
475 źródłowego oraz samodzielnego narzędzia znajdującego błędy w
476 programach w C i C++. Narzędzie jest wywoływane z linii poleceń, z
477 myślą o uruchamianiu wraz z kompilacją projektu lub kodu.
479 %package -n clang-tools-extra
480 Summary: Extra tools for Clang
481 Summary(pl.UTF-8): Dodatkowe narzędzia do kompilatora Clang
482 Group: Development/Tools
483 URL: https://clang.llvm.org/docs/ClangTools.html
484 Requires: clang = %{version}-%{release}
486 %description -n clang-tools-extra
487 Extra tools for Clang.
489 %description -n clang-tools-extra -l pl.UTF-8
490 Dodatkowe narzędzia do kompilatora Clang.
492 %package -n bash-completion-clang
493 Summary: Bash completion for clang command
494 Summary(pl.UTF-8): Bashowe dopełnianie składni polecenia clang
495 Group: Applications/Shells
496 Requires: bash-completion >= 2.0
497 Requires: clang = %{version}-%{release}
499 %description -n bash-completion-clang
500 Bash completion for clang command.
502 %description -n bash-completion-clang -l pl.UTF-8
503 Bashowe dopełnianie składni polecenia clang.
506 Summary: Fortran frontend for LLVM
507 Summary(pl.UTF-8): Frontend LLVM-a do Fortranu
508 Group: Development/Languages
509 URL: http://flang.llvm.org/
510 Requires: %{name}-mlir = %{version}-%{release}
512 %description -n flang
513 Flang is a ground-up implementation of a Fortran front end written in
516 %description -n flang -l pl.UTF-8
517 Flang to napisana od podstaw we współczesnym C++ implementacja
518 frontendu do Fortranu.
520 %package -n flang-devel
521 Summary: Fortran frontend for LLVM - development files
522 Summary(pl.UTF-8): Frontend LLVM-a do Fortranu - pliki programistyczne
523 Group: Development/Languages
524 URL: http://flang.llvm.org/
525 Requires: %{name}-mlir-devel = %{version}-%{release}
526 Requires: flang-devel = %{version}-%{release}
528 %description -n flang-devel
529 Development files for LLVM Fortran frontend.
531 %description -n flang-devel -l pl.UTF-8
532 Pliki prosramistyczne frontendu LLVM do Fortranu.
535 Summary: The LLVM linker
536 Summary(pl.UTF-8): Konsolidator z projektu LLVM
537 Group: Development/Libraries
538 URL: https://lld.llvm.org/
539 Requires: %{name} = %{version}-%{release}
542 lld is a new set of modular code for creating linker tools.
544 %description -n lld -l pl.UTF-8
545 lld to nowy zbiór modularnego kodu do tworzenia narzędzi
548 %package -n lld-devel
549 Summary: Development files for LLD linker tools
550 Summary(pl.UTF-8): Pliki programistyczne narzędzi konsolidujących LLD
551 Group: Development/Tools
552 URL: https://lld.llvm.org/
553 Requires: %{name}-devel = %{version}-%{release}
554 Requires: xar-devel >= 1.6
556 %description -n lld-devel
557 Development files for LLD linker tools.
559 %description -n lld-devel -l pl.UTF-8
560 Pliki programistyczne narzędzi konsolidujących LLD.
563 Summary: Next generation high-performance debugger
564 Summary(pl.UTF-8): Wydajny debugger nowej generacji
565 Group: Development/Debuggers
566 URL: https://lldb.llvm.org/
567 Requires: %{name} = %{version}-%{release}
568 Requires: python3-six
571 LLDB is a next generation, high-performance debugger. It is built as a
572 set of reusable components which highly leverage existing libraries in
573 the larger LLVM Project, such as the Clang expression parser and LLVM
576 %description -n lldb -l pl.UTF-8
577 LLDB to wydajny debugger nowej generacji. Jest zbudowany w oparciu o
578 komponenty wielokrotnego użytku, wykorzystujące istniejące biblioteki
579 w projekcie LLVM, takie jak analizator wyrażeń kompilatora Clang oraz
582 %package -n lldb-devel
583 Summary: Development files for LLDB debugger
584 Summary(pl.UTF-8): Pliki programistyczne debuggera LLDB
585 Group: Development/Libraries
586 URL: https://lldb.llvm.org/
587 Requires: %{name}-devel = %{version}-%{release}
588 Requires: clang-devel = %{version}-%{release}
589 Requires: lldb = %{version}-%{release}
591 %description -n lldb-devel
592 Development files for LLDB debugger.
594 %description -n lldb-devel -l pl.UTF-8
595 Pliki programistyczne debuggera LLDB.
598 Summary: OCaml binding for LLVM
599 Summary(pl.UTF-8): Wiązanie OCamla do LLVM-a
601 Requires: %{name} = %{version}-%{release}
603 %requires_eq ocaml-runtime
607 OCaml binding for LLVM.
609 %description ocaml -l pl.UTF-8
610 Wiązanie OCamla do LLVM-a.
613 Summary: Development files for LLVM OCaml binding
614 Summary(pl.UTF-8): Pliki programistyczne wiązania OCamla do LLVM-a
615 Group: Development/Libraries
616 Requires: %{name}-devel = %{version}-%{release}
617 Requires: %{name}-ocaml = %{version}-%{release}
619 %description ocaml-devel
620 The llvm-ocaml-devel package contains libraries and signature files
621 for developing applications that use llvm-ocaml binding.
623 %description ocaml-devel -l pl.UTF-8
624 Ten pakiet zawiera biblioteki i pliki sygnatur do tworzenia aplikacji
625 wykorzystujących wiązanie llvm-ocaml.
628 Summary: Documentation for LLVM's OCaml binding
629 Summary(pl.UTF-8): Dokumentacja wiązania OCamla do LLVM-a
631 Requires: %{name}-ocaml = %{version}-%{release}
633 %description ocaml-doc
634 HTML documentation for LLVM's OCaml binding.
636 %description ocaml-doc -l pl.UTF-8
637 Dokumentacja HTML wiązania OCamla do LLVM-a.
640 Summary: Optimization records visualization tools
641 Summary(pl.UTF-8): Narzędzia do wizualizacji rekordów optymalizacji
642 Group: Development/Tools
643 Requires: %{name} = %{version}
646 %description opt-viewer
647 Optimization records visualization tools.
649 %description opt-viewer -l pl.UTF-8
650 Narzędzia do wizualizacji rekordów optymalizacji.
652 %package -n vim-plugin-clang
653 Summary: Clang format and rename integration for Vim
654 Summary(pl.UTF-8): Integracja narzędzi Clang do formatowania i zmiany nazw z Vimem
655 Group: Applications/Editors/Vim
656 Requires: vim-rt >= 4:7.0
659 %description -n vim-plugin-clang
660 Clang format and rename integration for Vim.
662 %description -n vim-plugin-clang -l pl.UTF-8
663 Integracja narzędzi Clang do formatowania i zmiany nazw z Vimem.
666 %setup -q -n %{name}-%{version}.src -a1 %{?with_rt:-a2} %{?with_lldb:-a3} %{?with_polly:-a4} -a5 -a6 %{?with_flang:-a7} %{?with_mlir:-a8}
667 %{__mv} clang-%{version}.src tools/clang
668 %{?with_rt:%{__mv} compiler-rt-%{version}.src projects/compiler-rt}
669 %{?with_lldb:%{__mv} lldb-%{version}.src tools/lldb}
670 %{?with_polly:%{__mv} polly-%{version}.src tools/polly}
671 %{__mv} clang-tools-extra-%{version}.src tools/clang/tools/extra
672 %{__mv} lld-%{version}.src tools/lld
674 %{__mv} flang-%{version}.src tools/flang
677 %{__mv} mlir tools/mlir
695 grep -rl /usr/bin/env projects tools utils | xargs sed -i -e '1{
696 s,^#!.*bin/env python3\?,#!%{__python3},
697 s,^#!.*bin/env perl,#!%{__perl},
700 find -name '*.py' -print0 | xargs -0 sed -i -e '1{
701 s,^#!.*bin/python.*,#!%{__python3},
705 %{__sed} -i -e '1s,/usr/bin/env bash,/bin/bash,' tools/flang/tools/f18/flang.in
711 # Disabling assertions now, rec. by pure and needed for OpenGTL
712 # TESTFIX no PIC on ix86: http://llvm.org/bugs/show_bug.cgi?id=3801
714 CPPFLAGS="%{rpmcppflags} -D_FILE_OFFSET_BITS=64"
717 export CFLAGS="%{rpmcflags} -g0"
718 export CXXFLAGS="%{rpmcxxflags} -g0"
719 export LDFLAGS="%{rpmldflags} -Wl,--reduce-memory-overheads"
723 -DBUILD_SHARED_LIBS:BOOL=OFF \
724 -DENABLE_LINKER_BUILD_ID:BOOL=ON \
725 -DLLVM_BINDINGS_LIST:LIST="%{?with_ocaml:ocaml}" \
726 -DLLVM_BINUTILS_INCDIR:STRING=%{_includedir} \
727 -DLLVM_BUILD_LLVM_DYLIB:BOOL=ON \
728 -DLLVM_ENABLE_ASSERTIONS:BOOL=OFF \
729 -DLLVM_TOOLS_INSTALL_DIR=%(realpath -m "--relative-to=%{_prefix}" "%{_bindir}") \
731 -DLLVM_ENABLE_DOXYGEN:BOOL=ON \
733 %{?with_cxxmodules:-DLLVM_ENABLE_MODULES:BOOL=ON} \
734 -DLLVM_ENABLE_PIC:BOOL=ON \
735 -DLLVM_ENABLE_RTTI:BOOL=ON \
737 -DLLVM_ENABLE_SPHINX:BOOL=ON \
739 -DLLVM_INCLUDE_BENCHMARKS:BOOL=OFF \
740 %{?with_z3:-DLLVM_ENABLE_Z3_SOLVER:BOOL=ON} \
741 %if "%{_lib}" == "lib64"
742 -DLLVM_LIBDIR_SUFFIX:STRING=64 \
744 %if "%{_lib}" == "libx32"
745 -DLLVM_LIBDIR_SUFFIX:STRING=x32 \
747 -DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
748 -DLLVM_DEFAULT_TARGET_TRIPLE:STRING=%{_target_platform} \
750 -DLLVM_PARALLEL_LINK_JOBS:STRING=1 \
752 -DLLVM_TARGETS_TO_BUILD="%{targets_to_build}" \
754 %{cmake_on_off target_nvptx POLLY_ENABLE_GPGPU_CODEGEN} \
756 -DSPHINX_WARNINGS_AS_ERRORS=OFF
760 OPTIMIZE_OPTION="%{rpmcflags} %{rpmcppflags}"
763 %{__make} check 2>&1 | tee llvm-testlog.txt
764 %{__make} -C tools/clang test 2>&1 | tee clang-testlog.txt
768 %{__make} -C docs docs-llvm-html
769 %{__make} -C docs docs-llvm-man
771 %{__make} -C docs ocaml_doc
773 %{__make} -C tools/clang/docs docs-clang-html
774 %{__make} -C tools/clang/docs docs-clang-man
775 %{__make} -C tools/lld/docs docs-lld-html
776 # workaround failed import of _lldb
777 cp -pnL %{_lib}/liblldb.so tools/lldb/docs/lldb/_lldb.so
779 LD_LIBRARY_PATH=$(pwd)/%{_lib} \
780 -C tools/lldb/docs lldb-python-doc-package
781 %{__make} -C tools/lldb/docs lldb-cpp-doc
785 rm -rf $RPM_BUILD_ROOT
787 %{__make} -j1 -C build install \
788 DESTDIR=$RPM_BUILD_ROOT
790 # only some .pyc files are created by make install
791 %py3_comp $RPM_BUILD_ROOT%{py3_sitedir}
792 %py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir}
794 # Adjust static analyzer installation (see -libexecdir patch)
795 abs_ca_libexecdir="%{_libexecdir}/clang-analyzer"
796 rel_ca_libexecdir="${abs_ca_libexecdir#%{_prefix}}"
797 %{__sed} -i -e "s,/\.\./libexec/,/..${rel_ca_libexecdir}/," $RPM_BUILD_ROOT%{_bindir}/scan-build
798 %py3_comp $RPM_BUILD_ROOT%{_datadir}/scan-view
799 %py3_ocomp $RPM_BUILD_ROOT%{_datadir}/scan-view
801 # not installed by cmake buildsystem
802 install build/bin/pp-trace $RPM_BUILD_ROOT%{_bindir}
805 cp -p build/docs/man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
806 # these tools are not installed
807 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/{FileCheck,clang-tblgen,lldb-tblgen}.1
809 echo '.so llvm-ar.1' > $RPM_BUILD_ROOT%{_mandir}/man1/llvm-ranlib.1
812 # Move documentation back to build directory
815 %{__mv} $RPM_BUILD_ROOT%{_docdir}/llvm/ocaml-html ocamldocs
818 # and separate the apidoc
821 cp -a build/tools/clang/docs/html clang-apidoc
824 # And prepare Clang documentation
826 install -d clang-docs
827 for f in LICENSE.TXT NOTES.txt README.txt; do
828 ln tools/clang/$f clang-docs
831 install -d $RPM_BUILD_ROOT%{bash_compdir}
832 %{__mv} $RPM_BUILD_ROOT%{_datadir}/clang/bash-autocomplete.sh $RPM_BUILD_ROOT%{bash_compdir}/clang
834 %{__rm} $RPM_BUILD_ROOT%{_bindir}/{c-index-test,llvm-c-test}
836 %{__rm} $RPM_BUILD_ROOT%{_datadir}/clang/clang-format-bbedit.applescript
838 %{?with_lldb:%{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/{,__pycache__/}six*.py*}
839 # it seems it is used internally by an extra clang tool
840 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libfindAllSymbols.a
842 # disable completeness check incompatible with split packaging
843 %{__sed} -i -e '/^foreach(target .*IMPORT_CHECK_TARGETS/,/^endforeach/d; /^unset(_IMPORT_CHECK_TARGETS)/d' \
844 $RPM_BUILD_ROOT%{_libdir}/cmake/clang/ClangTargets.cmake \
846 $RPM_BUILD_ROOT%{_libdir}/cmake/flang/FlangTargets.cmake \
848 $RPM_BUILD_ROOT%{_libdir}/cmake/lld/LLDTargets.cmake \
849 $RPM_BUILD_ROOT%{_libdir}/cmake/llvm/LLVMExports.cmake \
851 $RPM_BUILD_ROOT%{_libdir}/cmake/mlir/MLIRTargets.cmake
855 rm -rf $RPM_BUILD_ROOT
857 %post libs -p /sbin/ldconfig
858 %postun libs -p /sbin/ldconfig
860 %post mlir -p /sbin/ldconfig
861 %postun mlir -p /sbin/ldconfig
863 %post -n clang-libs -p /sbin/ldconfig
864 %postun -n clang-libs -p /sbin/ldconfig
866 %post -n lldb -p /sbin/ldconfig
867 %postun -n lldb -p /sbin/ldconfig
870 %defattr(644,root,root,755)
871 %doc CREDITS.TXT LICENSE.TXT README.txt %{?with_tests:llvm-testlog.txt}
872 %attr(755,root,root) %{_bindir}/bugpoint
873 %attr(755,root,root) %{_bindir}/dsymutil
874 %attr(755,root,root) %{_bindir}/llc
875 %attr(755,root,root) %{_bindir}/lli
876 %attr(755,root,root) %{_bindir}/llvm-addr2line
877 %attr(755,root,root) %{_bindir}/llvm-ar
878 %attr(755,root,root) %{_bindir}/llvm-as
879 %attr(755,root,root) %{_bindir}/llvm-bcanalyzer
880 %attr(755,root,root) %{_bindir}/llvm-bitcode-strip
881 %attr(755,root,root) %{_bindir}/llvm-cat
882 %attr(755,root,root) %{_bindir}/llvm-cfi-verify
883 %attr(755,root,root) %{_bindir}/llvm-cov
884 %attr(755,root,root) %{_bindir}/llvm-cvtres
885 %attr(755,root,root) %{_bindir}/llvm-cxxdump
886 %attr(755,root,root) %{_bindir}/llvm-cxxfilt
887 %attr(755,root,root) %{_bindir}/llvm-cxxmap
888 %attr(755,root,root) %{_bindir}/llvm-debuginfod-find
889 %attr(755,root,root) %{_bindir}/llvm-diff
890 %attr(755,root,root) %{_bindir}/llvm-dis
891 %attr(755,root,root) %{_bindir}/llvm-dlltool
892 %attr(755,root,root) %{_bindir}/llvm-dwarfdump
893 %attr(755,root,root) %{_bindir}/llvm-dwp
894 %attr(755,root,root) %{_bindir}/llvm-exegesis
895 %attr(755,root,root) %{_bindir}/llvm-extract
896 %attr(755,root,root) %{_bindir}/llvm-gsymutil
897 %attr(755,root,root) %{_bindir}/llvm-ifs
898 %attr(755,root,root) %{_bindir}/llvm-install-name-tool
899 %attr(755,root,root) %{_bindir}/llvm-jitlink
900 %attr(755,root,root) %{_bindir}/llvm-lib
901 %attr(755,root,root) %{_bindir}/llvm-libtool-darwin
902 %attr(755,root,root) %{_bindir}/llvm-link
903 %attr(755,root,root) %{_bindir}/llvm-lipo
904 %attr(755,root,root) %{_bindir}/llvm-lto
905 %attr(755,root,root) %{_bindir}/llvm-lto2
906 %attr(755,root,root) %{_bindir}/llvm-mc
907 %attr(755,root,root) %{_bindir}/llvm-mca
908 %attr(755,root,root) %{_bindir}/llvm-ml
909 %attr(755,root,root) %{_bindir}/llvm-modextract
910 %attr(755,root,root) %{_bindir}/llvm-mt
911 %attr(755,root,root) %{_bindir}/llvm-nm
912 %attr(755,root,root) %{_bindir}/llvm-objcopy
913 %attr(755,root,root) %{_bindir}/llvm-objdump
914 %attr(755,root,root) %{_bindir}/llvm-opt-report
915 %attr(755,root,root) %{_bindir}/llvm-otool
916 %attr(755,root,root) %{_bindir}/llvm-pdbutil
917 %attr(755,root,root) %{_bindir}/llvm-profdata
918 %attr(755,root,root) %{_bindir}/llvm-profgen
919 %attr(755,root,root) %{_bindir}/llvm-ranlib
920 %attr(755,root,root) %{_bindir}/llvm-rc
921 %attr(755,root,root) %{_bindir}/llvm-readelf
922 %attr(755,root,root) %{_bindir}/llvm-readobj
923 %attr(755,root,root) %{_bindir}/llvm-reduce
924 %attr(755,root,root) %{_bindir}/llvm-rtdyld
925 %attr(755,root,root) %{_bindir}/llvm-sim
926 %attr(755,root,root) %{_bindir}/llvm-size
927 %attr(755,root,root) %{_bindir}/llvm-split
928 %attr(755,root,root) %{_bindir}/llvm-strip
929 %attr(755,root,root) %{_bindir}/llvm-stress
930 %attr(755,root,root) %{_bindir}/llvm-strings
931 %attr(755,root,root) %{_bindir}/llvm-symbolizer
932 %attr(755,root,root) %{_bindir}/llvm-tapi-diff
933 %attr(755,root,root) %{_bindir}/llvm-tblgen
934 %attr(755,root,root) %{_bindir}/llvm-tli-checker
935 %attr(755,root,root) %{_bindir}/llvm-undname
936 %attr(755,root,root) %{_bindir}/llvm-windres
937 %attr(755,root,root) %{_bindir}/llvm-xray
938 %attr(755,root,root) %{_bindir}/opt
939 %attr(755,root,root) %{_bindir}/sancov
940 %attr(755,root,root) %{_bindir}/sanstats
941 %attr(755,root,root) %{_bindir}/split-file
942 %attr(755,root,root) %{_bindir}/verify-uselistorder
944 %{_mandir}/man1/bugpoint.1*
945 %{_mandir}/man1/dsymutil.1*
946 %{_mandir}/man1/lit.1*
947 %{_mandir}/man1/llc.1*
948 %{_mandir}/man1/lli.1*
949 %{_mandir}/man1/llvm-addr2line.1*
950 %{_mandir}/man1/llvm-ar.1*
951 %{_mandir}/man1/llvm-as.1*
952 %{_mandir}/man1/llvm-bcanalyzer.1*
953 %{_mandir}/man1/llvm-cov.1*
954 %{_mandir}/man1/llvm-cxxfilt.1*
955 %{_mandir}/man1/llvm-cxxmap.1*
956 %{_mandir}/man1/llvm-diff.1*
957 %{_mandir}/man1/llvm-dis.1*
958 %{_mandir}/man1/llvm-dwarfdump.1*
959 %{_mandir}/man1/llvm-exegesis.1*
960 %{_mandir}/man1/llvm-extract.1*
961 %{_mandir}/man1/llvm-install-name-tool.1*
962 %{_mandir}/man1/llvm-lib.1*
963 %{_mandir}/man1/llvm-libtool-darwin.1*
964 %{_mandir}/man1/llvm-link.1*
965 %{_mandir}/man1/llvm-lipo.1*
966 %{_mandir}/man1/llvm-locstats.1*
967 %{_mandir}/man1/llvm-mca.1*
968 %{_mandir}/man1/llvm-nm.1*
969 %{_mandir}/man1/llvm-objcopy.1*
970 %{_mandir}/man1/llvm-objdump.1*
971 %{_mandir}/man1/llvm-otool.1*
972 %{_mandir}/man1/llvm-pdbutil.1*
973 %{_mandir}/man1/llvm-profdata.1*
974 %{_mandir}/man1/llvm-profgen.1*
975 %{_mandir}/man1/llvm-ranlib.1*
976 %{_mandir}/man1/llvm-readelf.1*
977 %{_mandir}/man1/llvm-readobj.1*
978 %{_mandir}/man1/llvm-size.1*
979 %{_mandir}/man1/llvm-stress.1*
980 %{_mandir}/man1/llvm-strings.1*
981 %{_mandir}/man1/llvm-strip.1*
982 %{_mandir}/man1/llvm-symbolizer.1*
983 %{_mandir}/man1/llvm-tblgen.1*
984 %{_mandir}/man1/llvm-tli-checker.1*
985 %{_mandir}/man1/opt.1*
986 %{_mandir}/man1/tblgen.1*
990 %defattr(644,root,root,755)
991 %attr(755,root,root) %{_libdir}/LLVMgold.so
992 %attr(755,root,root) %{_libdir}/libLLVM-%{abi}.so
994 %attr(755,root,root) %{_libdir}/libLLVM-%{version}.so
995 %attr(755,root,root) %{_libdir}/libLTO.so.14
996 %attr(755,root,root) %{_libdir}/libRemarks.so.14
997 %attr(755,root,root) %{_libdir}/libclang-cpp.so.14
1000 %defattr(644,root,root,755)
1001 %attr(755,root,root) %{_bindir}/llvm-config
1002 %attr(755,root,root) %{_libdir}/libLLVM.so
1003 %attr(755,root,root) %{_libdir}/libLTO.so
1004 %attr(755,root,root) %{_libdir}/libRemarks.so
1005 %attr(755,root,root) %{_libdir}/libclang-cpp.so
1006 %{_libdir}/libLLVM*.a
1008 %{_includedir}/llvm-c
1009 %{_libdir}/cmake/llvm
1011 %{_mandir}/man1/llvm-config.1*
1015 #%defattr(644,root,root,755)
1019 %defattr(644,root,root,755)
1025 %defattr(644,root,root,755)
1026 %attr(755,root,root) %{_bindir}/mlir-cpu-runner
1027 %attr(755,root,root) %{_bindir}/mlir-linalg-ods-yaml-gen
1028 %attr(755,root,root) %{_bindir}/mlir-lsp-server
1029 %attr(755,root,root) %{_bindir}/mlir-opt
1030 %attr(755,root,root) %{_bindir}/mlir-pdll
1031 %attr(755,root,root) %{_bindir}/mlir-reduce
1032 %attr(755,root,root) %{_bindir}/mlir-tblgen
1033 %attr(755,root,root) %{_bindir}/mlir-translate
1034 %attr(755,root,root) %{_libdir}/libMLIR.so.14
1035 %attr(755,root,root) %{_libdir}/libmlir_async_runtime.so.14
1036 %attr(755,root,root) %{_libdir}/libmlir_c_runner_utils.so.14
1037 %attr(755,root,root) %{_libdir}/libmlir_runner_utils.so.14
1039 %{_mandir}/man1/mlir-tblgen.1*
1043 %defattr(644,root,root,755)
1044 %attr(755,root,root) %{_libdir}/libMLIR.so
1045 %attr(755,root,root) %{_libdir}/libmlir_async_runtime.so
1046 %attr(755,root,root) %{_libdir}/libmlir_c_runner_utils.so
1047 %attr(755,root,root) %{_libdir}/libmlir_runner_utils.so
1048 %{_libdir}/libMLIR*.a
1050 %{_includedir}/mlir-c
1051 %{_libdir}/cmake/mlir
1056 %defattr(644,root,root,755)
1057 %doc tools/polly/{CREDITS.txt,LICENSE.TXT,README} tools/polly/www/{bugs,changelog,contributors}.html
1058 %attr(755,root,root) %{_libdir}/LLVMPolly.so
1059 %{?with_target_nvptx:%attr(755,root,root) %{_libdir}/libGPURuntime.so}
1062 %defattr(644,root,root,755)
1063 %{_libdir}/libPolly.a
1064 %{_libdir}/libPollyISL.a
1065 %{?with_target_nvptx:%{_libdir}/libPollyPPCG.a}
1066 %{_includedir}/polly
1067 %{_libdir}/cmake/polly
1071 %defattr(644,root,root,755)
1072 %doc clang-docs/{LICENSE.TXT,NOTES.txt,README.txt} %{?with_tests:clang-testlog.txt}
1073 %attr(755,root,root) %{_bindir}/clang
1074 %attr(755,root,root) %{_bindir}/clang++
1075 %attr(755,root,root) %{_bindir}/clang-%{abi}
1076 %attr(755,root,root) %{_bindir}/clang-check
1077 %attr(755,root,root) %{_bindir}/clang-cl
1078 %attr(755,root,root) %{_bindir}/clang-cpp
1079 %attr(755,root,root) %{_bindir}/clang-doc
1080 %attr(755,root,root) %{_bindir}/clang-format
1081 %attr(755,root,root) %{_bindir}/clang-linker-wrapper
1082 %attr(755,root,root) %{_bindir}/clang-nvlink-wrapper
1083 %attr(755,root,root) %{_bindir}/clang-offload-bundler
1084 %attr(755,root,root) %{_bindir}/clang-offload-wrapper
1085 %attr(755,root,root) %{_bindir}/clang-repl
1086 %attr(755,root,root) %{_bindir}/git-clang-format
1087 %dir %{_libdir}/clang
1088 %dir %{_libdir}/clang/%{version}
1089 %{_libdir}/clang/%{version}/include
1091 %ifarch %{x8664} x32 aarch64
1092 %dir %{_libdir}/clang/%{version}/bin
1093 %attr(755,root,root) %{_libdir}/clang/%{version}/bin/hwasan_symbolize
1095 %ifarch %{ix86} %{x8664} aarch64 armv7hl armv7hnl
1096 %dir %{_libdir}/clang/%{version}/lib
1097 %dir %{_libdir}/clang/%{version}/lib/linux
1098 %dir %{_libdir}/clang/%{version}/share
1101 %if %{with multilib}
1102 %dir %{_libdir}/clang/%{version}/lib
1103 %dir %{_libdir}/clang/%{version}/lib/linux
1104 %dir %{_libdir}/clang/%{version}/share
1108 %{_libdir}/clang/%{version}/lib/linux/clang_rt.*-i*86.o
1109 %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-i*86.a
1110 %attr(755,root,root) %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-i*86.so
1113 %{_libdir}/clang/%{version}/lib/linux/clang_rt.*-x86_64.o
1114 %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-x86_64.a
1115 %attr(755,root,root) %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-x86_64.so
1116 %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-x86_64.a.syms
1119 %{_libdir}/clang/%{version}/lib/linux/clang_rt.*-aarch64.o
1120 %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-aarch64.a
1121 %attr(755,root,root) %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-aarch64.so
1122 %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-aarch64.a.syms
1124 %ifarch armv7hl armv7hnl
1125 %{_libdir}/clang/%{version}/lib/linux/clang_rt.*-armhf.o
1126 %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-armhf.a
1127 %attr(755,root,root) %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-armhf.so
1128 %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-armhf.a.syms
1130 %ifarch %{ix86} %{x8664} %{arm} aarch64 mips mips64 ppc64
1131 %{_libdir}/clang/%{version}/share/asan_ignorelist.txt
1133 %ifarch %{ix86} %{x8664} mips64 aarch64 armv7hl armv7hnl
1134 %{_libdir}/clang/%{version}/share/cfi_ignorelist.txt
1136 %ifarch %{x8664} aarch64 mips64
1137 %{_libdir}/clang/%{version}/share/dfsan_abilist.txt
1138 %{_libdir}/clang/%{version}/share/msan_ignorelist.txt
1140 %ifarch %{x8664} aarch64
1141 %{_libdir}/clang/%{version}/share/hwasan_ignorelist.txt
1144 %if %{with multilib}
1145 %{_libdir}/clang/%{version}/share/asan_ignorelist.txt
1146 %{_libdir}/clang/%{version}/share/cfi_ignorelist.txt
1147 %{_libdir}/clang/%{version}/share/dfsan_abilist.txt
1148 %{_libdir}/clang/%{version}/share/msan_ignorelist.txt
1149 %{_libdir}/clang/%{version}/share/hwasan_ignorelist.txt
1153 %dir %{_datadir}/clang
1154 %{_datadir}/clang/clang-format-diff.py
1156 %if %{with rt} && %{with multilib}
1157 %ifarch %{x8664} x32
1158 %files -n clang-multilib
1159 %defattr(644,root,root,755)
1160 %{_libdir}/clang/%{version}/lib/linux/clang_rt.*-i386.o
1161 %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-i386.a
1162 %attr(755,root,root) %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-i386.so
1165 %{_libdir}/clang/%{version}/lib/linux/clang_rt.*-x86_64.o
1166 %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-x86_64.a
1167 %attr(755,root,root) %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-x86_64.so
1168 %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-x86_64.a.syms
1172 %files -n clang-libs
1173 %defattr(644,root,root,755)
1174 %attr(755,root,root) %{_libdir}/libclang.so.13
1175 %attr(755,root,root) %{_libdir}/libclang.so.*.*.*
1177 %files -n clang-devel
1178 %defattr(644,root,root,755)
1179 %attr(755,root,root) %{_libdir}/libclang.so
1180 %{_libdir}/libclang*.a
1181 %{_includedir}/clang
1182 %{_includedir}/clang-c
1183 %{_includedir}/clang-tidy
1184 %{_libdir}/cmake/clang
1187 %defattr(644,root,root,755)
1188 %doc tools/clang/docs/*.{html,png,txt}
1191 %files -n clang-apidocs
1192 %defattr(644,root,root,755)
1196 %files -n clang-analyzer
1197 %defattr(644,root,root,755)
1198 %dir %{_libexecdir}/clang-analyzer
1200 %attr(755,root,root) %{_bindir}/scan-build
1201 %attr(755,root,root) %{_libexecdir}/clang-analyzer/c++-analyzer
1202 %attr(755,root,root) %{_libexecdir}/clang-analyzer/ccc-analyzer
1203 %{_datadir}/scan-build
1204 %{_mandir}/man1/scan-build.1*
1206 %attr(755,root,root) %{_bindir}/analyze-build
1207 %attr(755,root,root) %{_bindir}/intercept-build
1208 %attr(755,root,root) %{_bindir}/scan-build-py
1209 %attr(755,root,root) %{_bindir}/scan-view
1210 %attr(755,root,root) %{_libexecdir}/clang-analyzer/analyze-c++
1211 %attr(755,root,root) %{_libexecdir}/clang-analyzer/analyze-cc
1212 %attr(755,root,root) %{_libexecdir}/clang-analyzer/intercept-c++
1213 %attr(755,root,root) %{_libexecdir}/clang-analyzer/intercept-cc
1214 %{_prefix}/lib/libear
1215 %{_prefix}/lib/libscanbuild
1216 %{_datadir}/scan-view
1218 %files -n clang-tools-extra
1219 %defattr(644,root,root,755)
1220 %doc tools/clang/tools/extra/{CODE_OWNERS.TXT,README.txt}
1221 %attr(755,root,root) %{_bindir}/clang-apply-replacements
1222 %attr(755,root,root) %{_bindir}/clang-change-namespace
1223 %attr(755,root,root) %{_bindir}/clang-extdef-mapping
1224 %attr(755,root,root) %{_bindir}/clang-include-fixer
1225 %attr(755,root,root) %{_bindir}/clang-move
1226 %attr(755,root,root) %{_bindir}/clang-query
1227 %attr(755,root,root) %{_bindir}/clang-refactor
1228 %attr(755,root,root) %{_bindir}/clang-rename
1229 %attr(755,root,root) %{_bindir}/clang-reorder-fields
1230 %attr(755,root,root) %{_bindir}/clang-scan-deps
1231 %attr(755,root,root) %{_bindir}/clang-tidy
1232 %attr(755,root,root) %{_bindir}/clangd
1233 %attr(755,root,root) %{_bindir}/diagtool
1234 %attr(755,root,root) %{_bindir}/find-all-symbols
1235 %attr(755,root,root) %{_bindir}/hmaptool
1236 %attr(755,root,root) %{_bindir}/modularize
1237 %attr(755,root,root) %{_bindir}/pp-trace
1238 %attr(755,root,root) %{_bindir}/run-clang-tidy
1239 %{_datadir}/clang/clang-include-fixer.py
1240 %{_datadir}/clang/clang-tidy-diff.py
1241 %{_datadir}/clang/run-find-all-symbols.py
1243 %files -n bash-completion-clang
1244 %defattr(644,root,root,755)
1245 %{bash_compdir}/clang
1249 %defattr(644,root,root,755)
1250 %doc tools/flang/{LICENSE.TXT,README.md}
1251 %attr(755,root,root) %{_bindir}/f18
1252 %attr(755,root,root) %{_bindir}/f18-parse-demo
1253 %attr(755,root,root) %{_bindir}/fir-opt
1254 %attr(755,root,root) %{_bindir}/flang
1255 %attr(755,root,root) %{_bindir}/tco
1256 %dir %{_includedir}/flang
1257 %{_includedir}/flang/Version.inc
1258 %{_includedir}/flang/__fortran_*.mod
1259 %{_includedir}/flang/ieee_*.mod
1260 %{_includedir}/flang/iso_*.mod
1261 %{_includedir}/flang/omp_lib*.mod
1263 %files -n flang-devel
1264 %defattr(644,root,root,755)
1265 %{_libdir}/libFIROptimizer.a
1266 %{_libdir}/libFortran*.a
1267 %{_includedir}/flang/Common
1268 %{_includedir}/flang/Decimal
1269 %{_includedir}/flang/Evaluate
1270 %{_includedir}/flang/Frontend
1271 %{_includedir}/flang/FrontendTool
1272 %{_includedir}/flang/Lower
1273 %{_includedir}/flang/Optimizer
1274 %{_includedir}/flang/Parser
1275 %{_includedir}/flang/Semantics
1276 %{_includedir}/flang/ISO_Fortran_binding.h
1277 %{_libdir}/cmake/flang
1281 %defattr(644,root,root,755)
1282 %doc tools/lld/{LICENSE.TXT,README.md}
1283 %attr(755,root,root) %{_bindir}/ld.lld
1284 %attr(755,root,root) %{_bindir}/ld64.lld
1285 %attr(755,root,root) %{_bindir}/lld
1286 %attr(755,root,root) %{_bindir}/lld-link
1287 %attr(755,root,root) %{_bindir}/wasm-ld
1290 %defattr(644,root,root,755)
1291 %{_libdir}/liblld[ACDEHMRWXY]*.a
1293 %{_libdir}/cmake/lld
1297 %defattr(644,root,root,755)
1298 %attr(755,root,root) %{_bindir}/lldb
1299 %attr(755,root,root) %{_bindir}/lldb-argdumper
1300 %attr(755,root,root) %{_bindir}/lldb-instr
1301 %attr(755,root,root) %{_bindir}/lldb-server
1302 %attr(755,root,root) %{_bindir}/lldb-vscode
1303 %attr(755,root,root) %{_libdir}/liblldb.so.%{version}
1304 %attr(755,root,root) %ghost %{_libdir}/liblldb.so.14
1305 %attr(755,root,root) %ghost %{_libdir}/liblldbIntelFeatures.so.14
1306 %dir %{py3_sitedir}/lldb
1307 %attr(755,root,root) %{py3_sitedir}/lldb/lldb-argdumper
1308 %{py3_sitedir}/lldb/formatters
1309 %{py3_sitedir}/lldb/utils
1310 %{py3_sitedir}/lldb/__init__.py
1311 %{py3_sitedir}/lldb/__pycache__
1312 %{py3_sitedir}/lldb/embedded_interpreter.py
1313 %dir %{py3_sitedir}/lldb/plugins
1314 %{py3_sitedir}/lldb/plugins/__pycache__
1315 %{py3_sitedir}/lldb/plugins/__init__.py
1316 %{py3_sitedir}/lldb/plugins/scripted_process.py
1317 %attr(755,root,root) %{py3_sitedir}/lldb/_lldb.cpython-*-linux-gnu.so
1319 %files -n lldb-devel
1320 %defattr(644,root,root,755)
1321 %attr(755,root,root) %{_libdir}/liblldb.so
1322 %attr(755,root,root) %{_libdir}/liblldbIntelFeatures.so
1328 %defattr(644,root,root,755)
1329 %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllllvm*.so
1330 %dir %{_libdir}/ocaml/llvm
1331 %{_libdir}/ocaml/llvm/llvm*.cma
1332 %{_libdir}/ocaml/llvm/llvm*.cmi
1333 %{_libdir}/ocaml/META.llvm*
1336 %defattr(644,root,root,755)
1337 %{_libdir}/ocaml/llvm/libllvm*.a
1338 %{_libdir}/ocaml/llvm/llvm*.a
1339 %{_libdir}/ocaml/llvm/llvm*.cmt
1340 %{_libdir}/ocaml/llvm/llvm*.cmti
1341 %{_libdir}/ocaml/llvm/llvm*.cmx
1342 %{_libdir}/ocaml/llvm/llvm*.cmxa
1343 %{_libdir}/ocaml/llvm/llvm*.mli
1346 %defattr(644,root,root,755)
1351 %defattr(644,root,root,755)
1352 %{_datadir}/opt-viewer
1354 %files -n vim-plugin-clang
1355 %defattr(644,root,root,755)
1356 %{_datadir}/clang/clang-format.py
1357 %{_datadir}/clang/clang-rename.py