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