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