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