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