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