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