3 # - normal build (x86_64) requires about 80 GB of disk space
7 # %{_datadir}/clang/bash-autocomplete.sh
8 # %{_datadir}/clang/clang-format-sublime.py - sublime plugin
9 # %{_datadir}/clang/clang-format.el - clang tools emacs integration
10 # %{_datadir}/clang/clang-include-fixer.el
11 # %{_datadir}/clang/clang-rename.el
12 # - no content in doc package (it used to contain parts of clang apidocs and some examples)
13 # - system isl in polly?
16 %bcond_without lldb # LLDB debugger
17 %bcond_without polly # Polly cache-locality optimization, auto-parallelism and vectorization
18 %bcond_without rt # compiler-rt libraries
19 %bcond_without multilib # compiler-rt multilib libraries
20 %bcond_without ocaml # OCaml binding
21 %bcond_without z3 # Z3 constraint solver support in Clang Static Analyzer
22 %bcond_without doc # HTML docs and man pages
23 %bcond_without target_aarch64 # AArch64 target support
24 %bcond_without target_amdgpu # AMDGPU target support
25 %bcond_without target_arm # ARM target support
26 %bcond_without target_avr # AVR target support
27 %bcond_without target_bpf # BPF target support
28 %bcond_without target_hexagon # Hexagon target support
29 %bcond_without target_lanai # Lanai target support
30 %bcond_without target_mips # Mips target support
31 %bcond_without target_msp430 # MSP430 target support
32 %bcond_without target_nvptx # NVPTX target support
33 %bcond_without target_powerpc # PowerPC target support
34 %bcond_without target_riscv # RISCV target support
35 %bcond_without target_sparc # Sparc target support
36 %bcond_without target_systemz # SystemZ target support
37 %bcond_without target_webassembly # WebAssembly target support
38 %bcond_without target_x86 # X86 target support
39 %bcond_without target_xcore # XCore target support
40 %bcond_with flang # flang (Fortran18) compiler (broken as of 11.0.1)
41 %bcond_with cxxmodules # C++20 modules (requires support in bootstrap compiler)
42 %bcond_with apidocs # doxygen docs (HUGE, so they are not built by default)
43 %bcond_with tests # run tests
44 %bcond_with lowmem # lower memory requirements
46 # No ocaml on other arches or no native ocaml (required for ocaml-ctypes)
47 %ifnarch %{ix86} %{x8664} %{arm} aarch64 ppc sparc sparcv9
51 %ifarch armv3l armv4b armv4l armv4tl armv5tl armv5tel armv5tejl armv6l armv6hl
55 %ifarch %{arm} aarch64
59 %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_webassembly:WebAssembly;}%{?with_target_x86:X86;}%{?with_target_xcore:XCore;}
61 Summary: The Low Level Virtual Machine (An Optimizing Compiler Infrastructure)
62 Summary(pl.UTF-8): Niskopoziomowa maszyna wirtualna (infrastruktura kompilatora optymalizującego)
66 License: University of Illinois/NCSA Open Source License
67 Group: Development/Languages
68 #Source0Download: https://github.com/llvm/llvm-project/releases/
69 Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/%{name}-%{version}.src.tar.xz
70 # Source0-md5: 8c24626dce3ee9d87d1079ebf0897db5
71 Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/clang-%{version}.src.tar.xz
72 # Source1-md5: 020cbac6e5786094fe4f96f72e290763
73 Source2: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/compiler-rt-%{version}.src.tar.xz
74 # Source2-md5: e2e136656d27d60c5f40e20260f63c07
75 Source3: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/lldb-%{version}.src.tar.xz
76 # Source3-md5: 0956c6078d1fd3bee22d064e2addd784
77 Source4: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/polly-%{version}.src.tar.xz
78 # Source4-md5: 4bde9e5c4d739576cf2d804d50c822d6
79 Source5: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/clang-tools-extra-%{version}.src.tar.xz
80 # Source5-md5: f86778fc0d97508b4d7c244d93ebf944
81 Source6: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/lld-%{version}.src.tar.xz
82 # Source6-md5: e4f95d6cb895ebedf2c3224585682159
83 Source7: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/flang-%{version}.src.tar.xz
84 # Source7-md5: 4125a570905dd2755748e6f33442b74d
85 # "mlir" subdir extracted from https://github.com/llvm/llvm-project/releases/download/llvmorg-13.0.0/llvm-project-13.0.0.src.tar.xz
86 Source8: mlir-%{version}.tar.xz
87 # Source8-md5: de6a9476ef2a52b59d7c29a8bb786719
88 Patch1: %{name}-pld.patch
89 Patch2: %{name}-python-modules.patch
90 Patch3: x32-gcc-toolchain.patch
91 Patch4: cmake-buildtype.patch
92 Patch5: %{name}-ocaml-shared.patch
93 Patch6: %{name}-flang.patch
94 Patch7: llvm12-build_fixes.patch
95 Patch8: %{name}-selective_bindings.patch
96 Patch9: %{name}-libexecdir.patch
99 BuildRequires: binutils-devel
101 BuildRequires: cmake >= 3.13.4
104 BuildRequires: libedit-devel
105 BuildRequires: libltdl-devel
106 BuildRequires: libpfm-devel
107 BuildRequires: libstdc++-devel >= 6:5
108 BuildRequires: libxml2-devel >= 2
109 BuildRequires: ncurses-devel
111 BuildRequires: ocaml >= 4.00.0
112 BuildRequires: ocaml-ctypes-devel >= 0.4
113 BuildRequires: ocaml-findlib
114 BuildRequires: ocaml-ocamldoc
115 %{?with_tests:BuildRequires: ocaml-ounit >= 2}
117 BuildRequires: perl-base >= 1:5.6
118 BuildRequires: perl-tools-pod
119 BuildRequires: python3 >= 1:3
120 BuildRequires: python3-PyYAML
121 BuildRequires: python3-pygments >= 2.0
122 BuildRequires: rpm-pythonprov
123 BuildRequires: rpmbuild(macros) >= 1.742
124 %{?with_doc:BuildRequires: sphinx-pdg}
125 BuildRequires: tar >= 1:1.22
126 BuildRequires: xar-devel >= 1.6
128 %{?with_z3:BuildRequires: z3-devel >= 4.7.1}
129 BuildRequires: zlib-devel
131 BuildRequires: doxygen
132 BuildRequires: graphviz
135 BuildRequires: dejagnu
136 BuildRequires: tcl-devel
138 %if %{with rt} && %{with multilib}
140 BuildRequires: gcc-c++-multilib-32
141 BuildRequires: libstdc++-multilib-32-devel
144 BuildRequires: gcc-c++-multilib-32
145 BuildRequires: gcc-c++-multilib-64
146 BuildRequires: glibc-devel(x86_64)
147 BuildRequires: libstdc++-multilib-32-devel
148 BuildRequires: libstdc++-multilib-64-devel
152 BuildRequires: epydoc
153 %ifarch i386 i486 %{arm}
154 BuildRequires: libatomic-devel
156 BuildRequires: libxml2-devel >= 2
157 BuildRequires: lua-devel
158 BuildRequires: ncurses-ext-devel
159 BuildRequires: python3-devel >= 1:3.2
160 %{?with_doc:BuildRequires: python3-recommonmark}
161 BuildRequires: swig-python >= 3.0.11
162 BuildRequires: xz-devel
165 #BuildRequires: gmp-devel or imath-devel (private copy in polly/lib/External/isl/imath)
166 # private copy in polly/lib/External/isl
167 #BuildRequires: isl-devel >= 0.22.1
168 #TODO (bcond): cuda-devel (with POLLY_ENABLE_GPGPU_CODEGEN=ON)
169 %{?with_target_nvptx:BuildRequires: ocl-icd-libOpenCL-devel}
172 BuildConflicts: llvm-ocaml
174 Requires: %{name}-libs = %{version}-%{release}
175 # LLVM is not supported on PPC64
176 # http://llvm.org/bugs/show_bug.cgi?id=3729
178 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
181 %define _sysconfdir /etc/%{name}
183 %define specflags_ppc -fno-var-tracking-assignments
185 # objcopy: BFD (GNU Binutils) 2.32 assertion fail format.c:459
186 # objcopy: error: .../libLLVM-8.so(.debug_gnu_pubtypes) is too large (0x1ceee347 bytes)
187 # objcopy: .../libLLVM-8.so[.debug_gnu_pubtypes]: memory exhausted
189 %define _enable_debug_packages 0
191 # ix86 and x32 - the same issue as https://llvm.org/bugs/show_bug.cgi?id=27237
192 # use -gsplit-dwarf only when building packages with debuginfo
193 # to avoid excessive disk space usage
194 %if 0%{?_enable_debug_packages}
195 %define specflags -gsplit-dwarf
198 # strip corrupts: $RPM_BUILD_ROOT/usr/lib64/llvm-gcc/bin/llvm-c++ ...
199 %define _noautostrip .*/\\(libmud.*\\.a\\|bin/llvm-.*\\|lib.*++\\.a\\)
201 # clang doesn't know -fvar-tracking-assignments, and leaving it here would pollute llvm-config
202 # -Werror=format-security is for swig
203 # TODO: add - -Werror=format-security to tools/lldb/scripts/LLDBWrapPython.cpp
204 %define filterout_c -fvar-tracking-assignments
205 %define filterout_cxx -fvar-tracking-assignments -Werror=format-security
206 %define filterout_ccpp -fvar-tracking-assignments
209 LLVM is a compiler infrastructure designed for compile-time,
210 link-time, runtime, and idle-time optimization of programs from
211 arbitrary programming languages. LLVM is written in C++ and has been
212 developed since 2000 at the University of Illinois and Apple. It
213 currently supports compilation of C and C++ programs using clang
216 %description -l pl.UTF-8
217 LLVM to infrastruktura kompilatora zaprojektowana do optymalizacji
218 czasu kompilowania, linkowania, działania i bezczynności programów w
219 dowolnych językach programowania. Jest napisana w C++, rozwijana od
220 roku 2000 przez Uniwersytet w Illinois i Apple. Aktualnie obsługuje
221 kompilację programów w C i C++ przy użyciu frontendu clang.
224 Summary: LLVM shared libraries
225 Summary(pl.UTF-8): Biblioteki współdzielone LLVM-a
227 Conflicts: llvm < 3.2
230 LLVM shared libraries.
232 %description libs -l pl.UTF-8
233 Biblioteki współdzielone LLVM-a.
236 Summary: Static libraries and header files for LLVM
237 Summary(pl.UTF-8): Biblioteki statyczne i pliki nagłówkowe dla LLVM-a
238 Group: Development/Languages
239 Requires: %{name}-libs = %{version}-%{release}
240 Requires: libstdc++-devel >= 6:3.4
243 This package contains static libraries and header files needed to
244 develop new native programs that use the LLVM infrastructure.
246 %description devel -l pl.UTF-8
247 Ten pakiet zawiera biblioteki statyczne oraz pliki nagłówkowe
248 potrzebne do tworzenia nowych programów natywnych wykorzystujących
252 Summary: Documentation for LLVM
253 Summary(pl.UTF-8): Dokumentacja do LLVM-a
255 # does not require base
258 Documentation for the LLVM compiler infrastructure.
260 %description doc -l pl.UTF-8
261 Dokumentacja do infrastruktury kompilatorów LLVM.
264 Summary: API documentation for LLVM
265 Summary(pl.UTF-8): Dokumentacja API LLVM-a
266 Group: Development/Languages
267 Requires: %{name}-doc = %{version}-%{release}
270 API documentation for the LLVM compiler infrastructure.
272 %description apidocs -l pl.UTF-8
273 Dokumentacja API infrastruktury kompilatorów LLVM.
276 Summary: Polyhedral optimizations for LLVM
277 Summary(pl.UTF-8): Optymalizacje wielościanowe dla LLVM-a
278 Group: Development/Tools
279 URL: http://polly.llvm.org/
280 Requires: %{name} = %{version}-%{release}
283 Polly is a high-level loop and data-locality optimizer and
284 optimization infrastructure for LLVM. It uses an abstract mathematical
285 representation based on integer polyhedra to analyze and optimize the
286 memory access pattern of a program.
288 %description polly -l pl.UTF-8
289 Polly to wysokopoziomowy optymalizator i infrastruktura LLVM-a do
290 optymalizacji pętli i położenia danych. Wykorzystuje abstrakcyjną
291 reprezentację matematyczną opartą na wielościanach całkowitoliczbowych
292 do analizy i optymalizacji wzorców dostępu do pamięci przez program.
295 Summary: Header files for LLVM Polly optimization infrastructure
296 Summary(pl.UTF-8): Pliki nagłówkowe infrastruktury optymalizacji LLVM-a Polly
297 Group: Development/Libraries
298 URL: http://polly.llvm.org/
299 Requires: %{name}-devel = %{version}-%{release}
300 Requires: %{name}-polly = %{version}-%{release}
302 %description polly-devel
303 Header files for LLVM Polly optimization infrastructure.
305 %description polly-devel -l pl.UTF-8
306 Pliki nagłówkowe infrastruktury optymalizacji LLVM-a Polly.
309 Summary: A C language family frontend for LLVM
310 Summary(pl.UTF-8): Frontend LLVM-a do języków z rodziny C
312 Group: Development/Languages
313 Requires: %{name} = %{version}-%{release}
314 Requires: clang-libs = %{version}-%{release}
316 %description -n clang
317 clang: noun 1. A loud, resonant, metallic sound. 2. The strident call
318 of a crane or goose. 3. C-language family front-end toolkit.
320 The goal of the Clang project is to create a new C, C++, Objective C
321 and Objective C++ front-end for the LLVM compiler. Its tools are built
322 as libraries and designed to be loosely-coupled and extendable.
324 %description -n clang -l pl.UTF-8
325 clang (z angielskiego): 1. głośny, rezonujący, metaliczny dźwięk; 2.
326 piskliwy odgłos żurawia lub gęsi; 3. narzędzia frontendowe dla języków
329 Celem projektu Clang jest utworzenie nowego frontendu dla kompilatora
330 LLVM do języków C, C++, Objective C i Objective C++. Narzędzia są
331 budowane jako biblioteki i zaprojektowane z myślą o swobodnym łączeniu
334 %package -n clang-libs
335 Summary: Clang shared libraries
336 Summary(pl.UTF-8): Biblioteki współdzielone Clanga
339 %description -n clang-libs
340 Clang shared libraries.
342 %description -n clang-libs -l pl.UTF-8
343 Biblioteki współdzielone Clanga.
345 %package -n clang-multilib
346 Summary: A C language family frontend for LLVM - 32-bit support
347 Summary(pl.UTF-8): Frontend LLVM-a do języków z rodziny C - obsługa binariów 32-bitowych
349 Group: Development/Languages
350 Requires: clang = %{version}-%{release}
352 %description -n clang-multilib
353 clang: noun 1. A loud, resonant, metallic sound. 2. The strident call
354 of a crane or goose. 3. C-language family front-end toolkit.
356 The goal of the Clang project is to create a new C, C++, Objective C
357 and Objective C++ front-end for the LLVM compiler. Its tools are built
358 as libraries and designed to be loosely-coupled and extendable.
360 This package contains the C compiler support for producing 32-bit
361 programs on 64-bit host.
363 %description -n clang-multilib -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 Ten pakiet zawiera rozszerzenie kompilatora C o obsługę tworzenia
374 programów 32-bitowych na maszynie 64-bitowej.
376 %package -n clang-analyzer
377 Summary: A source code analysis framework
378 Summary(pl.UTF-8): Szkielet do analizy kodu źródłowego
380 Group: Development/Languages
381 Requires: clang = %{version}-%{release}
382 # not picked up automatically since files are currently not instaled
383 # in standard Python hierarchies yet
386 %description -n clang-analyzer
387 The Clang Static Analyzer consists of both a source code analysis
388 framework and a standalone tool that finds bugs in C and Objective-C
389 programs. The standalone tool is invoked from the command-line, and is
390 intended to run in tandem with a build of a project or code base.
392 %description -n clang-analyzer -l pl.UTF-8
393 Clang Static Analyzer składa się ze szkieletu do analizy kodu
394 źródłowego oraz samodzielnego narzędzia znajdującego błędy w
395 programach w C i C++. Narzędzie jest wywoływane z linii poleceń, z
396 myślą o uruchamianiu wraz z kompilacją projektu lub kodu.
398 %package -n clang-devel
399 Summary: Header files for Clang
400 Summary(pl.UTF-8): Pliki nagłówkowe Clanga
401 Group: Development/Languages
402 Requires: %{name}-devel = %{version}-%{release}
403 Requires: clang = %{version}-%{release}
404 %{?with_polly:Requires: llvm-polly-devel = %{version}-%{release}}
406 %description -n clang-devel
407 This package contains header files for the Clang compiler.
409 %description -n clang-devel -l pl.UTF-8
410 Ten pakiet zawiera pliki nagłówkowe kompilatora Clang.
412 %package -n clang-doc
413 Summary: Documentation for Clang
414 Summary(pl.UTF-8): Dokumentacja do Clanga
416 Requires: %{name} = %{version}-%{release}
418 %description -n clang-doc
419 Documentation for the Clang compiler front-end.
421 %description -n clang-doc -l pl.UTF-8
422 Dokumentacja do frontendu kompilatora Clang.
424 %package -n clang-apidocs
425 Summary: API documentation for Clang
426 Summary(pl.UTF-8): Dokumentacja API Clanga
427 Group: Development/Languages
428 Requires: clang-doc = %{version}-%{release}
430 %description -n clang-apidocs
431 API documentation for the Clang compiler.
433 %description -n clang-apidocs -l pl.UTF-8
434 Dokumentacja API kompilatora Clang.
436 %package -n clang-tools-extra
437 Summary: Extra tools for Clang
438 Summary(pl.UTF-8): Dodatkowe narzędzia do kompilatora Clang
439 Group: Development/Tools
440 URL: http://clang.llvm.org/docs/ClangTools.html
441 Requires: clang = %{version}-%{release}
443 %description -n clang-tools-extra
444 Extra tools for Clang.
446 %description -n clang-tools-extra -l pl.UTF-8
447 Dodatkowe narzędzia do kompilatora Clang.
450 Summary: The LLVM linker
451 Summary(pl.UTF-8): Konsolidator z projektu LLVM
452 Group: Development/Libraries
453 URL: http://lld.llvm.org/
454 Requires: %{name} = %{version}-%{release}
457 lld is a new set of modular code for creating linker tools.
459 %description -n lld -l pl.UTF-8
460 lld to nowy zbiór modularnego kodu do tworzenia narzędzi
463 %package -n lld-devel
464 Summary: Development files for LLD linker tools
465 Summary(pl.UTF-8): Pliki programistyczne narzędzi konsolidujących LLD
466 Group: Development/Tools
467 URL: http://lld.llvm.org/
468 Requires: %{name}-devel = %{version}-%{release}
469 Requires: xar-devel >= 1.6
471 %description -n lld-devel
472 Development files for LLD linker tools.
474 %description -n lld-devel -l pl.UTF-8
475 Pliki programistyczne narzędzi konsolidujących LLD.
478 Summary: Next generation high-performance debugger
479 Summary(pl.UTF-8): Wydajny debugger nowej generacji
480 Group: Development/Debuggers
481 URL: http://lldb.llvm.org/
482 Requires: %{name} = %{version}-%{release}
483 Requires: python3-six
486 LLDB is a next generation, high-performance debugger. It is built as a
487 set of reusable components which highly leverage existing libraries in
488 the larger LLVM Project, such as the Clang expression parser and LLVM
491 %description -n lldb -l pl.UTF-8
492 LLDB to wydajny debugger nowej generacji. Jest zbudowany w oparciu o
493 komponenty wielokrotnego użytku, wykorzystujące istniejące biblioteki
494 w projekcie LLVM, takie jak analizator wyrażeń kompilatora Clang oraz
497 %package -n lldb-devel
498 Summary: Development files for LLDB debugger
499 Summary(pl.UTF-8): Pliki programistyczne debuggera LLDB
500 Group: Development/Libraries
501 URL: http://lldb.llvm.org/
502 Requires: %{name}-devel = %{version}-%{release}
503 Requires: clang-devel = %{version}-%{release}
504 Requires: lldb = %{version}-%{release}
506 %description -n lldb-devel
507 Development files for LLDB debugger.
509 %description -n lldb-devel -l pl.UTF-8
510 Pliki programistyczne debuggera LLDB.
513 Summary: OCaml binding for LLVM
514 Summary(pl.UTF-8): Wiązanie OCamla do LLVM-a
516 Requires: %{name} = %{version}-%{release}
518 %requires_eq ocaml-runtime
522 OCaml binding for LLVM.
524 %description ocaml -l pl.UTF-8
525 Wiązanie OCamla do LLVM-a.
528 Summary: Development files for LLVM OCaml binding
529 Summary(pl.UTF-8): Pliki programistyczne wiązania OCamla do LLVM-a
530 Group: Development/Libraries
531 Requires: %{name}-devel = %{version}-%{release}
532 Requires: %{name}-ocaml = %{version}-%{release}
534 %description ocaml-devel
535 The llvm-ocaml-devel package contains libraries and signature files
536 for developing applications that use llvm-ocaml binding.
538 %description ocaml-devel -l pl.UTF-8
539 Ten pakiet zawiera biblioteki i pliki sygnatur do tworzenia aplikacji
540 wykorzystujących wiązanie llvm-ocaml.
543 Summary: Documentation for LLVM's OCaml binding
544 Summary(pl.UTF-8): Dokumentacja wiązania OCamla do LLVM-a
546 Requires: %{name}-ocaml = %{version}-%{release}
548 %description ocaml-doc
549 HTML documentation for LLVM's OCaml binding.
551 %description ocaml-doc -l pl.UTF-8
552 Dokumentacja HTML wiązania OCamla do LLVM-a.
555 Summary: Optimization records visualization tools
556 Summary(pl.UTF-8): Narzędzia do wizualizacji rekordów optymalizacji
557 Group: Development/Tools
558 Requires: %{name} = %{version}
561 %description opt-viewer
562 Optimization records visualization tools.
564 %description opt-viewer -l pl.UTF-8
565 Narzędzia do wizualizacji rekordów optymalizacji.
567 %package -n vim-plugin-clang
568 Summary: Clang format and rename integration for Vim
569 Summary(pl.UTF-8): Integracja narzędzi Clang do formatowania i zmiany nazw z Vimem
570 Group: Applications/Editors/Vim
571 Requires: vim-rt >= 4:7.0
574 %description -n vim-plugin-clang
575 Clang format and rename integration for Vim.
577 %description -n vim-plugin-clang -l pl.UTF-8
578 Integracja narzędzi Clang do formatowania i zmiany nazw z Vimem.
581 %setup -q -n %{name}-%{version}.src -a1 %{?with_rt:-a2} %{?with_lldb:-a3} %{?with_polly:-a4} -a5 -a6 %{?with_flang:-a7 -a8}
582 %{__mv} clang-%{version}.src tools/clang
583 %{?with_rt:%{__mv} compiler-rt-%{version}.src projects/compiler-rt}
584 %{?with_lldb:%{__mv} lldb-%{version}.src tools/lldb}
585 %{?with_polly:%{__mv} polly-%{version}.src tools/polly}
586 %{__mv} clang-tools-extra-%{version}.src tools/clang/tools/extra
587 %{__mv} lld-%{version}.src tools/lld
589 %{__mv} flang-%{version}.src tools/flang
590 %{__mv} mlir tools/mlir
605 grep -rl /usr/bin/env projects tools utils | xargs sed -i -e '1{
606 s,^#!.*bin/env python,#!%{__python3},
607 s,^#!.*bin/env perl,#!%{__perl},
610 find -name '*.py' -print0 | xargs -0 sed -i -e '1{
611 s,^#!.*bin/python.*,#!%{__python3},
617 # Disabling assertions now, rec. by pure and needed for OpenGTL
618 # TESTFIX no PIC on ix86: http://llvm.org/bugs/show_bug.cgi?id=3801
620 CPPFLAGS="%{rpmcppflags} -D_FILE_OFFSET_BITS=64"
623 export CFLAGS="%{rpmcflags} -g0"
624 export CXXFLAGS="%{rpmcxxflags} -g0"
625 export LDFLAGS="%{rpmldflags} -Wl,--reduce-memory-overheads"
629 -DBUILD_SHARED_LIBS:BOOL=OFF \
630 -DENABLE_LINKER_BUILD_ID:BOOL=ON \
631 -DLLVM_BINDINGS_LIST:LIST="%{?with_ocaml:ocaml}" \
632 -DLLVM_BINUTILS_INCDIR:STRING=%{_includedir} \
633 -DLLVM_BUILD_LLVM_DYLIB:BOOL=ON \
634 -DLLVM_ENABLE_ASSERTIONS:BOOL=OFF \
636 -DLLVM_ENABLE_DOXYGEN:BOOL=ON \
638 %{?with_cxxmodules:-DLLVM_ENABLE_MODULES:BOOL=ON} \
639 -DLLVM_ENABLE_PIC:BOOL=ON \
640 -DLLVM_ENABLE_RTTI:BOOL=ON \
642 -DLLVM_ENABLE_SPHINX:BOOL=ON \
644 %{?with_z3:-DLLVM_ENABLE_Z3_SOLVER:BOOL=ON} \
645 %if "%{_lib}" == "lib64"
646 -DLLVM_LIBDIR_SUFFIX:STRING=64 \
648 %if "%{_lib}" == "libx32"
649 -DLLVM_LIBDIR_SUFFIX:STRING=x32 \
651 -DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
652 -DLLVM_DEFAULT_TARGET_TRIPLE:STRING=%{_target_platform} \
654 -DLLVM_PARALLEL_LINK_JOBS:STRING=1 \
656 -DLLVM_TARGETS_TO_BUILD="%{targets_to_build}" \
658 %{cmake_on_off target_nvptx POLLY_ENABLE_GPGPU_CODEGEN} \
660 -DSPHINX_WARNINGS_AS_ERRORS=OFF
664 OPTIMIZE_OPTION="%{rpmcflags} %{rpmcppflags}"
667 %{__make} check 2>&1 | tee llvm-testlog.txt
668 %{__make} -C tools/clang test 2>&1 | tee clang-testlog.txt
672 %{__make} -C docs docs-llvm-html
673 %{__make} -C docs docs-llvm-man
675 %{__make} -C docs ocaml_doc
677 %{__make} -C tools/clang/docs docs-clang-html
678 %{__make} -C tools/clang/docs docs-clang-man
679 %{__make} -C tools/lld/docs docs-lld-html
680 # workaround failed import of _lldb
681 cp -pnL %{_lib}/python%{py3_ver}/site-packages/lldb/_lldb.so tools/lldb/docs/lldb
683 LD_LIBRARY_PATH=$(pwd)/%{_lib} \
684 -C tools/lldb/docs lldb-python-doc-package
685 %{__make} -C tools/lldb/docs lldb-cpp-doc
689 rm -rf $RPM_BUILD_ROOT
691 %{__make} -j1 -C build install \
692 DESTDIR=$RPM_BUILD_ROOT
694 # only some .pyc files are created by make install
695 %py3_comp $RPM_BUILD_ROOT%{py3_sitedir}
696 %py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir}
698 # Adjust static analyzer installation (see -libexecdir patch)
699 abs_ca_libexecdir="%{_libexecdir}/clang-analyzer"
700 rel_ca_libexecdir="${abs_ca_libexecdir#%{_prefix}}"
701 %{__sed} -i -e "s,/\.\./libexec/,/..${rel_ca_libexecdir}/," $RPM_BUILD_ROOT%{_bindir}/scan-build
702 %py3_comp $RPM_BUILD_ROOT%{_datadir}/scan-view
703 %py3_ocomp $RPM_BUILD_ROOT%{_datadir}/scan-view
705 # not installed by cmake buildsystem
706 install build/bin/pp-trace $RPM_BUILD_ROOT%{_bindir}
709 cp -p build/docs/man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
710 # these tools are not installed
711 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/{FileCheck,clang-tblgen,lldb-tblgen}.1
713 echo '.so llvm-ar.1' > $RPM_BUILD_ROOT%{_mandir}/man1/llvm-ranlib.1
716 # Move documentation back to build directory
719 %{__mv} $RPM_BUILD_ROOT%{_docdir}/llvm/ocaml-html ocamldocs
722 # and separate the apidoc
725 cp -a build/tools/clang/docs/html clang-apidoc
728 # And prepare Clang documentation
730 install -d clang-docs
731 for f in LICENSE.TXT NOTES.txt README.txt; do
732 ln tools/clang/$f clang-docs
735 %{__rm} $RPM_BUILD_ROOT%{_bindir}/{c-index-test,llvm-c-test}
737 %{__rm} $RPM_BUILD_ROOT%{_datadir}/clang/clang-format-bbedit.applescript
739 %{?with_lldb:%{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/{,__pycache__/}six*.py*}
740 # it seems it is used internally by an extra clang tool
741 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libfindAllSymbols.a
743 # disable completeness check incompatible with split packaging
744 %{__sed} -i -e '/^foreach(target .*IMPORT_CHECK_TARGETS/,/^endforeach/d; /^unset(_IMPORT_CHECK_TARGETS)/d' $RPM_BUILD_ROOT%{_libdir}/cmake/llvm/LLVMExports.cmake
747 rm -rf $RPM_BUILD_ROOT
749 %post libs -p /sbin/ldconfig
750 %postun libs -p /sbin/ldconfig
752 %post -n clang-libs -p /sbin/ldconfig
753 %postun -n clang-libs -p /sbin/ldconfig
755 %post -n lldb -p /sbin/ldconfig
756 %postun -n lldb -p /sbin/ldconfig
759 %defattr(644,root,root,755)
760 %doc CREDITS.TXT LICENSE.TXT README.txt %{?with_tests:llvm-testlog.txt}
761 %attr(755,root,root) %{_bindir}/bugpoint
762 %attr(755,root,root) %{_bindir}/dsymutil
763 %attr(755,root,root) %{_bindir}/llc
764 %attr(755,root,root) %{_bindir}/lli
765 %attr(755,root,root) %{_bindir}/llvm-addr2line
766 %attr(755,root,root) %{_bindir}/llvm-ar
767 %attr(755,root,root) %{_bindir}/llvm-as
768 %attr(755,root,root) %{_bindir}/llvm-bcanalyzer
769 %attr(755,root,root) %{_bindir}/llvm-bitcode-strip
770 %attr(755,root,root) %{_bindir}/llvm-cat
771 %attr(755,root,root) %{_bindir}/llvm-cfi-verify
772 %attr(755,root,root) %{_bindir}/llvm-cov
773 %attr(755,root,root) %{_bindir}/llvm-cvtres
774 %attr(755,root,root) %{_bindir}/llvm-cxxdump
775 %attr(755,root,root) %{_bindir}/llvm-cxxfilt
776 %attr(755,root,root) %{_bindir}/llvm-cxxmap
777 %attr(755,root,root) %{_bindir}/llvm-diff
778 %attr(755,root,root) %{_bindir}/llvm-dis
779 %attr(755,root,root) %{_bindir}/llvm-dlltool
780 %attr(755,root,root) %{_bindir}/llvm-dwarfdump
781 %attr(755,root,root) %{_bindir}/llvm-dwp
782 %attr(755,root,root) %{_bindir}/llvm-exegesis
783 %attr(755,root,root) %{_bindir}/llvm-extract
784 %attr(755,root,root) %{_bindir}/llvm-gsymutil
785 %attr(755,root,root) %{_bindir}/llvm-ifs
786 %attr(755,root,root) %{_bindir}/llvm-install-name-tool
787 %attr(755,root,root) %{_bindir}/llvm-jitlink
788 %attr(755,root,root) %{_bindir}/llvm-lib
789 %attr(755,root,root) %{_bindir}/llvm-libtool-darwin
790 %attr(755,root,root) %{_bindir}/llvm-link
791 %attr(755,root,root) %{_bindir}/llvm-lipo
792 %attr(755,root,root) %{_bindir}/llvm-lto
793 %attr(755,root,root) %{_bindir}/llvm-lto2
794 %attr(755,root,root) %{_bindir}/llvm-mc
795 %attr(755,root,root) %{_bindir}/llvm-mca
796 %attr(755,root,root) %{_bindir}/llvm-ml
797 %attr(755,root,root) %{_bindir}/llvm-modextract
798 %attr(755,root,root) %{_bindir}/llvm-mt
799 %attr(755,root,root) %{_bindir}/llvm-nm
800 %attr(755,root,root) %{_bindir}/llvm-objcopy
801 %attr(755,root,root) %{_bindir}/llvm-objdump
802 %attr(755,root,root) %{_bindir}/llvm-opt-report
803 %attr(755,root,root) %{_bindir}/llvm-otool
804 %attr(755,root,root) %{_bindir}/llvm-pdbutil
805 %attr(755,root,root) %{_bindir}/llvm-profdata
806 %attr(755,root,root) %{_bindir}/llvm-profgen
807 %attr(755,root,root) %{_bindir}/llvm-ranlib
808 %attr(755,root,root) %{_bindir}/llvm-rc
809 %attr(755,root,root) %{_bindir}/llvm-readelf
810 %attr(755,root,root) %{_bindir}/llvm-readobj
811 %attr(755,root,root) %{_bindir}/llvm-reduce
812 %attr(755,root,root) %{_bindir}/llvm-rtdyld
813 %attr(755,root,root) %{_bindir}/llvm-sim
814 %attr(755,root,root) %{_bindir}/llvm-size
815 %attr(755,root,root) %{_bindir}/llvm-split
816 %attr(755,root,root) %{_bindir}/llvm-strip
817 %attr(755,root,root) %{_bindir}/llvm-stress
818 %attr(755,root,root) %{_bindir}/llvm-strings
819 %attr(755,root,root) %{_bindir}/llvm-symbolizer
820 %attr(755,root,root) %{_bindir}/llvm-tapi-diff
821 %attr(755,root,root) %{_bindir}/llvm-tblgen
822 %attr(755,root,root) %{_bindir}/llvm-undname
823 %attr(755,root,root) %{_bindir}/llvm-windres
824 %attr(755,root,root) %{_bindir}/llvm-xray
825 %attr(755,root,root) %{_bindir}/opt
826 %attr(755,root,root) %{_bindir}/sancov
827 %attr(755,root,root) %{_bindir}/sanstats
828 %attr(755,root,root) %{_bindir}/split-file
829 %attr(755,root,root) %{_bindir}/verify-uselistorder
831 %{_mandir}/man1/bugpoint.1*
832 %{_mandir}/man1/dsymutil.1*
833 %{_mandir}/man1/lit.1*
834 %{_mandir}/man1/llc.1*
835 %{_mandir}/man1/lli.1*
836 %{_mandir}/man1/llvm-addr2line.1*
837 %{_mandir}/man1/llvm-ar.1*
838 %{_mandir}/man1/llvm-as.1*
839 %{_mandir}/man1/llvm-bcanalyzer.1*
840 %{_mandir}/man1/llvm-cov.1*
841 %{_mandir}/man1/llvm-cxxfilt.1*
842 %{_mandir}/man1/llvm-cxxmap.1*
843 %{_mandir}/man1/llvm-diff.1*
844 %{_mandir}/man1/llvm-dis.1*
845 %{_mandir}/man1/llvm-dwarfdump.1*
846 %{_mandir}/man1/llvm-exegesis.1*
847 %{_mandir}/man1/llvm-extract.1*
848 %{_mandir}/man1/llvm-install-name-tool.1*
849 %{_mandir}/man1/llvm-lib.1*
850 %{_mandir}/man1/llvm-libtool-darwin.1*
851 %{_mandir}/man1/llvm-link.1*
852 %{_mandir}/man1/llvm-lipo.1*
853 %{_mandir}/man1/llvm-locstats.1*
854 %{_mandir}/man1/llvm-mca.1*
855 %{_mandir}/man1/llvm-nm.1*
856 %{_mandir}/man1/llvm-objcopy.1*
857 %{_mandir}/man1/llvm-objdump.1*
858 %{_mandir}/man1/llvm-otool.1*
859 %{_mandir}/man1/llvm-pdbutil.1*
860 %{_mandir}/man1/llvm-profdata.1*
861 %{_mandir}/man1/llvm-profgen.1*
862 %{_mandir}/man1/llvm-ranlib.1*
863 %{_mandir}/man1/llvm-readelf.1*
864 %{_mandir}/man1/llvm-readobj.1*
865 %{_mandir}/man1/llvm-size.1*
866 %{_mandir}/man1/llvm-stress.1*
867 %{_mandir}/man1/llvm-strings.1*
868 %{_mandir}/man1/llvm-strip.1*
869 %{_mandir}/man1/llvm-symbolizer.1*
870 %{_mandir}/man1/llvm-tblgen.1*
871 %{_mandir}/man1/opt.1*
872 %{_mandir}/man1/tblgen.1*
876 %defattr(644,root,root,755)
877 %attr(755,root,root) %{_libdir}/LLVMgold.so
878 %attr(755,root,root) %{_libdir}/libLLVM-%{abi}.so
880 %attr(755,root,root) %{_libdir}/libLLVM-%{version}.so
881 %attr(755,root,root) %{_libdir}/libLTO.so.13
882 %attr(755,root,root) %{_libdir}/libRemarks.so.13
883 %attr(755,root,root) %{_libdir}/libclang-cpp.so.13
886 %defattr(644,root,root,755)
887 %attr(755,root,root) %{_bindir}/llvm-config
888 %attr(755,root,root) %{_libdir}/libLLVM.so
889 %attr(755,root,root) %{_libdir}/libLTO.so
890 %attr(755,root,root) %{_libdir}/libRemarks.so
891 %attr(755,root,root) %{_libdir}/libclang-cpp.so
892 %{_libdir}/libLLVM*.a
894 %{_includedir}/llvm-c
895 %{_libdir}/cmake/llvm
897 %{_mandir}/man1/llvm-config.1*
901 #%defattr(644,root,root,755)
905 %defattr(644,root,root,755)
911 %defattr(644,root,root,755)
912 %doc tools/polly/{CREDITS.txt,LICENSE.TXT,README} tools/polly/www/{bugs,changelog,contributors}.html
913 %attr(755,root,root) %{_libdir}/LLVMPolly.so
914 %{?with_target_nvptx:%attr(755,root,root) %{_libdir}/libGPURuntime.so}
917 %defattr(644,root,root,755)
918 %{_libdir}/libPolly.a
919 %{_libdir}/libPollyISL.a
920 %{?with_target_nvptx:%{_libdir}/libPollyPPCG.a}
922 %{_libdir}/cmake/polly
926 %defattr(644,root,root,755)
927 %doc clang-docs/{LICENSE.TXT,NOTES.txt,README.txt} %{?with_tests:clang-testlog.txt}
928 %attr(755,root,root) %{_bindir}/clang
929 %attr(755,root,root) %{_bindir}/clang++
930 %attr(755,root,root) %{_bindir}/clang-%{abi}
931 %attr(755,root,root) %{_bindir}/clang-check
932 %attr(755,root,root) %{_bindir}/clang-cl
933 %attr(755,root,root) %{_bindir}/clang-cpp
934 %attr(755,root,root) %{_bindir}/clang-doc
935 %attr(755,root,root) %{_bindir}/clang-format
936 %attr(755,root,root) %{_bindir}/clang-offload-bundler
937 %attr(755,root,root) %{_bindir}/clang-offload-wrapper
938 %attr(755,root,root) %{_bindir}/clang-repl
939 %attr(755,root,root) %{_bindir}/git-clang-format
940 %dir %{_libdir}/clang
941 %dir %{_libdir}/clang/%{version}
942 %{_libdir}/clang/%{version}/include
944 %ifarch %{x8664} aarch64
945 %dir %{_libdir}/clang/%{version}/bin
946 %attr(755,root,root) %{_libdir}/clang/%{version}/bin/hwasan_symbolize
948 %ifarch %{ix86} %{x8664} aarch64 armv7hl armv7hnl
949 %dir %{_libdir}/clang/%{version}/lib
950 %dir %{_libdir}/clang/%{version}/lib/linux
951 %dir %{_libdir}/clang/%{version}/share
955 %dir %{_libdir}/clang/%{version}/lib
956 %dir %{_libdir}/clang/%{version}/lib/linux
957 %dir %{_libdir}/clang/%{version}/share
961 %{_libdir}/clang/%{version}/lib/linux/clang_rt.*-i*86.o
962 %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-i*86.a
963 %attr(755,root,root) %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-i*86.so
966 %{_libdir}/clang/%{version}/lib/linux/clang_rt.*-x86_64.o
967 %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-x86_64.a
968 %attr(755,root,root) %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-x86_64.so
969 %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-x86_64.a.syms
972 %{_libdir}/clang/%{version}/lib/linux/clang_rt.*-aarch64.o
973 %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-aarch64.a
974 %attr(755,root,root) %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-aarch64.so
975 %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-aarch64.a.syms
977 %ifarch armv7hl armv7hnl
978 %{_libdir}/clang/%{version}/lib/linux/clang_rt.*-armhf.o
979 %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-armhf.a
980 %attr(755,root,root) %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-armhf.so
981 %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-armhf.a.syms
983 %ifarch %{ix86} %{x8664} %{arm} aarch64 mips mips64 ppc64
984 %{_libdir}/clang/%{version}/share/asan_ignorelist.txt
986 %ifarch %{ix86} %{x8664} mips64 aarch64 armv7hl armv7hnl
987 %{_libdir}/clang/%{version}/share/cfi_ignorelist.txt
989 %ifarch %{x8664} aarch64 mips64
990 %{_libdir}/clang/%{version}/share/dfsan_abilist.txt
991 %{_libdir}/clang/%{version}/share/msan_ignorelist.txt
993 %ifarch %{x8664} aarch64
994 %{_libdir}/clang/%{version}/share/hwasan_ignorelist.txt
998 %{_libdir}/clang/%{version}/share/asan_ignorelist.txt
999 %{_libdir}/clang/%{version}/share/cfi_ignorelist.txt
1000 %{_libdir}/clang/%{version}/share/dfsan_abilist.txt
1001 %{_libdir}/clang/%{version}/share/msan_ignorelist.txt
1002 %{_libdir}/clang/%{version}/share/hwasan_ignorelist.txt
1006 %dir %{_datadir}/clang
1007 %{_datadir}/clang/clang-format-diff.py
1009 %files -n clang-libs
1010 %defattr(644,root,root,755)
1011 %attr(755,root,root) %{_libdir}/libclang.so.%{abi}
1012 %attr(755,root,root) %{_libdir}/libclang.so.*.*.*
1014 %if %{with rt} && %{with multilib}
1015 %ifarch %{x8664} x32
1016 %files -n clang-multilib
1017 %defattr(644,root,root,755)
1018 %{_libdir}/clang/%{version}/lib/linux/clang_rt.*-i386.o
1019 %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-i386.a
1020 %attr(755,root,root) %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-i386.so
1023 %{_libdir}/clang/%{version}/lib/linux/clang_rt.*-x86_64.o
1024 %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-x86_64.a
1025 %attr(755,root,root) %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-x86_64.so
1026 %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-x86_64.a.syms
1030 %files -n clang-analyzer
1031 %defattr(644,root,root,755)
1032 %dir %{_libexecdir}/clang-analyzer
1034 %attr(755,root,root) %{_bindir}/scan-build
1035 %attr(755,root,root) %{_libexecdir}/clang-analyzer/c++-analyzer
1036 %attr(755,root,root) %{_libexecdir}/clang-analyzer/ccc-analyzer
1037 %{_datadir}/scan-build
1038 %{_mandir}/man1/scan-build.1*
1040 %attr(755,root,root) %{_bindir}/analyze-build
1041 %attr(755,root,root) %{_bindir}/intercept-build
1042 %attr(755,root,root) %{_bindir}/scan-build-py
1043 %attr(755,root,root) %{_bindir}/scan-view
1044 %attr(755,root,root) %{_libexecdir}/clang-analyzer/analyze-c++
1045 %attr(755,root,root) %{_libexecdir}/clang-analyzer/analyze-cc
1046 %attr(755,root,root) %{_libexecdir}/clang-analyzer/intercept-c++
1047 %attr(755,root,root) %{_libexecdir}/clang-analyzer/intercept-cc
1048 %{_prefix}/lib/libear
1049 %{_prefix}/lib/libscanbuild
1050 %{_datadir}/scan-view
1052 %files -n clang-devel
1053 %defattr(644,root,root,755)
1054 %attr(755,root,root) %{_libdir}/libclang.so
1055 %{_libdir}/libclang*.a
1056 %{_includedir}/clang
1057 %{_includedir}/clang-c
1058 %{_includedir}/clang-tidy
1059 %{_libdir}/cmake/clang
1062 %defattr(644,root,root,755)
1063 %doc tools/clang/docs/*.{html,png,txt}
1066 %files -n clang-apidocs
1067 %defattr(644,root,root,755)
1071 %files -n clang-tools-extra
1072 %defattr(644,root,root,755)
1073 %doc tools/clang/tools/extra/{CODE_OWNERS.TXT,README.txt}
1074 %attr(755,root,root) %{_bindir}/clang-apply-replacements
1075 %attr(755,root,root) %{_bindir}/clang-change-namespace
1076 %attr(755,root,root) %{_bindir}/clang-extdef-mapping
1077 %attr(755,root,root) %{_bindir}/clang-include-fixer
1078 %attr(755,root,root) %{_bindir}/clang-move
1079 %attr(755,root,root) %{_bindir}/clang-query
1080 %attr(755,root,root) %{_bindir}/clang-refactor
1081 %attr(755,root,root) %{_bindir}/clang-rename
1082 %attr(755,root,root) %{_bindir}/clang-reorder-fields
1083 %attr(755,root,root) %{_bindir}/clang-scan-deps
1084 %attr(755,root,root) %{_bindir}/clang-tidy
1085 %attr(755,root,root) %{_bindir}/clangd
1086 %attr(755,root,root) %{_bindir}/diagtool
1087 %attr(755,root,root) %{_bindir}/find-all-symbols
1088 %attr(755,root,root) %{_bindir}/hmaptool
1089 %attr(755,root,root) %{_bindir}/modularize
1090 %attr(755,root,root) %{_bindir}/pp-trace
1091 %attr(755,root,root) %{_bindir}/run-clang-tidy
1092 %{_datadir}/clang/clang-include-fixer.py
1093 %{_datadir}/clang/clang-tidy-diff.py
1094 %{_datadir}/clang/run-find-all-symbols.py
1097 %defattr(644,root,root,755)
1098 %doc tools/lld/{LICENSE.TXT,README.md}
1099 %attr(755,root,root) %{_bindir}/ld.lld
1100 %attr(755,root,root) %{_bindir}/ld64.lld
1101 %attr(755,root,root) %{_bindir}/ld64.lld.darwinnew
1102 %attr(755,root,root) %{_bindir}/ld64.lld.darwinold
1103 %attr(755,root,root) %{_bindir}/lld
1104 %attr(755,root,root) %{_bindir}/lld-link
1105 %attr(755,root,root) %{_bindir}/wasm-ld
1108 %defattr(644,root,root,755)
1109 %{_libdir}/liblld[ACDEHMRWXY]*.a
1111 %{_libdir}/cmake/lld
1115 %defattr(644,root,root,755)
1116 %attr(755,root,root) %{_bindir}/lldb
1117 %attr(755,root,root) %{_bindir}/lldb-argdumper
1118 %attr(755,root,root) %{_bindir}/lldb-instr
1119 %attr(755,root,root) %{_bindir}/lldb-server
1120 %attr(755,root,root) %{_bindir}/lldb-vscode
1121 %attr(755,root,root) %{_libdir}/liblldb.so.%{version}
1122 %attr(755,root,root) %ghost %{_libdir}/liblldb.so.13
1123 %attr(755,root,root) %ghost %{_libdir}/liblldbIntelFeatures.so.13
1124 %dir %{py3_sitedir}/lldb
1125 %attr(755,root,root) %{py3_sitedir}/lldb/lldb-argdumper
1126 %{py3_sitedir}/lldb/formatters
1127 %{py3_sitedir}/lldb/utils
1128 %{py3_sitedir}/lldb/__init__.py
1129 %{py3_sitedir}/lldb/__pycache__
1130 %{py3_sitedir}/lldb/embedded_interpreter.py
1131 %dir %{py3_sitedir}/lldb/plugins
1132 %{py3_sitedir}/lldb/plugins/__pycache__
1133 %{py3_sitedir}/lldb/plugins/__init__.py
1134 %{py3_sitedir}/lldb/plugins/scripted_process.py
1135 %attr(755,root,root) %{py3_sitedir}/lldb/_lldb.so
1137 %files -n lldb-devel
1138 %defattr(644,root,root,755)
1139 %attr(755,root,root) %{_libdir}/liblldb.so
1140 %attr(755,root,root) %{_libdir}/liblldbIntelFeatures.so
1146 %defattr(644,root,root,755)
1147 %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllllvm*.so
1148 %dir %{_libdir}/ocaml/llvm
1149 %{_libdir}/ocaml/llvm/llvm*.cma
1150 %{_libdir}/ocaml/llvm/llvm*.cmi
1151 %{_libdir}/ocaml/META.llvm*
1154 %defattr(644,root,root,755)
1155 %{_libdir}/ocaml/llvm/libllvm*.a
1156 %{_libdir}/ocaml/llvm/llvm*.a
1157 %{_libdir}/ocaml/llvm/llvm*.cmx
1158 %{_libdir}/ocaml/llvm/llvm*.cmxa
1159 %{_libdir}/ocaml/llvm/llvm*.mli
1162 %defattr(644,root,root,755)
1167 %defattr(644,root,root,755)
1168 %{_datadir}/opt-viewer
1170 %files -n vim-plugin-clang
1171 %defattr(644,root,root,755)
1172 %{_datadir}/clang/clang-format.py
1173 %{_datadir}/clang/clang-rename.py