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