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