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