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