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