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