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