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