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