]> git.pld-linux.org Git - packages/llvm.git/blame - llvm.spec
up to 17.0.3
[packages/llvm.git] / llvm.spec
CommitLineData
30b45f1a
JR
1#
2# NOTE:
3# - normal build (x86_64) requires about 80 GB of disk space
4#
6df3b432
JB
5# TODO:
6# - move and package:
7# %{_datadir}/clang/clang-format-sublime.py - sublime plugin
5013c7ea
JB
8# %{_datadir}/clang/clang-format.el - clang tools emacs integration
9# %{_datadir}/clang/clang-include-fixer.el
10# %{_datadir}/clang/clang-rename.el
6df3b432 11# - no content in doc package (it used to contain parts of clang apidocs and some examples)
6c2b1a44 12# - system isl in polly?
90b20139 13# - dependencies and files for lua module
970c3a73 14# %{_libdir}/lua/5.3/lldb.so
90b20139 15# - figure out whether we need obj.MLIRCAPIIR files
313f7f73
JP
16# - cmake dependencies mess (LLVMExports.cmake appears to require all -devels):
17# with llvm-devel and spirv-tools-devel installed but without llvm-mlir (or other packages):
18# $ cat CMakeLists.txt
19# find_package(LLVM)
20# find_package(SPIRV-Tools)
21# $ cmake -B build
22# ...
23# The imported target "mlir-tblgen" references the file
24#
25# "/usr/bin/mlir-tblgen"
26#
27# but this file does not exist. Possible reasons include:
28# ...
bc88141a 29#
9556f4c9 30# Conditional build:
a531db5e 31%bcond_without lldb # LLDB debugger
d27b2b77 32%bcond_without mlir # MLIR libraries and tools (required for Flang)
20451c6c 33%bcond_with flang # Flang (Fortran18) compiler (heavy memory requirements during build)
a531db5e
JP
34%bcond_without polly # Polly cache-locality optimization, auto-parallelism and vectorization
35%bcond_without rt # compiler-rt libraries
36%bcond_without multilib # compiler-rt multilib libraries
37%bcond_without ocaml # OCaml binding
38%bcond_without z3 # Z3 constraint solver support in Clang Static Analyzer
39%bcond_without doc # HTML docs and man pages
40%bcond_without target_aarch64 # AArch64 target support
41%bcond_without target_amdgpu # AMDGPU target support
42%bcond_without target_arm # ARM target support
43%bcond_without target_avr # AVR target support
44%bcond_without target_bpf # BPF target support
45%bcond_without target_hexagon # Hexagon target support
46%bcond_without target_lanai # Lanai target support
8c2b8be4 47%bcond_without target_loongarch # LoongArch target support
a531db5e
JP
48%bcond_without target_mips # Mips target support
49%bcond_without target_msp430 # MSP430 target support
50%bcond_without target_nvptx # NVPTX target support
51%bcond_without target_powerpc # PowerPC target support
52%bcond_without target_riscv # RISCV target support
53%bcond_without target_sparc # Sparc target support
54%bcond_without target_systemz # SystemZ target support
90b20139 55%bcond_without target_ve # VE target support
a531db5e
JP
56%bcond_without target_webassembly # WebAssembly target support
57%bcond_without target_x86 # X86 target support
58%bcond_without target_xcore # XCore target support
a531db5e
JP
59%bcond_with cxxmodules # C++20 modules (requires support in bootstrap compiler)
60%bcond_with apidocs # doxygen docs (HUGE, so they are not built by default)
61%bcond_with tests # run tests
62%bcond_with lowmem # lower memory requirements
9556f4c9 63
4ba3b2b3 64# No ocaml on other arches or no native ocaml (required for ocaml-ctypes)
5013c7ea 65%ifnarch %{ix86} %{x8664} %{arm} aarch64 ppc sparc sparcv9
9556f4c9
ER
66%undefine with_ocaml
67%endif
68
927fe779 69%ifarch armv3l %{armv4} %{armv5} %{armv6}
bdd7e0f7
JP
70%undefine with_rt
71%endif
72
927fe779 73%ifarch i386 i486 armv3l %{armv4} %{armv5} %{armv6}
58b1e490
JP
74%define with_libatomic 1
75%endif
76
8c2b8be4 77%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_loongarch:LoongArch;}%{?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;}
a531db5e 78
d27b2b77
JB
79%if %{without mlir}
80%undefine with_flang
81%endif
82
aa11c230 83Summary: The Low Level Virtual Machine (An Optimizing Compiler Infrastructure)
2326a99f 84Summary(pl.UTF-8): Niskopoziomowa maszyna wirtualna (infrastruktura kompilatora optymalizującego)
aa11c230 85Name: llvm
6bf3b6f2 86Version: 17.0.3
c5d78472 87Release: 1
77d2fdeb 88License: Apache 2.0 with LLVM exceptions
aa11c230 89Group: Development/Languages
44d18de7
JB
90#Source0Download: https://github.com/llvm/llvm-project/releases/
91Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/%{name}-%{version}.src.tar.xz
6bf3b6f2 92# Source0-md5: 09ae5355b52234ecc5b934aa1c9abd2c
44d18de7 93Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/clang-%{version}.src.tar.xz
6bf3b6f2 94# Source1-md5: 170a8fcbbe0abc551e688532aaf86d1f
44d18de7 95Source2: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/compiler-rt-%{version}.src.tar.xz
6bf3b6f2 96# Source2-md5: e2fb4a0451b08e01c1123eb1841f8549
44d18de7 97Source3: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/lldb-%{version}.src.tar.xz
6bf3b6f2 98# Source3-md5: 549c99de14169a476bf8965362b2939a
44d18de7 99Source4: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/polly-%{version}.src.tar.xz
6bf3b6f2 100# Source4-md5: 71e608c54a76b6b2147acd543d9d844d
44d18de7 101Source5: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/clang-tools-extra-%{version}.src.tar.xz
6bf3b6f2 102# Source5-md5: 42cbabd9fe67bdbfc620fa89044e5a12
44d18de7 103Source6: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/lld-%{version}.src.tar.xz
6bf3b6f2 104# Source6-md5: 5698d1975b7be92c6c519a7a2614b404
1a356f89 105Source7: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/flang-%{version}.src.tar.xz
6bf3b6f2 106# Source7-md5: 5e9d79fc32269e6c3e260f36ad8ca1c7
d4ee5c50 107Source8: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/mlir-%{version}.src.tar.xz
6bf3b6f2 108# Source8-md5: 106df68eeada982f637c360a96946967
0fd19552 109Source9: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/cmake-%{version}.src.tar.xz
6bf3b6f2 110# Source9-md5: cb0f6545fcd5d6b9397b24c9aa598152
9f7b77bd 111Patch1: %{name}-pld.patch
9f7b77bd 112Patch3: x32-gcc-toolchain.patch
d706a70d 113Patch5: %{name}-ocaml-shared.patch
1a356f89 114Patch6: %{name}-flang.patch
40bef2a3 115Patch7: llvm12-build_fixes.patch
4a967aa9 116Patch8: %{name}-selective_bindings.patch
e25801fb 117Patch9: %{name}-libexecdir.patch
90b20139 118Patch10: compiler-rt-paths.patch
0fd19552 119Patch11: cmake-utils-path-override.patch
36fac0a6
JP
120Patch12: cmake-utils-path-override-rt.patch
121Patch13: x32-compiler-rt.patch
77d2fdeb 122URL: https://llvm.org/
bc88141a 123BuildRequires: bash
803f8d9b 124BuildRequires: binutils-devel
d997b14b 125BuildRequires: bison
64ff6369 126BuildRequires: cmake >= 3.20.0
d997b14b 127BuildRequires: flex
d997b14b 128BuildRequires: groff
58b1e490 129%{?with_libatomic:BuildRequires: libatomic-devel}
6c2b1a44 130BuildRequires: libedit-devel
bc88141a 131BuildRequires: libltdl-devel
44d18de7 132BuildRequires: libpfm-devel
ad697ab7 133BuildRequires: libstdc++-devel >= 6:5
44d18de7 134BuildRequires: libxml2-devel >= 2
30a78beb 135%{?with_ocaml:BuildRequires: llvm-devel >= 17}
6c2b1a44 136BuildRequires: ncurses-devel
2bbd0701 137%if %{with ocaml}
5013c7ea 138BuildRequires: ocaml >= 4.00.0
c6c890ee 139BuildRequires: ocaml-ctypes-devel >= 0.4
2bbd0701 140BuildRequires: ocaml-findlib
77c13dab 141BuildRequires: ocaml-ocamldoc
85ae1a18 142%{?with_tests:BuildRequires: ocaml-ounit >= 2}
2bbd0701 143%endif
8132e62b 144BuildRequires: perl-base >= 1:5.6
8c156e7d 145BuildRequires: perl-tools-pod
134d4fc5 146BuildRequires: python3 >= 1:3
40bef2a3 147BuildRequires: python3-PyYAML
b27e1e48 148BuildRequires: python3-modules
40bef2a3 149BuildRequires: python3-pygments >= 2.0
1aabdf46 150BuildRequires: rpm-build >= 4.6
8c156e7d 151BuildRequires: rpm-pythonprov
927fe779 152BuildRequires: rpmbuild(macros) >= 2.007
b0068ae4 153%{?with_doc:BuildRequires: sphinx-pdg}
b883cf1e 154BuildRequires: tar >= 1:1.22
78991aba 155BuildRequires: xar-devel >= 1.6
b883cf1e 156BuildRequires: xz
200602f4 157%{?with_z3:BuildRequires: z3-devel >= 4.7.1}
6c2b1a44 158BuildRequires: zlib-devel
42c822a1 159BuildRequires: zstd-devel
dd9350c7
JB
160%if %{with apidocs}
161BuildRequires: doxygen
162BuildRequires: graphviz
163%endif
164%if %{with tests}
165BuildRequires: dejagnu
dd9350c7 166BuildRequires: tcl-devel
356a0bbd 167%endif
589b92f5
JB
168%if %{with rt} && %{with multilib}
169%ifarch %{x8664}
170BuildRequires: gcc-c++-multilib-32
90b20139 171BuildRequires: glibc-devel(ix86)
589b92f5
JB
172BuildRequires: libstdc++-multilib-32-devel
173%endif
fe705967 174%ifarch x32
3b28b31d
JB
175BuildRequires: gcc-c++-multilib-32
176BuildRequires: gcc-c++-multilib-64
90b20139 177BuildRequires: glibc-devel(ix86)
07f61ae5 178BuildRequires: glibc-devel(x86_64)
3b28b31d
JB
179BuildRequires: libstdc++-multilib-32-devel
180BuildRequires: libstdc++-multilib-64-devel
fe705967 181%endif
589b92f5 182%endif
b883cf1e 183%if %{with lldb}
c6c890ee 184BuildRequires: epydoc
b883cf1e 185BuildRequires: libxml2-devel >= 2
ad697ab7 186BuildRequires: lua-devel
b883cf1e 187BuildRequires: ncurses-ext-devel
134d4fc5 188BuildRequires: python3-devel >= 1:3.2
c330693d 189%{?with_doc:BuildRequires: python3-recommonmark}
12aa4b7a 190BuildRequires: swig-python >= 3.0.11
ad697ab7 191BuildRequires: xz-devel
b883cf1e 192%endif
b0068ae4 193%if %{with polly}
6c2b1a44
JB
194#BuildRequires: gmp-devel or imath-devel (private copy in polly/lib/External/isl/imath)
195# private copy in polly/lib/External/isl
ad697ab7 196#BuildRequires: isl-devel >= 0.22.1
6c2b1a44 197#TODO (bcond): cuda-devel (with POLLY_ENABLE_GPGPU_CODEGEN=ON)
9b8c1bd2 198%{?with_target_nvptx:BuildRequires: ocl-icd-libOpenCL-devel}
b0068ae4 199%endif
634a3e5b
JB
200%if %{with ocaml}
201BuildConflicts: llvm-ocaml
202%endif
8c514f23 203Requires: %{name}-libs = %{version}-%{release}
9556f4c9
ER
204# LLVM is not supported on PPC64
205# http://llvm.org/bugs/show_bug.cgi?id=3729
206ExcludeArch: ppc64
aa11c230 207BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
208
64ff6369 209%define abi 17
356a0bbd 210%define _sysconfdir /etc/%{name}
021b3c3d 211
9556f4c9 212%define specflags_ppc -fno-var-tracking-assignments
7a1e73fa
JP
213
214# objcopy: BFD (GNU Binutils) 2.32 assertion fail format.c:459
215# objcopy: error: .../libLLVM-8.so(.debug_gnu_pubtypes) is too large (0x1ceee347 bytes)
216# objcopy: .../libLLVM-8.so[.debug_gnu_pubtypes]: memory exhausted
217%ifarch x32
218%define _enable_debug_packages 0
219%endif
af221038 220# ix86 and x32 - the same issue as https://llvm.org/bugs/show_bug.cgi?id=27237
5013c7ea
JB
221# use -gsplit-dwarf only when building packages with debuginfo
222# to avoid excessive disk space usage
50fe0adf
JB
223%if 0%{?_enable_debug_packages}
224%define specflags -gsplit-dwarf
225%endif
9556f4c9 226
6832a5c5
ER
227# strip corrupts: $RPM_BUILD_ROOT/usr/lib64/llvm-gcc/bin/llvm-c++ ...
228%define _noautostrip .*/\\(libmud.*\\.a\\|bin/llvm-.*\\|lib.*++\\.a\\)
229
782c6e1e
ER
230# clang doesn't know -fvar-tracking-assignments, and leaving it here would pollute llvm-config
231# -Werror=format-security is for swig
232# TODO: add - -Werror=format-security to tools/lldb/scripts/LLDBWrapPython.cpp
4a1d21cc 233%define filterout_c -fvar-tracking-assignments
782c6e1e 234%define filterout_cxx -fvar-tracking-assignments -Werror=format-security
4a1d21cc
JR
235%define filterout_ccpp -fvar-tracking-assignments
236
aa11c230 237%description
238LLVM is a compiler infrastructure designed for compile-time,
239link-time, runtime, and idle-time optimization of programs from
240arbitrary programming languages. LLVM is written in C++ and has been
241developed since 2000 at the University of Illinois and Apple. It
621ec11f
JB
242currently supports compilation of C and C++ programs using clang
243frontend.
aa11c230 244
2326a99f
JB
245%description -l pl.UTF-8
246LLVM to infrastruktura kompilatora zaprojektowana do optymalizacji
247czasu kompilowania, linkowania, działania i bezczynności programów w
248dowolnych językach programowania. Jest napisana w C++, rozwijana od
249roku 2000 przez Uniwersytet w Illinois i Apple. Aktualnie obsługuje
621ec11f 250kompilację programów w C i C++ przy użyciu frontendu clang.
2326a99f 251
8c514f23 252%package libs
87977e26
JR
253Summary: LLVM shared libraries
254Summary(pl.UTF-8): Biblioteki współdzielone LLVM-a
8c514f23
JB
255Group: Libraries
256Conflicts: llvm < 3.2
257
258%description libs
87977e26 259LLVM shared libraries.
8c514f23
JB
260
261%description libs -l pl.UTF-8
87977e26 262Biblioteki współdzielone LLVM-a.
8c514f23 263
bc88141a 264%package devel
621ec11f
JB
265Summary: Static libraries and header files for LLVM
266Summary(pl.UTF-8): Biblioteki statyczne i pliki nagłówkowe dla LLVM-a
bc88141a 267Group: Development/Languages
369cfc1c 268Requires: %{name}-libs%{?_isa} = %{version}-%{release}
335a154d 269%{?with_libatomic:Requires: libatomic-devel}
bc88141a 270Requires: libstdc++-devel >= 6:3.4
335a154d
JP
271Requires: ncurses-devel
272%{?with_z3:Requires: z3-devel}
273Requires: zlib-devel
274Requires: zstd-devel
bc88141a
ER
275
276%description devel
621ec11f
JB
277This package contains static libraries and header files needed to
278develop new native programs that use the LLVM infrastructure.
279
280%description devel -l pl.UTF-8
281Ten pakiet zawiera biblioteki statyczne oraz pliki nagłówkowe
282potrzebne do tworzenia nowych programów natywnych wykorzystujących
283infrastrukturę LLVM.
bc88141a 284
9556f4c9
ER
285%package doc
286Summary: Documentation for LLVM
621ec11f 287Summary(pl.UTF-8): Dokumentacja do LLVM-a
9556f4c9
ER
288Group: Documentation
289# does not require base
bc88141a 290
9556f4c9
ER
291%description doc
292Documentation for the LLVM compiler infrastructure.
bc88141a 293
621ec11f
JB
294%description doc -l pl.UTF-8
295Dokumentacja do infrastruktury kompilatorów LLVM.
296
9556f4c9
ER
297%package apidocs
298Summary: API documentation for LLVM
621ec11f 299Summary(pl.UTF-8): Dokumentacja API LLVM-a
9556f4c9
ER
300Group: Development/Languages
301Requires: %{name}-doc = %{version}-%{release}
d089395f 302BuildArch: noarch
bc88141a 303
9556f4c9
ER
304%description apidocs
305API documentation for the LLVM compiler infrastructure.
bc88141a 306
621ec11f
JB
307%description apidocs -l pl.UTF-8
308Dokumentacja API infrastruktury kompilatorów LLVM.
309
d27b2b77
JB
310%package mlir
311Summary: LLVM Multi-Level Intermediate Representation libraries and tools
312Summary(pl.UTF-8): Biblioteki i narzędzia wielopoziomowej reprezentacji pośredniej LLVM
313Group: Development/Tools
314URL: https://mlir.llvm.org/
315Requires: %{name} = %{version}-%{release}
316
317%description mlir
318LLVM Multi-Level Intermediate Representation libraries and tools.
319
320%description mlir -l pl.UTF-8
321Biblioteki i narzędzia wielopoziomowej reprezentacji pośredniej LLVM.
322
323%package mlir-devel
324Summary: LLVM Multi-Level Intermediate Representation development files
325Summary(pl.UTF-8): Pliki do programowania z użyciem wielopoziomowej reprezentacji pośredniej LLVM
326Group: Development/Tools
327URL: https://mlir.llvm.org/
328Requires: %{name}-devel = %{version}-%{release}
329Requires: %{name}-mlir = %{version}-%{release}
330
331%description mlir-devel
332LLVM Multi-Level Intermediate Representation development files.
333
334%description mlir-devel -l pl.UTF-8
335Pliki do programowania z użyciem wielopoziomowej reprezentacji
336pośredniej LLVM.
337
b0068ae4
JB
338%package polly
339Summary: Polyhedral optimizations for LLVM
340Summary(pl.UTF-8): Optymalizacje wielościanowe dla LLVM-a
341Group: Development/Tools
77d2fdeb 342URL: https://polly.llvm.org/
b0068ae4
JB
343Requires: %{name} = %{version}-%{release}
344
345%description polly
346Polly is a high-level loop and data-locality optimizer and
347optimization infrastructure for LLVM. It uses an abstract mathematical
348representation based on integer polyhedra to analyze and optimize the
349memory access pattern of a program.
350
351%description polly -l pl.UTF-8
352Polly to wysokopoziomowy optymalizator i infrastruktura LLVM-a do
353optymalizacji pętli i położenia danych. Wykorzystuje abstrakcyjną
354reprezentację matematyczną opartą na wielościanach całkowitoliczbowych
355do analizy i optymalizacji wzorców dostępu do pamięci przez program.
356
357%package polly-devel
358Summary: Header files for LLVM Polly optimization infrastructure
359Summary(pl.UTF-8): Pliki nagłówkowe infrastruktury optymalizacji LLVM-a Polly
360Group: Development/Libraries
77d2fdeb 361URL: https://polly.llvm.org/
b0068ae4
JB
362Requires: %{name}-devel = %{version}-%{release}
363Requires: %{name}-polly = %{version}-%{release}
364
365%description polly-devel
366Header files for LLVM Polly optimization infrastructure.
367
368%description polly-devel -l pl.UTF-8
369Pliki nagłówkowe infrastruktury optymalizacji LLVM-a Polly.
370
d997b14b
AM
371%package -n clang
372Summary: A C language family frontend for LLVM
621ec11f 373Summary(pl.UTF-8): Frontend LLVM-a do języków z rodziny C
d997b14b 374Group: Development/Languages
77d2fdeb 375URL: https://clang.llvm.org/
8c514f23 376Requires: %{name} = %{version}-%{release}
87977e26 377Requires: clang-libs = %{version}-%{release}
d997b14b
AM
378
379%description -n clang
380clang: noun 1. A loud, resonant, metallic sound. 2. The strident call
381of a crane or goose. 3. C-language family front-end toolkit.
382
383The goal of the Clang project is to create a new C, C++, Objective C
384and Objective C++ front-end for the LLVM compiler. Its tools are built
385as libraries and designed to be loosely-coupled and extendable.
386
621ec11f
JB
387%description -n clang -l pl.UTF-8
388clang (z angielskiego): 1. głośny, rezonujący, metaliczny dźwięk; 2.
389piskliwy odgłos żurawia lub gęsi; 3. narzędzia frontendowe dla języków
390z rodziny C.
391
392Celem projektu Clang jest utworzenie nowego frontendu dla kompilatora
393LLVM do języków C, C++, Objective C i Objective C++. Narzędzia są
394budowane jako biblioteki i zaprojektowane z myślą o swobodnym łączeniu
395i rozszerzaniu.
396
9eefd942
JR
397%package -n clang-multilib
398Summary: A C language family frontend for LLVM - 32-bit support
399Summary(pl.UTF-8): Frontend LLVM-a do języków z rodziny C - obsługa binariów 32-bitowych
9eefd942 400Group: Development/Languages
77d2fdeb 401URL: https://clang.llvm.org/
9eefd942
JR
402Requires: clang = %{version}-%{release}
403
404%description -n clang-multilib
405clang: noun 1. A loud, resonant, metallic sound. 2. The strident call
406of a crane or goose. 3. C-language family front-end toolkit.
407
408The goal of the Clang project is to create a new C, C++, Objective C
409and Objective C++ front-end for the LLVM compiler. Its tools are built
410as libraries and designed to be loosely-coupled and extendable.
411
412This package contains the C compiler support for producing 32-bit
413programs on 64-bit host.
414
415%description -n clang-multilib -l pl.UTF-8
416clang (z angielskiego): 1. głośny, rezonujący, metaliczny dźwięk; 2.
417piskliwy odgłos żurawia lub gęsi; 3. narzędzia frontendowe dla języków
418z rodziny C.
419
420Celem projektu Clang jest utworzenie nowego frontendu dla kompilatora
421LLVM do języków C, C++, Objective C i Objective C++. Narzędzia są
422budowane jako biblioteki i zaprojektowane z myślą o swobodnym łączeniu
423i rozszerzaniu.
424
425Ten pakiet zawiera rozszerzenie kompilatora C o obsługę tworzenia
426programów 32-bitowych na maszynie 64-bitowej.
427
cb7d0198
JB
428%package -n clang-libs
429Summary: Clang shared libraries
430Summary(pl.UTF-8): Biblioteki współdzielone Clanga
431Group: Libraries
432URL: https://clang.llvm.org/
d997b14b 433
cb7d0198
JB
434%description -n clang-libs
435Clang shared libraries.
d997b14b 436
cb7d0198
JB
437%description -n clang-libs -l pl.UTF-8
438Biblioteki współdzielone Clanga.
621ec11f 439
9556f4c9 440%package -n clang-devel
621ec11f
JB
441Summary: Header files for Clang
442Summary(pl.UTF-8): Pliki nagłówkowe Clanga
9556f4c9 443Group: Development/Languages
77d2fdeb 444URL: https://clang.llvm.org/
8c514f23 445Requires: %{name}-devel = %{version}-%{release}
9556f4c9 446Requires: clang = %{version}-%{release}
07de6be6 447%{?with_polly:Requires: llvm-polly-devel = %{version}-%{release}}
9556f4c9
ER
448
449%description -n clang-devel
450This package contains header files for the Clang compiler.
451
621ec11f
JB
452%description -n clang-devel -l pl.UTF-8
453Ten pakiet zawiera pliki nagłówkowe kompilatora Clang.
454
9556f4c9
ER
455%package -n clang-doc
456Summary: Documentation for Clang
621ec11f 457Summary(pl.UTF-8): Dokumentacja do Clanga
77d2fdeb 458URL: https://clang.llvm.org/
9556f4c9
ER
459Group: Documentation
460Requires: %{name} = %{version}-%{release}
d089395f 461BuildArch: noarch
9556f4c9
ER
462
463%description -n clang-doc
464Documentation for the Clang compiler front-end.
465
621ec11f
JB
466%description -n clang-doc -l pl.UTF-8
467Dokumentacja do frontendu kompilatora Clang.
468
9556f4c9
ER
469%package -n clang-apidocs
470Summary: API documentation for Clang
621ec11f 471Summary(pl.UTF-8): Dokumentacja API Clanga
77d2fdeb 472URL: https://clang.llvm.org/
9556f4c9
ER
473Group: Development/Languages
474Requires: clang-doc = %{version}-%{release}
d089395f 475BuildArch: noarch
9556f4c9
ER
476
477%description -n clang-apidocs
478API documentation for the Clang compiler.
479
621ec11f
JB
480%description -n clang-apidocs -l pl.UTF-8
481Dokumentacja API kompilatora Clang.
482
cb7d0198
JB
483%package -n clang-analyzer
484Summary: A source code analysis framework
485Summary(pl.UTF-8): Szkielet do analizy kodu źródłowego
486Group: Development/Languages
487URL: https://clang-analyzer.llvm.org/
488Requires: clang = %{version}-%{release}
489# not picked up automatically since files are currently not instaled
490# in standard Python hierarchies yet
491Requires: python3
492
493%description -n clang-analyzer
494The Clang Static Analyzer consists of both a source code analysis
495framework and a standalone tool that finds bugs in C and Objective-C
496programs. The standalone tool is invoked from the command-line, and is
497intended to run in tandem with a build of a project or code base.
498
499%description -n clang-analyzer -l pl.UTF-8
500Clang Static Analyzer składa się ze szkieletu do analizy kodu
501źródłowego oraz samodzielnego narzędzia znajdującego błędy w
502programach w C i C++. Narzędzie jest wywoływane z linii poleceń, z
503myślą o uruchamianiu wraz z kompilacją projektu lub kodu.
504
b0068ae4
JB
505%package -n clang-tools-extra
506Summary: Extra tools for Clang
507Summary(pl.UTF-8): Dodatkowe narzędzia do kompilatora Clang
508Group: Development/Tools
77d2fdeb 509URL: https://clang.llvm.org/docs/ClangTools.html
b0068ae4
JB
510Requires: clang = %{version}-%{release}
511
512%description -n clang-tools-extra
513Extra tools for Clang.
514
515%description -n clang-tools-extra -l pl.UTF-8
516Dodatkowe narzędzia do kompilatora Clang.
517
d13e7dd0
JB
518%package -n bash-completion-clang
519Summary: Bash completion for clang command
520Summary(pl.UTF-8): Bashowe dopełnianie składni polecenia clang
521Group: Applications/Shells
d60cad67 522Requires: bash-completion >= 1:2.0
d13e7dd0 523Requires: clang = %{version}-%{release}
d089395f 524BuildArch: noarch
d13e7dd0
JB
525
526%description -n bash-completion-clang
527Bash completion for clang command.
528
529%description -n bash-completion-clang -l pl.UTF-8
530Bashowe dopełnianie składni polecenia clang.
531
d27b2b77
JB
532%package -n flang
533Summary: Fortran frontend for LLVM
534Summary(pl.UTF-8): Frontend LLVM-a do Fortranu
535Group: Development/Languages
536URL: http://flang.llvm.org/
537Requires: %{name}-mlir = %{version}-%{release}
538
539%description -n flang
540Flang is a ground-up implementation of a Fortran front end written in
541modern C++.
542
543%description -n flang -l pl.UTF-8
544Flang to napisana od podstaw we współczesnym C++ implementacja
545frontendu do Fortranu.
546
547%package -n flang-devel
548Summary: Fortran frontend for LLVM - development files
549Summary(pl.UTF-8): Frontend LLVM-a do Fortranu - pliki programistyczne
550Group: Development/Languages
551URL: http://flang.llvm.org/
552Requires: %{name}-mlir-devel = %{version}-%{release}
553Requires: flang-devel = %{version}-%{release}
554
555%description -n flang-devel
556Development files for LLVM Fortran frontend.
557
558%description -n flang-devel -l pl.UTF-8
559Pliki prosramistyczne frontendu LLVM do Fortranu.
560
ba1cf74d
JB
561%package -n lld
562Summary: The LLVM linker
563Summary(pl.UTF-8): Konsolidator z projektu LLVM
564Group: Development/Libraries
77d2fdeb 565URL: https://lld.llvm.org/
ba1cf74d
JB
566Requires: %{name} = %{version}-%{release}
567
568%description -n lld
569lld is a new set of modular code for creating linker tools.
570
571%description -n lld -l pl.UTF-8
572lld to nowy zbiór modularnego kodu do tworzenia narzędzi
573konsolidujących.
574
575%package -n lld-devel
576Summary: Development files for LLD linker tools
577Summary(pl.UTF-8): Pliki programistyczne narzędzi konsolidujących LLD
578Group: Development/Tools
77d2fdeb 579URL: https://lld.llvm.org/
ba1cf74d 580Requires: %{name}-devel = %{version}-%{release}
78991aba 581Requires: xar-devel >= 1.6
ba1cf74d
JB
582
583%description -n lld-devel
584Development files for LLD linker tools.
585
586%description -n lld-devel -l pl.UTF-8
587Pliki programistyczne narzędzi konsolidujących LLD.
588
5a7ac479
JB
589%package -n lldb
590Summary: Next generation high-performance debugger
591Summary(pl.UTF-8): Wydajny debugger nowej generacji
592Group: Development/Debuggers
77d2fdeb 593URL: https://lldb.llvm.org/
5a7ac479 594Requires: %{name} = %{version}-%{release}
40bef2a3 595Requires: python3-six
5a7ac479
JB
596
597%description -n lldb
598LLDB is a next generation, high-performance debugger. It is built as a
599set of reusable components which highly leverage existing libraries in
600the larger LLVM Project, such as the Clang expression parser and LLVM
601disassembler.
602
603%description -n lldb -l pl.UTF-8
604LLDB to wydajny debugger nowej generacji. Jest zbudowany w oparciu o
605komponenty wielokrotnego użytku, wykorzystujące istniejące biblioteki
606w projekcie LLVM, takie jak analizator wyrażeń kompilatora Clang oraz
607disasembler LLVM.
608
609%package -n lldb-devel
ba1cf74d
JB
610Summary: Development files for LLDB debugger
611Summary(pl.UTF-8): Pliki programistyczne debuggera LLDB
5a7ac479 612Group: Development/Libraries
77d2fdeb 613URL: https://lldb.llvm.org/
5a7ac479
JB
614Requires: %{name}-devel = %{version}-%{release}
615Requires: clang-devel = %{version}-%{release}
616Requires: lldb = %{version}-%{release}
617
618%description -n lldb-devel
ba1cf74d 619Development files for LLDB debugger.
5a7ac479
JB
620
621%description -n lldb-devel -l pl.UTF-8
ba1cf74d 622Pliki programistyczne debuggera LLDB.
5a7ac479 623
9556f4c9
ER
624%package ocaml
625Summary: OCaml binding for LLVM
621ec11f
JB
626Summary(pl.UTF-8): Wiązanie OCamla do LLVM-a
627Group: Libraries
9556f4c9 628Requires: %{name} = %{version}-%{release}
c450bf27 629%if %{with ocaml}
9556f4c9 630%requires_eq ocaml-runtime
c450bf27 631%endif
9556f4c9 632
621ec11f 633%description ocaml
9556f4c9
ER
634OCaml binding for LLVM.
635
621ec11f
JB
636%description ocaml -l pl.UTF-8
637Wiązanie OCamla do LLVM-a.
638
9556f4c9 639%package ocaml-devel
621ec11f
JB
640Summary: Development files for LLVM OCaml binding
641Summary(pl.UTF-8): Pliki programistyczne wiązania OCamla do LLVM-a
9556f4c9
ER
642Group: Development/Libraries
643Requires: %{name}-devel = %{version}-%{release}
644Requires: %{name}-ocaml = %{version}-%{release}
645
646%description ocaml-devel
647The llvm-ocaml-devel package contains libraries and signature files
621ec11f
JB
648for developing applications that use llvm-ocaml binding.
649
650%description ocaml-devel -l pl.UTF-8
651Ten pakiet zawiera biblioteki i pliki sygnatur do tworzenia aplikacji
652wykorzystujących wiązanie llvm-ocaml.
653
9556f4c9
ER
654%package ocaml-doc
655Summary: Documentation for LLVM's OCaml binding
621ec11f 656Summary(pl.UTF-8): Dokumentacja wiązania OCamla do LLVM-a
9556f4c9
ER
657Group: Documentation
658Requires: %{name}-ocaml = %{version}-%{release}
d089395f 659BuildArch: noarch
9556f4c9
ER
660
661%description ocaml-doc
662HTML documentation for LLVM's OCaml binding.
663
621ec11f
JB
664%description ocaml-doc -l pl.UTF-8
665Dokumentacja HTML wiązania OCamla do LLVM-a.
666
d7447383
JR
667%package opt-viewer
668Summary: Optimization records visualization tools
83d2be6c 669Summary(pl.UTF-8): Narzędzia do wizualizacji rekordów optymalizacji
d7447383
JR
670Group: Development/Tools
671Requires: %{name} = %{version}
8e9fbe9e 672BuildArch: noarch
d7447383
JR
673
674%description opt-viewer
675Optimization records visualization tools.
676
83d2be6c
JB
677%description opt-viewer -l pl.UTF-8
678Narzędzia do wizualizacji rekordów optymalizacji.
679
d7447383 680%package -n vim-plugin-clang
83d2be6c
JB
681Summary: Clang format and rename integration for Vim
682Summary(pl.UTF-8): Integracja narzędzi Clang do formatowania i zmiany nazw z Vimem
d7447383
JR
683Group: Applications/Editors/Vim
684Requires: vim-rt >= 4:7.0
685BuildArch: noarch
686
687%description -n vim-plugin-clang
83d2be6c
JB
688Clang format and rename integration for Vim.
689
690%description -n vim-plugin-clang -l pl.UTF-8
691Integracja narzędzi Clang do formatowania i zmiany nazw z Vimem.
d7447383 692
aa11c230 693%prep
0fd19552 694%setup -q -n %{name}-%{version}.src -a1 %{?with_rt:-a2} %{?with_lldb:-a3} %{?with_polly:-a4} -a5 -a6 %{?with_flang:-a7} %{?with_mlir:-a8} -a9
44d18de7 695%{__mv} clang-%{version}.src tools/clang
5013c7ea
JB
696%{?with_rt:%{__mv} compiler-rt-%{version}.src projects/compiler-rt}
697%{?with_lldb:%{__mv} lldb-%{version}.src tools/lldb}
698%{?with_polly:%{__mv} polly-%{version}.src tools/polly}
d706a70d
JB
699%{__mv} clang-tools-extra-%{version}.src tools/clang/tools/extra
700%{__mv} lld-%{version}.src tools/lld
1a356f89
JB
701%if %{with flang}
702%{__mv} flang-%{version}.src tools/flang
d27b2b77
JB
703%endif
704%if %{with mlir}
d4ee5c50 705%{__mv} mlir-%{version}.src tools/mlir
1a356f89 706%endif
0fd19552 707%{__mv} cmake-%{version}.src cmake-utils
5a7ac479 708
9f7b77bd 709%patch1 -p1
9f7b77bd 710%patch3 -p1
d706a70d 711%patch5 -p1
1a356f89
JB
712%if %{with flang}
713%patch6 -p1
714%endif
40bef2a3 715%patch7 -p1
4a967aa9 716%patch8 -p1
e25801fb 717%patch9 -p1
90b20139
JP
718%if %{with rt}
719%patch10 -p1
91cd1ec7 720%patch12 -p1
36fac0a6 721%patch13 -p1
90b20139 722%endif
0fd19552 723%patch11 -p1
ce9cc204 724
ef49a424 725grep -rl /usr/bin/env projects tools utils | xargs sed -i -e '1{
90b20139 726 s,^#!.*bin/env python3\?,#!%{__python3},
bacc8b96
ER
727 s,^#!.*bin/env perl,#!%{__perl},
728}'
729
d7447383 730find -name '*.py' -print0 | xargs -0 sed -i -e '1{
40bef2a3 731 s,^#!.*bin/python.*,#!%{__python3},
d7447383
JR
732}'
733
d27b2b77 734%if %{with flang}
07f61ae5 735%{__sed} -i -e '1s,/usr/bin/env bash,/bin/bash,' tools/flang/tools/f18/flang-to-external-fc.in
d27b2b77
JB
736%endif
737
d756c460 738%build
41876fe7 739install -d build
ebde279d 740
d997b14b 741# Disabling assertions now, rec. by pure and needed for OpenGTL
9556f4c9 742# TESTFIX no PIC on ix86: http://llvm.org/bugs/show_bug.cgi?id=3801
41876fe7 743cd build
5e689738 744CPPFLAGS="%{rpmcppflags} -D_FILE_OFFSET_BITS=64"
2bbd0701 745
1431eb62 746%if %{with lowmem}
1b6050f4
JP
747export CFLAGS="%{rpmcflags} -NDEBUG -g0"
748export CXXFLAGS="%{rpmcxxflags} -NDEBUG -g0"
eb891a99 749if echo 'int main(){}' | %{__cc} -x c %{rpmldflags} -Wl,--reduce-memory-overheads -o /dev/null - > /dev/null 2>&1; then
1431eb62 750export LDFLAGS="%{rpmldflags} -Wl,--reduce-memory-overheads"
eb891a99 751fi
1431eb62
JP
752%endif
753
200602f4
JB
754%cmake .. \
755 -DBUILD_SHARED_LIBS:BOOL=OFF \
200602f4 756 -DENABLE_LINKER_BUILD_ID:BOOL=ON \
0fd19552 757 -DLLVM_COMMON_CMAKE_UTILS="%{_builddir}/%{buildsubdir}/cmake-utils" \
200602f4
JB
758 -DLLVM_BINDINGS_LIST:LIST="%{?with_ocaml:ocaml}" \
759 -DLLVM_BINUTILS_INCDIR:STRING=%{_includedir} \
760 -DLLVM_BUILD_LLVM_DYLIB:BOOL=ON \
761 -DLLVM_ENABLE_ASSERTIONS:BOOL=OFF \
0fd19552 762 -DLLVM_INSTALL_PACKAGE_DIR=%(realpath -m "--relative-to=%{_prefix}" "%{_libdir}/cmake/llvm") \
90b20139 763 -DLLVM_TOOLS_INSTALL_DIR=%(realpath -m "--relative-to=%{_prefix}" "%{_bindir}") \
9556f4c9 764%if %{with apidocs}
41876fe7 765 -DLLVM_ENABLE_DOXYGEN:BOOL=ON \
d997b14b 766%endif
44d18de7 767 %{?with_cxxmodules:-DLLVM_ENABLE_MODULES:BOOL=ON} \
200602f4
JB
768 -DLLVM_ENABLE_PIC:BOOL=ON \
769 -DLLVM_ENABLE_RTTI:BOOL=ON \
41876fe7
JR
770%if %{with doc}
771 -DLLVM_ENABLE_SPHINX:BOOL=ON \
772%endif
90b20139 773 -DLLVM_INCLUDE_BENCHMARKS:BOOL=OFF \
ad697ab7 774 %{?with_z3:-DLLVM_ENABLE_Z3_SOLVER:BOOL=ON} \
200602f4
JB
775%if "%{_lib}" == "lib64"
776 -DLLVM_LIBDIR_SUFFIX:STRING=64 \
777%endif
778%if "%{_lib}" == "libx32"
779 -DLLVM_LIBDIR_SUFFIX:STRING=x32 \
780%endif
9a23736f 781 -DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
4cc5652a 782 -DLLVM_TARGET_ARCH:STRING=%{_target_base_arch} \
67331d50 783 -DLLVM_DEFAULT_TARGET_TRIPLE:STRING=%{_target_platform} \
1431eb62
JP
784%if %{with lowmem}
785 -DLLVM_PARALLEL_LINK_JOBS:STRING=1 \
786%endif
a531db5e 787 -DLLVM_TARGETS_TO_BUILD="%{targets_to_build}" \
8c2b8be4 788 -DLLVM_INCLUDE_TESTS:BOOL=OFF \
8d52ede4 789%if %{with polly}
a5fe2ce1 790 %{cmake_on_off target_nvptx POLLY_ENABLE_GPGPU_CODEGEN} \
8d52ede4 791%endif
cfaa3167
JP
792 -DSPHINX_WARNINGS_AS_ERRORS=OFF \
793%if %{with rt}
8c2b8be4 794 -DCOMPILER_RT_INCLUDE_TESTS:BOOL=OFF \
cfaa3167
JP
795%ifarch x32
796 -DCOMPILER_RT_BUILD_MEMPROF:BOOL=OFF
797%endif
798%endif
41876fe7 799
d997b14b 800%{__make} \
1628dc68 801 VERBOSE=1 \
d997b14b 802 OPTIMIZE_OPTION="%{rpmcflags} %{rpmcppflags}"
aa11c230 803
827664e9 804%if %{with tests}
9556f4c9
ER
805%{__make} check 2>&1 | tee llvm-testlog.txt
806%{__make} -C tools/clang test 2>&1 | tee clang-testlog.txt
807%endif
808
b0068ae4 809%if %{with doc}
41876fe7
JR
810%{__make} -C docs docs-llvm-html
811%{__make} -C docs docs-llvm-man
41876fe7
JR
812%{__make} -C tools/clang/docs docs-clang-html
813%{__make} -C tools/clang/docs docs-clang-man
814%{__make} -C tools/lld/docs docs-lld-html
76a62f5e 815%if %{with lldb}
d1e2ca8d 816# workaround failed import of _lldb
90b20139 817cp -pnL %{_lib}/liblldb.so tools/lldb/docs/lldb/_lldb.so
47e02cfd
JP
818%{__make} \
819 LD_LIBRARY_PATH=$(pwd)/%{_lib} \
40bef2a3 820 -C tools/lldb/docs lldb-python-doc-package
41876fe7 821%{__make} -C tools/lldb/docs lldb-cpp-doc
dd9350c7 822%endif
76a62f5e 823%endif
bc243323
JP
824%if %{with ocaml}
825%{__make} -C docs ocaml_doc
826%endif
dd9350c7 827
aa11c230 828%install
829rm -rf $RPM_BUILD_ROOT
5013c7ea 830
464fc37c 831%{__make} -j1 -C build install \
aa11c230 832 DESTDIR=$RPM_BUILD_ROOT
833
6df3b432 834# only some .pyc files are created by make install
40bef2a3
JP
835%py3_comp $RPM_BUILD_ROOT%{py3_sitedir}
836%py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir}
6df3b432 837
e25801fb
JB
838# Adjust static analyzer installation (see -libexecdir patch)
839abs_ca_libexecdir="%{_libexecdir}/clang-analyzer"
840rel_ca_libexecdir="${abs_ca_libexecdir#%{_prefix}}"
841%{__sed} -i -e "s,/\.\./libexec/,/..${rel_ca_libexecdir}/," $RPM_BUILD_ROOT%{_bindir}/scan-build
40bef2a3
JP
842%py3_comp $RPM_BUILD_ROOT%{_datadir}/scan-view
843%py3_ocomp $RPM_BUILD_ROOT%{_datadir}/scan-view
d997b14b 844
6df3b432 845# not installed by cmake buildsystem
6df3b432
JB
846install build/bin/pp-trace $RPM_BUILD_ROOT%{_bindir}
847
b0068ae4 848%if %{with doc}
6df3b432 849cp -p build/docs/man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
b883cf1e 850# these tools are not installed
95bd4382 851%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/{FileCheck,clang-tblgen,lldb-tblgen}.1
b0068ae4
JB
852# make links
853echo '.so llvm-ar.1' > $RPM_BUILD_ROOT%{_mandir}/man1/llvm-ranlib.1
dd9350c7
JB
854%endif
855
d997b14b 856# Move documentation back to build directory
2bbd0701 857%if %{with ocaml}
6df3b432 858rm -rf ocamldocs
5013c7ea 859%{__mv} $RPM_BUILD_ROOT%{_docdir}/llvm/ocaml-html ocamldocs
2bbd0701 860%endif
9556f4c9
ER
861
862# and separate the apidoc
863%if %{with apidocs}
6df3b432
JB
864rm -rf clang-apidoc
865cp -a build/tools/clang/docs/html clang-apidoc
9556f4c9 866%endif
d997b14b
AM
867
868# And prepare Clang documentation
d997b14b 869rm -rf clang-docs
9556f4c9 870install -d clang-docs
827664e9 871for f in LICENSE.TXT NOTES.txt README.txt; do
9556f4c9 872 ln tools/clang/$f clang-docs
d997b14b 873done
021b3c3d 874
d13e7dd0
JB
875install -d $RPM_BUILD_ROOT%{bash_compdir}
876%{__mv} $RPM_BUILD_ROOT%{_datadir}/clang/bash-autocomplete.sh $RPM_BUILD_ROOT%{bash_compdir}/clang
877
d2551984 878%{__rm} $RPM_BUILD_ROOT%{_bindir}/c-index-test
6df3b432
JB
879# not this OS
880%{__rm} $RPM_BUILD_ROOT%{_datadir}/clang/clang-format-bbedit.applescript
03073220
JK
881# it seems it is used internally by an extra clang tool
882%{__rm} $RPM_BUILD_ROOT%{_libdir}/libfindAllSymbols.a
80920c35 883%if %{with mlir}
07f61ae5
JB
884%{__rm} -r $RPM_BUILD_ROOT%{_libdir}/objects-PLD
885%endif
6832a5c5 886
fba35f64 887# disable completeness check incompatible with split packaging
d27b2b77
JB
888%{__sed} -i -e '/^foreach(target .*IMPORT_CHECK_TARGETS/,/^endforeach/d; /^unset(_IMPORT_CHECK_TARGETS)/d' \
889 $RPM_BUILD_ROOT%{_libdir}/cmake/clang/ClangTargets.cmake \
890%if %{with flang}
891 $RPM_BUILD_ROOT%{_libdir}/cmake/flang/FlangTargets.cmake \
892%endif
893 $RPM_BUILD_ROOT%{_libdir}/cmake/lld/LLDTargets.cmake \
894 $RPM_BUILD_ROOT%{_libdir}/cmake/llvm/LLVMExports.cmake \
895%if %{with mlir}
896 $RPM_BUILD_ROOT%{_libdir}/cmake/mlir/MLIRTargets.cmake
897%endif
fba35f64 898
aa11c230 899%clean
900rm -rf $RPM_BUILD_ROOT
901
8c514f23
JB
902%post libs -p /sbin/ldconfig
903%postun libs -p /sbin/ldconfig
aa11c230 904
d27b2b77
JB
905%post mlir -p /sbin/ldconfig
906%postun mlir -p /sbin/ldconfig
907
5013c7ea
JB
908%post -n clang-libs -p /sbin/ldconfig
909%postun -n clang-libs -p /sbin/ldconfig
5a7ac479
JB
910
911%post -n lldb -p /sbin/ldconfig
912%postun -n lldb -p /sbin/ldconfig
913
aa11c230 914%files
915%defattr(644,root,root,755)
8132e62b 916%doc CREDITS.TXT LICENSE.TXT README.txt %{?with_tests:llvm-testlog.txt}
a9beeab5 917%attr(755,root,root) %{_bindir}/bugpoint
8f8cf7a8 918%attr(755,root,root) %{_bindir}/dsymutil
a9beeab5
JB
919%attr(755,root,root) %{_bindir}/llc
920%attr(755,root,root) %{_bindir}/lli
d1e2ca8d 921%attr(755,root,root) %{_bindir}/llvm-addr2line
8132e62b
JB
922%attr(755,root,root) %{_bindir}/llvm-ar
923%attr(755,root,root) %{_bindir}/llvm-as
924%attr(755,root,root) %{_bindir}/llvm-bcanalyzer
40bef2a3 925%attr(755,root,root) %{_bindir}/llvm-bitcode-strip
d2551984 926%attr(755,root,root) %{_bindir}/llvm-c-test
5013c7ea 927%attr(755,root,root) %{_bindir}/llvm-cat
23ae6496 928%attr(755,root,root) %{_bindir}/llvm-cfi-verify
827664e9 929%attr(755,root,root) %{_bindir}/llvm-cov
265e167c 930%attr(755,root,root) %{_bindir}/llvm-cvtres
5013c7ea
JB
931%attr(755,root,root) %{_bindir}/llvm-cxxdump
932%attr(755,root,root) %{_bindir}/llvm-cxxfilt
0bc9c5c9 933%attr(755,root,root) %{_bindir}/llvm-cxxmap
8c2b8be4 934%attr(755,root,root) %{_bindir}/llvm-debuginfo-analyzer
0fd19552 935%attr(755,root,root) %{_bindir}/llvm-debuginfod
90b20139 936%attr(755,root,root) %{_bindir}/llvm-debuginfod-find
8132e62b
JB
937%attr(755,root,root) %{_bindir}/llvm-diff
938%attr(755,root,root) %{_bindir}/llvm-dis
265e167c 939%attr(755,root,root) %{_bindir}/llvm-dlltool
827664e9 940%attr(755,root,root) %{_bindir}/llvm-dwarfdump
0fd19552 941%attr(755,root,root) %{_bindir}/llvm-dwarfutil
264482e1 942%attr(755,root,root) %{_bindir}/llvm-dwp
8f8cf7a8 943%attr(755,root,root) %{_bindir}/llvm-exegesis
8132e62b 944%attr(755,root,root) %{_bindir}/llvm-extract
f784323b 945%attr(755,root,root) %{_bindir}/llvm-gsymutil
ef49a424
JP
946%attr(755,root,root) %{_bindir}/llvm-ifs
947%attr(755,root,root) %{_bindir}/llvm-install-name-tool
d1e2ca8d 948%attr(755,root,root) %{_bindir}/llvm-jitlink
6df3b432 949%attr(755,root,root) %{_bindir}/llvm-lib
40bef2a3 950%attr(755,root,root) %{_bindir}/llvm-libtool-darwin
8132e62b 951%attr(755,root,root) %{_bindir}/llvm-link
d1e2ca8d 952%attr(755,root,root) %{_bindir}/llvm-lipo
3c402b7e 953%attr(755,root,root) %{_bindir}/llvm-lto
5013c7ea 954%attr(755,root,root) %{_bindir}/llvm-lto2
8132e62b 955%attr(755,root,root) %{_bindir}/llvm-mc
8f8cf7a8 956%attr(755,root,root) %{_bindir}/llvm-mca
f784323b 957%attr(755,root,root) %{_bindir}/llvm-ml
5013c7ea 958%attr(755,root,root) %{_bindir}/llvm-modextract
265e167c 959%attr(755,root,root) %{_bindir}/llvm-mt
8132e62b 960%attr(755,root,root) %{_bindir}/llvm-nm
23ae6496 961%attr(755,root,root) %{_bindir}/llvm-objcopy
8132e62b 962%attr(755,root,root) %{_bindir}/llvm-objdump
5013c7ea 963%attr(755,root,root) %{_bindir}/llvm-opt-report
8d52ede4 964%attr(755,root,root) %{_bindir}/llvm-otool
265e167c 965%attr(755,root,root) %{_bindir}/llvm-pdbutil
b883cf1e 966%attr(755,root,root) %{_bindir}/llvm-profdata
40bef2a3 967%attr(755,root,root) %{_bindir}/llvm-profgen
8132e62b 968%attr(755,root,root) %{_bindir}/llvm-ranlib
23ae6496 969%attr(755,root,root) %{_bindir}/llvm-rc
265e167c 970%attr(755,root,root) %{_bindir}/llvm-readelf
f981d747 971%attr(755,root,root) %{_bindir}/llvm-readobj
ef49a424 972%attr(755,root,root) %{_bindir}/llvm-reduce
0fd19552 973%attr(755,root,root) %{_bindir}/llvm-remark-size-diff
8c2b8be4 974%attr(755,root,root) %{_bindir}/llvm-remarkutil
827664e9 975%attr(755,root,root) %{_bindir}/llvm-rtdyld
8d52ede4 976%attr(755,root,root) %{_bindir}/llvm-sim
827664e9 977%attr(755,root,root) %{_bindir}/llvm-size
264482e1 978%attr(755,root,root) %{_bindir}/llvm-split
8f8cf7a8 979%attr(755,root,root) %{_bindir}/llvm-strip
f981d747 980%attr(755,root,root) %{_bindir}/llvm-stress
5013c7ea 981%attr(755,root,root) %{_bindir}/llvm-strings
1628dc68 982%attr(755,root,root) %{_bindir}/llvm-symbolizer
8d52ede4 983%attr(755,root,root) %{_bindir}/llvm-tapi-diff
827664e9 984%attr(755,root,root) %{_bindir}/llvm-tblgen
90b20139 985%attr(755,root,root) %{_bindir}/llvm-tli-checker
8f8cf7a8 986%attr(755,root,root) %{_bindir}/llvm-undname
8d52ede4 987%attr(755,root,root) %{_bindir}/llvm-windres
5013c7ea 988%attr(755,root,root) %{_bindir}/llvm-xray
8132e62b 989%attr(755,root,root) %{_bindir}/opt
d706a70d 990%attr(755,root,root) %{_bindir}/sancov
03073220 991%attr(755,root,root) %{_bindir}/sanstats
0fd19552 992%attr(755,root,root) %{_bindir}/tblgen-lsp-server
4ba3b2b3 993%attr(755,root,root) %{_bindir}/verify-uselistorder
b0068ae4 994%if %{with doc}
a9beeab5 995%{_mandir}/man1/bugpoint.1*
23ae6496 996%{_mandir}/man1/dsymutil.1*
a7973f21 997%{_mandir}/man1/lit.1*
a9beeab5
JB
998%{_mandir}/man1/llc.1*
999%{_mandir}/man1/lli.1*
d1e2ca8d 1000%{_mandir}/man1/llvm-addr2line.1*
8132e62b
JB
1001%{_mandir}/man1/llvm-ar.1*
1002%{_mandir}/man1/llvm-as.1*
1003%{_mandir}/man1/llvm-bcanalyzer.1*
f981d747 1004%{_mandir}/man1/llvm-cov.1*
d1e2ca8d 1005%{_mandir}/man1/llvm-cxxfilt.1*
0bc9c5c9 1006%{_mandir}/man1/llvm-cxxmap.1*
1bb5dbae 1007%{_mandir}/man1/llvm-debuginfo-analyzer.1*
8132e62b
JB
1008%{_mandir}/man1/llvm-diff.1*
1009%{_mandir}/man1/llvm-dis.1*
b883cf1e 1010%{_mandir}/man1/llvm-dwarfdump.1*
0fd19552 1011%{_mandir}/man1/llvm-dwarfutil.1*
8f8cf7a8 1012%{_mandir}/man1/llvm-exegesis.1*
8132e62b 1013%{_mandir}/man1/llvm-extract.1*
0fd19552 1014%{_mandir}/man1/llvm-ifs.1*
40bef2a3 1015%{_mandir}/man1/llvm-install-name-tool.1*
d706a70d 1016%{_mandir}/man1/llvm-lib.1*
40bef2a3 1017%{_mandir}/man1/llvm-libtool-darwin.1*
8132e62b 1018%{_mandir}/man1/llvm-link.1*
d1e2ca8d 1019%{_mandir}/man1/llvm-lipo.1*
ef49a424 1020%{_mandir}/man1/llvm-locstats.1*
8f8cf7a8 1021%{_mandir}/man1/llvm-mca.1*
8132e62b 1022%{_mandir}/man1/llvm-nm.1*
d1e2ca8d 1023%{_mandir}/man1/llvm-objcopy.1*
0bc9c5c9 1024%{_mandir}/man1/llvm-objdump.1*
1bb5dbae 1025%{_mandir}/man1/llvm-opt-report.1*
8d52ede4 1026%{_mandir}/man1/llvm-otool.1*
23ae6496 1027%{_mandir}/man1/llvm-pdbutil.1*
b883cf1e 1028%{_mandir}/man1/llvm-profdata.1*
40bef2a3 1029%{_mandir}/man1/llvm-profgen.1*
8132e62b 1030%{_mandir}/man1/llvm-ranlib.1*
d1e2ca8d 1031%{_mandir}/man1/llvm-readelf.1*
c999855f 1032%{_mandir}/man1/llvm-readobj.1*
0fd19552 1033%{_mandir}/man1/llvm-remark-size-diff.1*
1bb5dbae 1034%{_mandir}/man1/llvm-remarkutil.1*
d1e2ca8d 1035%{_mandir}/man1/llvm-size.1*
f981d747 1036%{_mandir}/man1/llvm-stress.1*
d1e2ca8d
JP
1037%{_mandir}/man1/llvm-strings.1*
1038%{_mandir}/man1/llvm-strip.1*
1628dc68 1039%{_mandir}/man1/llvm-symbolizer.1*
8d52ede4 1040%{_mandir}/man1/llvm-tblgen.1*
90b20139 1041%{_mandir}/man1/llvm-tli-checker.1*
a9beeab5 1042%{_mandir}/man1/opt.1*
95bd4382 1043%{_mandir}/man1/tblgen.1*
b0068ae4 1044%endif
bc88141a 1045
8c514f23
JB
1046%files libs
1047%defattr(644,root,root,755)
2379ea21 1048%attr(755,root,root) %{_libdir}/LLVMgold.so
9a23736f
JB
1049%attr(755,root,root) %{_libdir}/libLLVM-%{abi}.so
1050# non-soname symlink
1051%attr(755,root,root) %{_libdir}/libLLVM-%{version}.so
64ff6369
JP
1052%attr(755,root,root) %{_libdir}/libLTO.so.17
1053%attr(755,root,root) %{_libdir}/libRemarks.so.17
1054%attr(755,root,root) %{_libdir}/libclang-cpp.so.17
8c514f23 1055
bc88141a
ER
1056%files devel
1057%defattr(644,root,root,755)
1058%attr(755,root,root) %{_bindir}/llvm-config
9a23736f 1059%attr(755,root,root) %{_libdir}/libLLVM.so
5013c7ea 1060%attr(755,root,root) %{_libdir}/libLTO.so
d1e2ca8d
JP
1061%attr(755,root,root) %{_libdir}/libRemarks.so
1062%attr(755,root,root) %{_libdir}/libclang-cpp.so
d706a70d 1063%{_libdir}/libLLVM*.a
8132e62b
JB
1064%{_includedir}/llvm
1065%{_includedir}/llvm-c
9ace1f65 1066%{_libdir}/cmake/llvm
b0068ae4 1067%if %{with doc}
8132e62b 1068%{_mandir}/man1/llvm-config.1*
b0068ae4 1069%endif
bc88141a 1070
6df3b432
JB
1071#%files doc
1072#%defattr(644,root,root,755)
9556f4c9
ER
1073
1074%if %{with apidocs}
1075%files apidocs
1076%defattr(644,root,root,755)
1077%doc apidoc/*
1078%endif
1079
d27b2b77
JB
1080%if %{with mlir}
1081%files mlir
1082%defattr(644,root,root,755)
1083%attr(755,root,root) %{_bindir}/mlir-cpu-runner
d27b2b77
JB
1084%attr(755,root,root) %{_bindir}/mlir-linalg-ods-yaml-gen
1085%attr(755,root,root) %{_bindir}/mlir-lsp-server
1086%attr(755,root,root) %{_bindir}/mlir-opt
8c2b8be4 1087%attr(755,root,root) %{_bindir}/mlir-pdll
0fd19552 1088%attr(755,root,root) %{_bindir}/mlir-pdll-lsp-server*
d27b2b77
JB
1089%attr(755,root,root) %{_bindir}/mlir-reduce
1090%attr(755,root,root) %{_bindir}/mlir-tblgen
1091%attr(755,root,root) %{_bindir}/mlir-translate
64ff6369
JP
1092%attr(755,root,root) %{_libdir}/libMLIR.so.17
1093%attr(755,root,root) %{_libdir}/libmlir_async_runtime.so.17
1094%attr(755,root,root) %{_libdir}/libmlir_c_runner_utils.so.17
1095%attr(755,root,root) %{_libdir}/libmlir_float16_utils.so.17
1096%attr(755,root,root) %{_libdir}/libmlir_runner_utils.so.17
846aaadd 1097%if %{with doc}
d27b2b77 1098%{_mandir}/man1/mlir-tblgen.1*
846aaadd 1099%endif
d27b2b77
JB
1100
1101%files mlir-devel
1102%defattr(644,root,root,755)
1103%attr(755,root,root) %{_libdir}/libMLIR.so
1104%attr(755,root,root) %{_libdir}/libmlir_async_runtime.so
1105%attr(755,root,root) %{_libdir}/libmlir_c_runner_utils.so
8c2b8be4 1106%attr(755,root,root) %{_libdir}/libmlir_float16_utils.so
d27b2b77
JB
1107%attr(755,root,root) %{_libdir}/libmlir_runner_utils.so
1108%{_libdir}/libMLIR*.a
1109%{_includedir}/mlir
1110%{_includedir}/mlir-c
1111%{_libdir}/cmake/mlir
1112%endif
1113
b0068ae4
JB
1114%if %{with polly}
1115%files polly
1116%defattr(644,root,root,755)
8d52ede4 1117%doc tools/polly/{CREDITS.txt,LICENSE.TXT,README} tools/polly/www/{bugs,changelog,contributors}.html
b0068ae4
JB
1118%attr(755,root,root) %{_libdir}/LLVMPolly.so
1119
1120%files polly-devel
1121%defattr(644,root,root,755)
9a23736f
JB
1122%{_libdir}/libPolly.a
1123%{_libdir}/libPollyISL.a
b0068ae4 1124%{_includedir}/polly
265e167c 1125%{_libdir}/cmake/polly
b0068ae4
JB
1126%endif
1127
d997b14b 1128%files -n clang
bc88141a 1129%defattr(644,root,root,755)
827664e9 1130%doc clang-docs/{LICENSE.TXT,NOTES.txt,README.txt} %{?with_tests:clang-testlog.txt}
8c2b8be4 1131%attr(755,root,root) %{_bindir}/amdgpu-arch
8132e62b
JB
1132%attr(755,root,root) %{_bindir}/clang
1133%attr(755,root,root) %{_bindir}/clang++
509439cf 1134%attr(755,root,root) %{_bindir}/clang-%{abi}
dd9350c7 1135%attr(755,root,root) %{_bindir}/clang-check
6df3b432 1136%attr(755,root,root) %{_bindir}/clang-cl
5013c7ea 1137%attr(755,root,root) %{_bindir}/clang-cpp
d1e2ca8d 1138%attr(755,root,root) %{_bindir}/clang-doc
1628dc68 1139%attr(755,root,root) %{_bindir}/clang-format
90b20139 1140%attr(755,root,root) %{_bindir}/clang-linker-wrapper
5013c7ea 1141%attr(755,root,root) %{_bindir}/clang-offload-bundler
0fd19552 1142%attr(755,root,root) %{_bindir}/clang-offload-packager
0fd19552 1143%attr(755,root,root) %{_bindir}/clang-pseudo
8d52ede4 1144%attr(755,root,root) %{_bindir}/clang-repl
8c2b8be4 1145%attr(755,root,root) %{_bindir}/clang-tblgen
6df3b432 1146%attr(755,root,root) %{_bindir}/git-clang-format
8c2b8be4 1147%attr(755,root,root) %{_bindir}/nvptx-arch
5a7ac479 1148%dir %{_libdir}/clang
8c2b8be4
JP
1149%dir %{_libdir}/clang/%{abi}
1150%{_libdir}/clang/%{abi}/include
5a7ac479 1151%if %{with rt}
9cb808e7 1152%ifarch %{x8664} x32 aarch64
8c2b8be4
JP
1153%dir %{_libdir}/clang/%{abi}/bin
1154%attr(755,root,root) %{_libdir}/clang/%{abi}/bin/hwasan_symbolize
19798eda 1155%endif
927fe779 1156%ifarch %{ix86} %{x8664} aarch64 %{armv7}
8c2b8be4
JP
1157%dir %{_libdir}/clang/%{abi}/lib
1158%dir %{_libdir}/clang/%{abi}/lib/*-linux*
1159%dir %{_libdir}/clang/%{abi}/share
3b28b31d
JB
1160%endif
1161%ifarch x32
1162%if %{with multilib}
8c2b8be4
JP
1163%dir %{_libdir}/clang/%{abi}/lib
1164%dir %{_libdir}/clang/%{abi}/lib/*-linux*
1165%dir %{_libdir}/clang/%{abi}/share
9eefd942 1166%endif
3b28b31d 1167%endif
9eefd942 1168%ifarch %{ix86}
8c2b8be4
JP
1169%{_libdir}/clang/%{abi}/lib/i*86-*linux/clang_rt.*.o
1170%{_libdir}/clang/%{abi}/lib/i*86-*linux/libclang_rt.*.a
1171%attr(755,root,root) %{_libdir}/clang/%{abi}/lib/i*86-*linux/libclang_rt.*.so
c6c890ee
JB
1172%endif
1173%ifarch %{x8664}
8c2b8be4
JP
1174%{_libdir}/clang/%{abi}/lib/x86_64-*linux/clang_rt.*.o
1175%{_libdir}/clang/%{abi}/lib/x86_64-*linux/libclang_rt.*.a
1176%attr(755,root,root) %{_libdir}/clang/%{abi}/lib/x86_64-*linux/libclang_rt.*.so
1177%{_libdir}/clang/%{abi}/lib/x86_64-*linux/libclang_rt.*.a.syms
1178%{_libdir}/clang/%{abi}/lib/x86_64-*linux/liborc_rt.a
3c402b7e 1179%endif
7bceddf8 1180%ifarch aarch64
8c2b8be4
JP
1181%{_libdir}/clang/%{abi}/lib/aarch64-*linux/clang_rt.*.o
1182%{_libdir}/clang/%{abi}/lib/aarch64-*linux/libclang_rt.*.a
1183%attr(755,root,root) %{_libdir}/clang/%{abi}/lib/aarch64-*linux/libclang_rt.*.so
1184%{_libdir}/clang/%{abi}/lib/aarch64-*linux/libclang_rt.*.a.syms
1185%{_libdir}/clang/%{abi}/lib/aarch64-*linux/liborc_rt.a
7bceddf8 1186%endif
927fe779 1187%ifarch %{armv7}
034750a1
JP
1188%ifarch %{arm32_with_hf}
1189%{_libdir}/clang/%{abi}/lib/arm-*linux%{_gnu}hf/clang_rt.*.o
1190%{_libdir}/clang/%{abi}/lib/arm-*linux%{_gnu}hf/libclang_rt.*.a
1191%attr(755,root,root) %{_libdir}/clang/%{abi}/lib/arm-*linux%{_gnu}hf/libclang_rt.*.so
1192%{_libdir}/clang/%{abi}/lib/arm-*linux%{_gnu}hf/libclang_rt.*.a.syms
1193%{_libdir}/clang/%{abi}/lib/arm-*linux%{_gnu}hf/liborc_rt.a
1194%else
1195%{_libdir}/clang/%{abi}/lib/arm-*linux%{_gnu}/clang_rt.*.o
1196%{_libdir}/clang/%{abi}/lib/arm-*linux%{_gnu}/libclang_rt.*.a
1197%attr(755,root,root) %{_libdir}/clang/%{abi}/lib/arm-*linux%{_gnu}/libclang_rt.*.so
1198%{_libdir}/clang/%{abi}/lib/arm-*linux%{_gnu}/libclang_rt.*.a.syms
1199%{_libdir}/clang/%{abi}/lib/arm-*linux%{_gnu}/liborc_rt.a
1200%endif
97d374d2 1201%endif
3b28b31d 1202%ifarch %{ix86} %{x8664} %{arm} aarch64 mips mips64 ppc64
8c2b8be4 1203%{_libdir}/clang/%{abi}/share/asan_ignorelist.txt
d706a70d 1204%endif
927fe779 1205%ifarch %{ix86} %{x8664} mips64 aarch64 %{armv7}
8c2b8be4 1206%{_libdir}/clang/%{abi}/share/cfi_ignorelist.txt
d706a70d 1207%endif
3b28b31d 1208%ifarch %{x8664} aarch64 mips64
8c2b8be4
JP
1209%{_libdir}/clang/%{abi}/share/dfsan_abilist.txt
1210%{_libdir}/clang/%{abi}/share/msan_ignorelist.txt
8f8cf7a8 1211%endif
3b28b31d 1212%ifarch %{x8664} aarch64
8c2b8be4 1213%{_libdir}/clang/%{abi}/share/hwasan_ignorelist.txt
d706a70d 1214%endif
3b28b31d
JB
1215%ifarch x32
1216%if %{with multilib}
8c2b8be4
JP
1217%{_libdir}/clang/%{abi}/share/asan_ignorelist.txt
1218%{_libdir}/clang/%{abi}/share/cfi_ignorelist.txt
1219%{_libdir}/clang/%{abi}/share/dfsan_abilist.txt
1220%{_libdir}/clang/%{abi}/share/msan_ignorelist.txt
1221%{_libdir}/clang/%{abi}/share/hwasan_ignorelist.txt
3b28b31d
JB
1222%endif
1223%endif
5a7ac479 1224%endif
3c402b7e
JB
1225%dir %{_datadir}/clang
1226%{_datadir}/clang/clang-format-diff.py
d997b14b 1227
589b92f5 1228%if %{with rt} && %{with multilib}
b0e18b64 1229%ifarch %{x8664} x32
9eefd942
JR
1230%files -n clang-multilib
1231%defattr(644,root,root,755)
8c2b8be4
JP
1232%{_libdir}/clang/%{abi}/lib/i386-*linux/clang_rt.*.o
1233%{_libdir}/clang/%{abi}/lib/i386-*linux/libclang_rt.*.a
1234%attr(755,root,root) %{_libdir}/clang/%{abi}/lib/i386-*linux/libclang_rt.*.so
9eefd942 1235%endif
b0e18b64 1236%ifarch x32
8c2b8be4
JP
1237%{_libdir}/clang/%{abi}/lib/x86_64-*linux/clang_rt.*.o
1238%{_libdir}/clang/%{abi}/lib/x86_64-*linux/libclang_rt.*.a
1239%attr(755,root,root) %{_libdir}/clang/%{abi}/lib/x86_64-*linux/libclang_rt.*.so
1240%{_libdir}/clang/%{abi}/lib/x86_64-*linux/libclang_rt.*.a.syms
1241%{_libdir}/clang/%{abi}/lib/x86_64-*linux/liborc_rt.a
b0e18b64 1242%endif
9eefd942
JR
1243%endif
1244
cb7d0198
JB
1245%files -n clang-libs
1246%defattr(644,root,root,755)
64ff6369 1247%attr(755,root,root) %{_libdir}/libclang.so.17
cb7d0198
JB
1248%attr(755,root,root) %{_libdir}/libclang.so.*.*.*
1249
1250%files -n clang-devel
1251%defattr(644,root,root,755)
1252%attr(755,root,root) %{_libdir}/libclang.so
1253%{_libdir}/libclang*.a
1254%{_includedir}/clang
1255%{_includedir}/clang-c
1256%{_includedir}/clang-tidy
1257%{_libdir}/cmake/clang
1258
1259%files -n clang-doc
1260%defattr(644,root,root,755)
1261%doc tools/clang/docs/*.{html,png,txt}
1262
1263%if %{with apidocs}
1264%files -n clang-apidocs
1265%defattr(644,root,root,755)
1266%doc clang-apidoc/*
1267%endif
1268
d997b14b 1269%files -n clang-analyzer
bc88141a 1270%defattr(644,root,root,755)
e25801fb
JB
1271%dir %{_libexecdir}/clang-analyzer
1272# perl tools
1273%attr(755,root,root) %{_bindir}/scan-build
1274%attr(755,root,root) %{_libexecdir}/clang-analyzer/c++-analyzer
1275%attr(755,root,root) %{_libexecdir}/clang-analyzer/ccc-analyzer
1276%{_datadir}/scan-build
1277%{_mandir}/man1/scan-build.1*
1278# python tools
8d52ede4
JP
1279%attr(755,root,root) %{_bindir}/analyze-build
1280%attr(755,root,root) %{_bindir}/intercept-build
8d52ede4 1281%attr(755,root,root) %{_bindir}/scan-build-py
d997b14b 1282%attr(755,root,root) %{_bindir}/scan-view
e25801fb
JB
1283%attr(755,root,root) %{_libexecdir}/clang-analyzer/analyze-c++
1284%attr(755,root,root) %{_libexecdir}/clang-analyzer/analyze-cc
1285%attr(755,root,root) %{_libexecdir}/clang-analyzer/intercept-c++
1286%attr(755,root,root) %{_libexecdir}/clang-analyzer/intercept-cc
8c2b8be4
JP
1287%{_prefix}/%{_lib}/libear
1288%{_prefix}/%{_lib}/libscanbuild
634a3e5b 1289%{_datadir}/scan-view
8132e62b 1290
b0068ae4
JB
1291%files -n clang-tools-extra
1292%defattr(644,root,root,755)
9ace1f65 1293%doc tools/clang/tools/extra/{CODE_OWNERS.TXT,README.txt}
b0068ae4 1294%attr(755,root,root) %{_bindir}/clang-apply-replacements
5013c7ea 1295%attr(755,root,root) %{_bindir}/clang-change-namespace
0bc9c5c9 1296%attr(755,root,root) %{_bindir}/clang-extdef-mapping
8c2b8be4 1297%attr(755,root,root) %{_bindir}/clang-include-cleaner
03073220 1298%attr(755,root,root) %{_bindir}/clang-include-fixer
ef49a424 1299%attr(755,root,root) %{_bindir}/clang-move
b883cf1e 1300%attr(755,root,root) %{_bindir}/clang-query
23ae6496 1301%attr(755,root,root) %{_bindir}/clang-refactor
4ba3b2b3 1302%attr(755,root,root) %{_bindir}/clang-rename
5013c7ea 1303%attr(755,root,root) %{_bindir}/clang-reorder-fields
d1e2ca8d 1304%attr(755,root,root) %{_bindir}/clang-scan-deps
b0068ae4 1305%attr(755,root,root) %{_bindir}/clang-tidy
265e167c 1306%attr(755,root,root) %{_bindir}/clangd
8f8cf7a8 1307%attr(755,root,root) %{_bindir}/diagtool
03073220 1308%attr(755,root,root) %{_bindir}/find-all-symbols
8f8cf7a8 1309%attr(755,root,root) %{_bindir}/hmaptool
d706a70d 1310%attr(755,root,root) %{_bindir}/modularize
b0068ae4 1311%attr(755,root,root) %{_bindir}/pp-trace
8d52ede4 1312%attr(755,root,root) %{_bindir}/run-clang-tidy
03073220 1313%{_datadir}/clang/clang-include-fixer.py
d706a70d 1314%{_datadir}/clang/clang-tidy-diff.py
03073220 1315%{_datadir}/clang/run-find-all-symbols.py
b0068ae4 1316
d13e7dd0
JB
1317%files -n bash-completion-clang
1318%defattr(644,root,root,755)
1319%{bash_compdir}/clang
1320
d27b2b77
JB
1321%if %{with flang}
1322%files -n flang
1323%defattr(644,root,root,755)
1324%doc tools/flang/{LICENSE.TXT,README.md}
07f61ae5 1325%attr(755,root,root) %{_bindir}/bbc
d27b2b77
JB
1326%attr(755,root,root) %{_bindir}/f18-parse-demo
1327%attr(755,root,root) %{_bindir}/fir-opt
07f61ae5
JB
1328%attr(755,root,root) %{_bindir}/flang-new
1329%attr(755,root,root) %{_bindir}/flang-to-external-fc
d27b2b77
JB
1330%attr(755,root,root) %{_bindir}/tco
1331%dir %{_includedir}/flang
1332%{_includedir}/flang/Version.inc
1333%{_includedir}/flang/__fortran_*.mod
1334%{_includedir}/flang/ieee_*.mod
1335%{_includedir}/flang/iso_*.mod
1336%{_includedir}/flang/omp_lib*.mod
1337
1338%files -n flang-devel
1339%defattr(644,root,root,755)
07f61ae5
JB
1340%{_libdir}/libFIR*.a
1341%{_libdir}/libHLFIR*.a
d27b2b77 1342%{_libdir}/libFortran*.a
07f61ae5 1343%{_libdir}/libflangFrontend*.a
d27b2b77
JB
1344%{_includedir}/flang/Common
1345%{_includedir}/flang/Decimal
1346%{_includedir}/flang/Evaluate
1347%{_includedir}/flang/Frontend
1348%{_includedir}/flang/FrontendTool
1349%{_includedir}/flang/Lower
1350%{_includedir}/flang/Optimizer
1351%{_includedir}/flang/Parser
07f61ae5 1352%{_includedir}/flang/Runtime
d27b2b77 1353%{_includedir}/flang/Semantics
07f61ae5 1354%{_includedir}/flang/Tools
d27b2b77
JB
1355%{_includedir}/flang/ISO_Fortran_binding.h
1356%{_libdir}/cmake/flang
1357%endif
1358
ba1cf74d
JB
1359%files -n lld
1360%defattr(644,root,root,755)
1361%doc tools/lld/{LICENSE.TXT,README.md}
d706a70d 1362%attr(755,root,root) %{_bindir}/ld.lld
23ae6496 1363%attr(755,root,root) %{_bindir}/ld64.lld
ba1cf74d 1364%attr(755,root,root) %{_bindir}/lld
d706a70d 1365%attr(755,root,root) %{_bindir}/lld-link
d7447383 1366%attr(755,root,root) %{_bindir}/wasm-ld
ba1cf74d
JB
1367
1368%files -n lld-devel
1369%defattr(644,root,root,755)
d7447383 1370%{_libdir}/liblld[ACDEHMRWXY]*.a
ba1cf74d 1371%{_includedir}/lld
f784323b 1372%{_libdir}/cmake/lld
ba1cf74d 1373
5a7ac479
JB
1374%if %{with lldb}
1375%files -n lldb
1376%defattr(644,root,root,755)
1377%attr(755,root,root) %{_bindir}/lldb
4522eb9a 1378%attr(755,root,root) %{_bindir}/lldb-argdumper
d1e2ca8d 1379%attr(755,root,root) %{_bindir}/lldb-instr
6df3b432 1380%attr(755,root,root) %{_bindir}/lldb-server
0bc9c5c9 1381%attr(755,root,root) %{_bindir}/lldb-vscode
6df3b432 1382%attr(755,root,root) %{_libdir}/liblldb.so.%{version}
64ff6369
JP
1383%attr(755,root,root) %ghost %{_libdir}/liblldb.so.17
1384%attr(755,root,root) %ghost %{_libdir}/liblldbIntelFeatures.so.17
40bef2a3
JP
1385%dir %{py3_sitedir}/lldb
1386%attr(755,root,root) %{py3_sitedir}/lldb/lldb-argdumper
1387%{py3_sitedir}/lldb/formatters
1388%{py3_sitedir}/lldb/utils
1389%{py3_sitedir}/lldb/__init__.py
1390%{py3_sitedir}/lldb/__pycache__
1391%{py3_sitedir}/lldb/embedded_interpreter.py
8d52ede4
JP
1392%dir %{py3_sitedir}/lldb/plugins
1393%{py3_sitedir}/lldb/plugins/__pycache__
1394%{py3_sitedir}/lldb/plugins/__init__.py
8c2b8be4 1395%{py3_sitedir}/lldb/plugins/scripted_platform.py
8d52ede4 1396%{py3_sitedir}/lldb/plugins/scripted_process.py
93b7b046 1397%attr(755,root,root) %{py3_sitedir}/lldb/_lldb.cpython-*.so
5a7ac479
JB
1398
1399%files -n lldb-devel
1400%defattr(644,root,root,755)
6df3b432 1401%attr(755,root,root) %{_libdir}/liblldb.so
23ae6496 1402%attr(755,root,root) %{_libdir}/liblldbIntelFeatures.so
5a7ac479
JB
1403%{_includedir}/lldb
1404%endif
1405
9556f4c9 1406%if %{with ocaml}
d997b14b
AM
1407%files ocaml
1408%defattr(644,root,root,755)
265e167c 1409%attr(755,root,root) %{_libdir}/ocaml/stublibs/dllllvm*.so
5013c7ea 1410%dir %{_libdir}/ocaml/llvm
5013c7ea
JB
1411%{_libdir}/ocaml/llvm/llvm*.cma
1412%{_libdir}/ocaml/llvm/llvm*.cmi
11b6f380 1413%{_libdir}/ocaml/META.llvm*
d997b14b
AM
1414
1415%files ocaml-devel
1416%defattr(644,root,root,755)
5013c7ea
JB
1417%{_libdir}/ocaml/llvm/libllvm*.a
1418%{_libdir}/ocaml/llvm/llvm*.a
90b20139
JP
1419%{_libdir}/ocaml/llvm/llvm*.cmt
1420%{_libdir}/ocaml/llvm/llvm*.cmti
5013c7ea
JB
1421%{_libdir}/ocaml/llvm/llvm*.cmx
1422%{_libdir}/ocaml/llvm/llvm*.cmxa
1423%{_libdir}/ocaml/llvm/llvm*.mli
9556f4c9
ER
1424
1425%files ocaml-doc
1426%defattr(644,root,root,755)
6df3b432 1427%doc ocamldocs/*
9556f4c9 1428%endif
d7447383
JR
1429
1430%files opt-viewer
1431%defattr(644,root,root,755)
1432%{_datadir}/opt-viewer
1433
1434%files -n vim-plugin-clang
1435%defattr(644,root,root,755)
1436%{_datadir}/clang/clang-format.py
1437%{_datadir}/clang/clang-rename.py
This page took 1.06985 seconds and 4 git commands to generate.