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