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