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