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