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