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