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