]> git.pld-linux.org Git - packages/llvm.git/blame - llvm.spec
- no parallel install (this may be the cause for 'make: write error: stdout' on x8664...
[packages/llvm.git] / llvm.spec
CommitLineData
6df3b432
JB
1# TODO:
2# - move and package:
5013c7ea 3# %{_datadir}/clang/bash-autocomplete.sh
6df3b432 4# %{_datadir}/clang/clang-format-sublime.py - sublime plugin
5013c7ea
JB
5# %{_datadir}/clang/clang-format.el - clang tools emacs integration
6# %{_datadir}/clang/clang-include-fixer.el
7# %{_datadir}/clang/clang-rename.el
6df3b432 8# - no content in doc package (it used to contain parts of clang apidocs and some examples)
6c2b1a44 9# - system isl in polly?
bc88141a 10#
9556f4c9 11# Conditional build:
589b92f5
JB
12%bcond_without lldb # LLDB debugger
13%bcond_without polly # Polly cache-locality optimization, auto-parallelism and vectorization
14%bcond_without rt # compiler-rt libraries
15%bcond_without multilib # compiler-rt multilib libraries
16%bcond_without ocaml # OCaml binding
17%bcond_without doc # HTML docs and man pages
18%bcond_with apidocs # doxygen docs (HUGE, so they are not built by default)
19%bcond_with tests # run tests
9556f4c9 20
4ba3b2b3 21# No ocaml on other arches or no native ocaml (required for ocaml-ctypes)
5013c7ea 22%ifnarch %{ix86} %{x8664} %{arm} aarch64 ppc sparc sparcv9
9556f4c9
ER
23%undefine with_ocaml
24%endif
25
aa11c230 26Summary: The Low Level Virtual Machine (An Optimizing Compiler Infrastructure)
2326a99f 27Summary(pl.UTF-8): Niskopoziomowa maszyna wirtualna (infrastruktura kompilatora optymalizującego)
aa11c230 28Name: llvm
23ae6496 29Version: 6.0.0
5013c7ea 30Release: 1
aa11c230 31License: University of Illinois/NCSA Open Source License
32Group: Development/Languages
5013c7ea
JB
33#Source0Download: http://releases.llvm.org/download.html
34Source0: http://releases.llvm.org/%{version}/%{name}-%{version}.src.tar.xz
23ae6496 35# Source0-md5: 788a11a35fa62eb008019b37187d09d2
5013c7ea 36Source1: http://releases.llvm.org/%{version}/cfe-%{version}.src.tar.xz
23ae6496 37# Source1-md5: 121b3896cb0c7765d690acc5d9495d24
5013c7ea 38Source2: http://releases.llvm.org/%{version}/compiler-rt-%{version}.src.tar.xz
23ae6496 39# Source2-md5: ba6368e894b5528e527d86a69d8533c6
5013c7ea 40Source3: http://releases.llvm.org/%{version}/lldb-%{version}.src.tar.xz
23ae6496 41# Source3-md5: 1ec6498066e273b7261270f344b68121
5013c7ea 42Source4: http://releases.llvm.org/%{version}/polly-%{version}.src.tar.xz
23ae6496 43# Source4-md5: e5808a3a1ed1c23f56dd1854b86689d0
5013c7ea 44Source5: http://releases.llvm.org/%{version}/clang-tools-extra-%{version}.src.tar.xz
23ae6496 45# Source5-md5: 6b1d543116dab5a3caba10091d983743
5013c7ea 46Source6: http://releases.llvm.org/%{version}/lld-%{version}.src.tar.xz
23ae6496 47# Source6-md5: 7ab2612417477b03538f11cd8b5e12f8
9f7b77bd 48Patch1: %{name}-pld.patch
9f7b77bd 49Patch3: x32-gcc-toolchain.patch
d96b39d3 50Patch4: cmake-buildtype.patch
d706a70d 51Patch5: %{name}-ocaml-shared.patch
2326a99f 52URL: http://llvm.org/
bc88141a 53BuildRequires: bash
d997b14b 54BuildRequires: bison
036156f1 55BuildRequires: cmake >= 3.4.3
d997b14b 56BuildRequires: flex
dd9350c7
JB
57BuildRequires: gcc >= 5:3.4
58# gcc4 might be installed, but not current __cc
59%if "%(echo %{cc_version} | cut -d. -f1,2)" < "3.4"
60BuildRequires: __cc >= 3.4
9556f4c9 61%endif
2bbd0701
JR
62%ifarch x32
63BuildRequires: glibc-devel(x86_64)
64%endif
d997b14b 65BuildRequires: groff
6c2b1a44 66BuildRequires: libedit-devel
bc88141a 67BuildRequires: libltdl-devel
d997b14b 68BuildRequires: libstdc++-devel >= 5:3.4
6c2b1a44 69BuildRequires: ncurses-devel
2bbd0701 70%if %{with ocaml}
5013c7ea 71BuildRequires: ocaml >= 4.00.0
c6c890ee 72BuildRequires: ocaml-ctypes-devel >= 0.4
2bbd0701 73BuildRequires: ocaml-findlib
77c13dab 74BuildRequires: ocaml-ocamldoc
5013c7ea 75BuildRequires: ocaml-ounit >= 2
2bbd0701 76%endif
8132e62b 77BuildRequires: perl-base >= 1:5.6
8c156e7d 78BuildRequires: perl-tools-pod
6c2b1a44 79BuildRequires: python >= 1:2.7
8c156e7d 80BuildRequires: rpm-pythonprov
b0068ae4 81%{?with_doc:BuildRequires: sphinx-pdg}
b883cf1e
JB
82BuildRequires: tar >= 1:1.22
83BuildRequires: xz
6c2b1a44 84BuildRequires: zlib-devel
dd9350c7
JB
85%if %{with apidocs}
86BuildRequires: doxygen
87BuildRequires: graphviz
88%endif
89%if %{with tests}
90BuildRequires: dejagnu
dd9350c7 91BuildRequires: tcl-devel
356a0bbd 92%endif
589b92f5
JB
93%if %{with rt} && %{with multilib}
94%ifarch %{x8664}
95BuildRequires: gcc-c++-multilib-32
96BuildRequires: libstdc++-multilib-32-devel
97%endif
fe705967
JK
98%ifarch x32
99BuildRequires: gcc-c++-multilib-32
100BuildRequires: libstdc++-multilib-32-devel
101BuildRequires: gcc-c++-multilib-64
102BuildRequires: libstdc++-multilib-64-devel
103%endif
589b92f5 104%endif
b883cf1e 105%if %{with lldb}
c6c890ee 106BuildRequires: epydoc
64f4e87f
JB
107%ifarch i386 i486
108BuildRequires: libatomic-devel
109%endif
b883cf1e
JB
110BuildRequires: libxml2-devel >= 2
111BuildRequires: ncurses-ext-devel
112BuildRequires: python-devel >= 2
12aa4b7a 113BuildRequires: swig-python >= 3.0.11
b883cf1e 114%endif
b0068ae4 115%if %{with polly}
6c2b1a44
JB
116#BuildRequires: gmp-devel or imath-devel (private copy in polly/lib/External/isl/imath)
117# private copy in polly/lib/External/isl
5013c7ea 118#BuildRequires: isl-devel >= 0.18
6c2b1a44 119#TODO (bcond): cuda-devel (with POLLY_ENABLE_GPGPU_CODEGEN=ON)
b0068ae4 120%endif
634a3e5b
JB
121%if %{with ocaml}
122BuildConflicts: llvm-ocaml
123%endif
8c514f23 124Requires: %{name}-libs = %{version}-%{release}
9556f4c9
ER
125# LLVM is not supported on PPC64
126# http://llvm.org/bugs/show_bug.cgi?id=3729
127ExcludeArch: ppc64
aa11c230 128BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
129
23ae6496 130%define abi 6.0
356a0bbd 131%define _sysconfdir /etc/%{name}
021b3c3d 132
9556f4c9 133%define specflags_ppc -fno-var-tracking-assignments
af221038 134# ix86 and x32 - the same issue as https://llvm.org/bugs/show_bug.cgi?id=27237
5013c7ea
JB
135# use -gsplit-dwarf only when building packages with debuginfo
136# to avoid excessive disk space usage
137%if 0%{?_enable_debug_packages}
af221038 138%define specflags_ia32 -gsplit-dwarf
35707fa4 139%define specflags_x32 -gsplit-dwarf
5013c7ea 140%endif
9556f4c9 141
6832a5c5
ER
142# strip corrupts: $RPM_BUILD_ROOT/usr/lib64/llvm-gcc/bin/llvm-c++ ...
143%define _noautostrip .*/\\(libmud.*\\.a\\|bin/llvm-.*\\|lib.*++\\.a\\)
144
782c6e1e
ER
145# clang doesn't know -fvar-tracking-assignments, and leaving it here would pollute llvm-config
146# -Werror=format-security is for swig
147# TODO: add - -Werror=format-security to tools/lldb/scripts/LLDBWrapPython.cpp
4a1d21cc 148%define filterout_c -fvar-tracking-assignments
782c6e1e 149%define filterout_cxx -fvar-tracking-assignments -Werror=format-security
4a1d21cc
JR
150%define filterout_ccpp -fvar-tracking-assignments
151
6df3b432 152# std::__once_call, std::__once_callable non-function symbols
5013c7ea 153%define skip_post_check_so libclang.so.* liblldb.so.*
6df3b432 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
501Group: Development/Tools
502Requires: %{name} = %{version}
8e9fbe9e 503BuildArch: noarch
d7447383
JR
504
505%description opt-viewer
506Optimization records visualization tools.
507
508%package -n vim-plugin-clang
509Summary: Clang format and rename integration for vim
510Group: Applications/Editors/Vim
511Requires: vim-rt >= 4:7.0
512BuildArch: noarch
513
514%description -n vim-plugin-clang
515Clang format and rename integration for vim.
516
aa11c230 517%prep
ba1cf74d 518%setup -q -n %{name}-%{version}.src -a1 %{?with_rt:-a2} %{?with_lldb:-a3} %{?with_polly:-a4} -a5 -a6
d706a70d 519%{__mv} cfe-%{version}.src tools/clang
5013c7ea
JB
520%{?with_rt:%{__mv} compiler-rt-%{version}.src projects/compiler-rt}
521%{?with_lldb:%{__mv} lldb-%{version}.src tools/lldb}
522%{?with_polly:%{__mv} polly-%{version}.src tools/polly}
d706a70d
JB
523%{__mv} clang-tools-extra-%{version}.src tools/clang/tools/extra
524%{__mv} lld-%{version}.src tools/lld
5a7ac479 525
9f7b77bd 526%patch1 -p1
9f7b77bd 527%patch3 -p1
d96b39d3 528%patch4 -p1
d706a70d 529%patch5 -p1
ce9cc204 530
bacc8b96
ER
531grep -rl /usr/bin/env tools utils | xargs sed -i -e '1{
532 s,^#!.*bin/env python,#!%{__python},
533 s,^#!.*bin/env perl,#!%{__perl},
534}'
535
d7447383
JR
536find -name '*.py' -print0 | xargs -0 sed -i -e '1{
537 s,^#!.*bin/python.*,#!%{__python},
538}'
539
d756c460 540%build
41876fe7 541install -d build
ebde279d 542
d997b14b 543# Disabling assertions now, rec. by pure and needed for OpenGTL
9556f4c9 544# TESTFIX no PIC on ix86: http://llvm.org/bugs/show_bug.cgi?id=3801
41876fe7 545cd build
5e689738 546CPPFLAGS="%{rpmcppflags} -D_FILE_OFFSET_BITS=64"
2bbd0701 547
d96b39d3 548%cmake \
5013c7ea 549%if "%{_lib}" == "lib64"
41876fe7
JR
550 -DLLVM_LIBDIR_SUFFIX:STRING=64 \
551%endif
5013c7ea 552%if "%{_lib}" == "libx32"
41876fe7
JR
553 -DLLVM_LIBDIR_SUFFIX:STRING=x32 \
554%endif
9556f4c9 555%if %{with apidocs}
41876fe7 556 -DLLVM_ENABLE_DOXYGEN:BOOL=ON \
d997b14b 557%endif
41876fe7
JR
558%if %{with doc}
559 -DLLVM_ENABLE_SPHINX:BOOL=ON \
e962ba72 560 -DSPHINX_WARNINGS_AS_ERRORS=OFF \
41876fe7 561%endif
6c382d2a 562 -DLLVM_ENABLE_PIC:BOOL=ON \
41876fe7
JR
563 -DLLVM_ENABLE_ASSERTIONS:BOOL=OFF \
564 -DLLVM_ENABLE_CXX1Y:BOOL=ON \
82174e17 565 -DLLVM_BINDINGS_LIST:LIST="%{?with_ocaml:ocaml}" \
9a23736f
JB
566 -DLLVM_BUILD_LLVM_DYLIB:BOOL=ON \
567 -DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
568 -DBUILD_SHARED_LIBS:BOOL=OFF \
036156f1 569 -DENABLE_LINKER_BUILD_ID:BOOL=ON \
e748f12a 570 -DLLVM_BINUTILS_INCDIR:STRING=%{_includedir} \
d96b39d3 571 ../
41876fe7 572
d997b14b 573%{__make} \
1628dc68 574 VERBOSE=1 \
0a0b7076 575 REQUIRES_RTTI=1 \
d997b14b 576 OPTIMIZE_OPTION="%{rpmcflags} %{rpmcppflags}"
aa11c230 577
827664e9 578%if %{with tests}
9556f4c9
ER
579%{__make} check 2>&1 | tee llvm-testlog.txt
580%{__make} -C tools/clang test 2>&1 | tee clang-testlog.txt
581%endif
582
b0068ae4 583%if %{with doc}
41876fe7
JR
584%{__make} -C docs docs-llvm-html
585%{__make} -C docs docs-llvm-man
c6c890ee 586%if %{with ocaml}
41876fe7 587%{__make} -C docs ocaml_doc
c6c890ee 588%endif
41876fe7
JR
589%{__make} -C tools/clang/docs docs-clang-html
590%{__make} -C tools/clang/docs docs-clang-man
591%{__make} -C tools/lld/docs docs-lld-html
47e02cfd
JP
592%{__make} \
593 LD_LIBRARY_PATH=$(pwd)/%{_lib} \
594 -C tools/lldb/docs lldb-python-doc
41876fe7 595%{__make} -C tools/lldb/docs lldb-cpp-doc
dd9350c7
JB
596%endif
597
aa11c230 598%install
599rm -rf $RPM_BUILD_ROOT
5013c7ea 600
464fc37c 601%{__make} -j1 -C build install \
aa11c230 602 DESTDIR=$RPM_BUILD_ROOT
603
6df3b432
JB
604# only some .pyc files are created by make install
605%py_comp $RPM_BUILD_ROOT%{py_sitedir}
606%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
607
634a3e5b 608# Adjust static analyzer installation
9556f4c9 609# http://clang-analyzer.llvm.org/installation#OtherPlatforms
634a3e5b
JB
610install -d $RPM_BUILD_ROOT%{_libdir}/scan-build
611%{__mv} $RPM_BUILD_ROOT%{_prefix}/libexec/c??-analyzer $RPM_BUILD_ROOT%{_libdir}/scan-build
80d95ac6 612%{__sed} -i -e 's,/\.\./libexec/,/../%{_lib}/scan-build/,' $RPM_BUILD_ROOT%{_bindir}/scan-build
634a3e5b
JB
613%py_comp $RPM_BUILD_ROOT%{_datadir}/scan-view
614%py_ocomp $RPM_BUILD_ROOT%{_datadir}/scan-view
615%py_postclean %{_datadir}/scan-view
d997b14b 616
6df3b432 617# not installed by cmake buildsystem
6df3b432
JB
618install build/bin/pp-trace $RPM_BUILD_ROOT%{_bindir}
619
b0068ae4 620%if %{with doc}
6df3b432 621cp -p build/docs/man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
b883cf1e
JB
622# these tools are not installed
623%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/{FileCheck,llvm-build}.1
b0068ae4
JB
624# make links
625echo '.so llvm-ar.1' > $RPM_BUILD_ROOT%{_mandir}/man1/llvm-ranlib.1
dd9350c7
JB
626%endif
627
d997b14b 628# Move documentation back to build directory
2bbd0701 629%if %{with ocaml}
6df3b432 630rm -rf ocamldocs
5013c7ea 631%{__mv} $RPM_BUILD_ROOT%{_docdir}/llvm/ocaml-html ocamldocs
2bbd0701 632%endif
9556f4c9
ER
633
634# and separate the apidoc
635%if %{with apidocs}
6df3b432
JB
636rm -rf clang-apidoc
637cp -a build/tools/clang/docs/html clang-apidoc
9556f4c9 638%endif
d997b14b
AM
639
640# And prepare Clang documentation
d997b14b 641rm -rf clang-docs
9556f4c9 642install -d clang-docs
827664e9 643for f in LICENSE.TXT NOTES.txt README.txt; do
9556f4c9 644 ln tools/clang/$f clang-docs
d997b14b 645done
021b3c3d 646
6832a5c5 647# Get rid of erroneously installed example files.
6df3b432
JB
648%{__rm} $RPM_BUILD_ROOT%{_libdir}/LLVMHello.so
649# test?
d706a70d 650%{__rm} $RPM_BUILD_ROOT%{_bindir}/{c-index-test,llvm-c-test}
6df3b432
JB
651# not this OS
652%{__rm} $RPM_BUILD_ROOT%{_datadir}/clang/clang-format-bbedit.applescript
d706a70d
JB
653# use system six
654%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/six.py*
03073220
JK
655# it seems it is used internally by an extra clang tool
656%{__rm} $RPM_BUILD_ROOT%{_libdir}/libfindAllSymbols.a
6832a5c5 657
aa11c230 658%clean
659rm -rf $RPM_BUILD_ROOT
660
8c514f23
JB
661%post libs -p /sbin/ldconfig
662%postun libs -p /sbin/ldconfig
aa11c230 663
5013c7ea
JB
664%post -n clang-libs -p /sbin/ldconfig
665%postun -n clang-libs -p /sbin/ldconfig
5a7ac479
JB
666
667%post -n lldb -p /sbin/ldconfig
668%postun -n lldb -p /sbin/ldconfig
669
aa11c230 670%files
671%defattr(644,root,root,755)
8132e62b 672%doc CREDITS.TXT LICENSE.TXT README.txt %{?with_tests:llvm-testlog.txt}
a9beeab5 673%attr(755,root,root) %{_bindir}/bugpoint
a9beeab5
JB
674%attr(755,root,root) %{_bindir}/llc
675%attr(755,root,root) %{_bindir}/lli
8132e62b
JB
676%attr(755,root,root) %{_bindir}/llvm-ar
677%attr(755,root,root) %{_bindir}/llvm-as
678%attr(755,root,root) %{_bindir}/llvm-bcanalyzer
5013c7ea 679%attr(755,root,root) %{_bindir}/llvm-cat
23ae6496 680%attr(755,root,root) %{_bindir}/llvm-cfi-verify
827664e9 681%attr(755,root,root) %{_bindir}/llvm-cov
265e167c 682%attr(755,root,root) %{_bindir}/llvm-cvtres
5013c7ea
JB
683%attr(755,root,root) %{_bindir}/llvm-cxxdump
684%attr(755,root,root) %{_bindir}/llvm-cxxfilt
8132e62b
JB
685%attr(755,root,root) %{_bindir}/llvm-diff
686%attr(755,root,root) %{_bindir}/llvm-dis
265e167c 687%attr(755,root,root) %{_bindir}/llvm-dlltool
4ba3b2b3 688%attr(755,root,root) %{_bindir}/llvm-dsymutil
827664e9 689%attr(755,root,root) %{_bindir}/llvm-dwarfdump
264482e1 690%attr(755,root,root) %{_bindir}/llvm-dwp
8132e62b 691%attr(755,root,root) %{_bindir}/llvm-extract
6df3b432 692%attr(755,root,root) %{_bindir}/llvm-lib
8132e62b 693%attr(755,root,root) %{_bindir}/llvm-link
3c402b7e 694%attr(755,root,root) %{_bindir}/llvm-lto
5013c7ea 695%attr(755,root,root) %{_bindir}/llvm-lto2
8132e62b 696%attr(755,root,root) %{_bindir}/llvm-mc
dd9350c7 697%attr(755,root,root) %{_bindir}/llvm-mcmarkup
5013c7ea 698%attr(755,root,root) %{_bindir}/llvm-modextract
265e167c 699%attr(755,root,root) %{_bindir}/llvm-mt
8132e62b 700%attr(755,root,root) %{_bindir}/llvm-nm
23ae6496 701%attr(755,root,root) %{_bindir}/llvm-objcopy
8132e62b 702%attr(755,root,root) %{_bindir}/llvm-objdump
5013c7ea 703%attr(755,root,root) %{_bindir}/llvm-opt-report
265e167c 704%attr(755,root,root) %{_bindir}/llvm-pdbutil
b883cf1e 705%attr(755,root,root) %{_bindir}/llvm-profdata
8132e62b 706%attr(755,root,root) %{_bindir}/llvm-ranlib
23ae6496 707%attr(755,root,root) %{_bindir}/llvm-rc
265e167c 708%attr(755,root,root) %{_bindir}/llvm-readelf
f981d747 709%attr(755,root,root) %{_bindir}/llvm-readobj
827664e9
PS
710%attr(755,root,root) %{_bindir}/llvm-rtdyld
711%attr(755,root,root) %{_bindir}/llvm-size
264482e1 712%attr(755,root,root) %{_bindir}/llvm-split
f981d747 713%attr(755,root,root) %{_bindir}/llvm-stress
5013c7ea 714%attr(755,root,root) %{_bindir}/llvm-strings
1628dc68 715%attr(755,root,root) %{_bindir}/llvm-symbolizer
827664e9 716%attr(755,root,root) %{_bindir}/llvm-tblgen
5013c7ea 717%attr(755,root,root) %{_bindir}/llvm-xray
4ba3b2b3 718%attr(755,root,root) %{_bindir}/obj2yaml
8132e62b 719%attr(755,root,root) %{_bindir}/opt
d706a70d 720%attr(755,root,root) %{_bindir}/sancov
03073220 721%attr(755,root,root) %{_bindir}/sanstats
4ba3b2b3
JB
722%attr(755,root,root) %{_bindir}/verify-uselistorder
723%attr(755,root,root) %{_bindir}/yaml2obj
b0068ae4 724%if %{with doc}
a9beeab5 725%{_mandir}/man1/bugpoint.1*
23ae6496 726%{_mandir}/man1/dsymutil.1*
a7973f21 727%{_mandir}/man1/lit.1*
a9beeab5
JB
728%{_mandir}/man1/llc.1*
729%{_mandir}/man1/lli.1*
8132e62b
JB
730%{_mandir}/man1/llvm-ar.1*
731%{_mandir}/man1/llvm-as.1*
732%{_mandir}/man1/llvm-bcanalyzer.1*
f981d747 733%{_mandir}/man1/llvm-cov.1*
8132e62b
JB
734%{_mandir}/man1/llvm-diff.1*
735%{_mandir}/man1/llvm-dis.1*
b883cf1e 736%{_mandir}/man1/llvm-dwarfdump.1*
8132e62b 737%{_mandir}/man1/llvm-extract.1*
d706a70d 738%{_mandir}/man1/llvm-lib.1*
8132e62b
JB
739%{_mandir}/man1/llvm-link.1*
740%{_mandir}/man1/llvm-nm.1*
23ae6496 741%{_mandir}/man1/llvm-pdbutil.1*
b883cf1e 742%{_mandir}/man1/llvm-profdata.1*
8132e62b 743%{_mandir}/man1/llvm-ranlib.1*
c999855f 744%{_mandir}/man1/llvm-readobj.1*
f981d747 745%{_mandir}/man1/llvm-stress.1*
1628dc68 746%{_mandir}/man1/llvm-symbolizer.1*
a9beeab5 747%{_mandir}/man1/opt.1*
dd9350c7 748%{_mandir}/man1/tblgen.1*
b0068ae4 749%endif
bc88141a 750
8c514f23
JB
751%files libs
752%defattr(644,root,root,755)
9a23736f
JB
753%attr(755,root,root) %{_libdir}/libLLVM-%{abi}.so
754# non-soname symlink
755%attr(755,root,root) %{_libdir}/libLLVM-%{version}.so
5013c7ea 756%attr(755,root,root) %{_libdir}/libLTO.so.%{version}
23ae6496 757%attr(755,root,root) %ghost %{_libdir}/libLTO.so.6
4e51849f 758%attr(755,root,root) %{_libdir}/LLVMgold.so
8c514f23 759
bc88141a
ER
760%files devel
761%defattr(644,root,root,755)
762%attr(755,root,root) %{_bindir}/llvm-config
9a23736f 763%attr(755,root,root) %{_libdir}/libLLVM.so
5013c7ea 764%attr(755,root,root) %{_libdir}/libLTO.so
0a8510f2 765%attr(755,root,root) %{_libdir}/BugpointPasses.so
d706a70d 766%{_libdir}/libLLVM*.a
8132e62b
JB
767%{_includedir}/llvm
768%{_includedir}/llvm-c
9ace1f65 769%{_libdir}/cmake/llvm
b0068ae4 770%if %{with doc}
8132e62b 771%{_mandir}/man1/llvm-config.1*
b0068ae4 772%endif
bc88141a 773
6df3b432
JB
774#%files doc
775#%defattr(644,root,root,755)
9556f4c9
ER
776
777%if %{with apidocs}
778%files apidocs
779%defattr(644,root,root,755)
780%doc apidoc/*
781%endif
782
b0068ae4
JB
783%if %{with polly}
784%files polly
785%defattr(644,root,root,755)
6c2b1a44 786%doc tools/polly/{CREDITS.txt,LICENSE.txt,README} tools/polly/www/{bugs,changelog,contributors}.html
b0068ae4
JB
787%attr(755,root,root) %{_libdir}/LLVMPolly.so
788
789%files polly-devel
790%defattr(644,root,root,755)
9a23736f
JB
791%{_libdir}/libPolly.a
792%{_libdir}/libPollyISL.a
03073220 793%{_libdir}/libPollyPPCG.a
b0068ae4 794%{_includedir}/polly
265e167c 795%{_libdir}/cmake/polly
b0068ae4
JB
796%endif
797
d997b14b 798%files -n clang
bc88141a 799%defattr(644,root,root,755)
827664e9 800%doc clang-docs/{LICENSE.TXT,NOTES.txt,README.txt} %{?with_tests:clang-testlog.txt}
8132e62b
JB
801%attr(755,root,root) %{_bindir}/clang
802%attr(755,root,root) %{_bindir}/clang++
509439cf 803%attr(755,root,root) %{_bindir}/clang-%{abi}
dd9350c7 804%attr(755,root,root) %{_bindir}/clang-check
6df3b432 805%attr(755,root,root) %{_bindir}/clang-cl
5013c7ea 806%attr(755,root,root) %{_bindir}/clang-cpp
1628dc68 807%attr(755,root,root) %{_bindir}/clang-format
5013c7ea
JB
808%attr(755,root,root) %{_bindir}/clang-import-test
809%attr(755,root,root) %{_bindir}/clang-offload-bundler
6df3b432 810%attr(755,root,root) %{_bindir}/git-clang-format
5a7ac479
JB
811%dir %{_libdir}/clang
812%dir %{_libdir}/clang/%{version}
813%{_libdir}/clang/%{version}/include
814%if %{with rt}
b0e18b64 815%ifarch %{ix86} %{x8664} x32
9eefd942
JR
816%dir %{_libdir}/clang/%{version}/lib
817%dir %{_libdir}/clang/%{version}/lib/linux
818%endif
819%ifarch %{ix86}
820%{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-i*86.a
821%attr(755,root,root) %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-i*86.so
c6c890ee
JB
822%endif
823%ifarch %{x8664}
9eefd942
JR
824%{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-x86_64.a
825%attr(755,root,root) %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-x86_64.so
f4c0e8bd 826%{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-x86_64.a.syms
3c402b7e 827%endif
b0e18b64 828%ifarch %{ix86} %{x8664} x32 %{arm} aarch64 mips mips64 ppc64
d706a70d
JB
829%{_libdir}/clang/%{version}/asan_blacklist.txt
830%endif
b0e18b64 831%ifarch %{ix86} %{x8664} x32 mips64
d706a70d
JB
832%{_libdir}/clang/%{version}/cfi_blacklist.txt
833%endif
b0e18b64 834%ifarch %{x8664} x32 aarch64 mips64
d706a70d
JB
835%{_libdir}/clang/%{version}/dfsan_abilist.txt
836%{_libdir}/clang/%{version}/msan_blacklist.txt
837%endif
5a7ac479 838%endif
3c402b7e
JB
839%dir %{_datadir}/clang
840%{_datadir}/clang/clang-format-diff.py
d997b14b 841
87977e26
JR
842%files -n clang-libs
843%defattr(644,root,root,755)
509439cf 844%attr(755,root,root) %{_libdir}/libclang.so.%{abi}
23ae6496 845%attr(755,root,root) %ghost %{_libdir}/libclang.so.6
87977e26 846
589b92f5 847%if %{with rt} && %{with multilib}
b0e18b64 848%ifarch %{x8664} x32
9eefd942
JR
849%files -n clang-multilib
850%defattr(644,root,root,755)
851%{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-i386.a
852%attr(755,root,root) %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-i386.so
853%endif
b0e18b64
JB
854%ifarch x32
855%{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-x86_64.a
856%attr(755,root,root) %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-x86_64.so
857%{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-x86_64.a.syms
858%endif
9eefd942
JR
859%endif
860
d997b14b 861%files -n clang-analyzer
bc88141a 862%defattr(644,root,root,755)
d997b14b
AM
863%attr(755,root,root) %{_bindir}/scan-build
864%attr(755,root,root) %{_bindir}/scan-view
634a3e5b
JB
865%{_datadir}/scan-build
866%{_datadir}/scan-view
dd9350c7 867%{_mandir}/man1/scan-build.1*
4522eb9a
JB
868%dir %{_libdir}/scan-build
869%attr(755,root,root) %{_libdir}/scan-build/c++-analyzer
870%attr(755,root,root) %{_libdir}/scan-build/ccc-analyzer
8132e62b 871
9556f4c9
ER
872%files -n clang-devel
873%defattr(644,root,root,755)
9a23736f
JB
874%attr(755,root,root) %{_libdir}/libclang.so
875%{_libdir}/libclang*.a
9556f4c9
ER
876%{_includedir}/clang
877%{_includedir}/clang-c
9ace1f65 878%{_libdir}/cmake/clang
9556f4c9
ER
879
880%files -n clang-doc
881%defattr(644,root,root,755)
41876fe7 882%doc tools/clang/docs/*.{html,png,txt}
9556f4c9
ER
883
884%if %{with apidocs}
885%files -n clang-apidocs
886%defattr(644,root,root,755)
887%doc clang-apidoc/*
888%endif
889
b0068ae4
JB
890%files -n clang-tools-extra
891%defattr(644,root,root,755)
9ace1f65 892%doc tools/clang/tools/extra/{CODE_OWNERS.TXT,README.txt}
b0068ae4 893%attr(755,root,root) %{_bindir}/clang-apply-replacements
5013c7ea 894%attr(755,root,root) %{_bindir}/clang-change-namespace
23ae6496 895%attr(755,root,root) %{_bindir}/clang-func-mapping
03073220 896%attr(755,root,root) %{_bindir}/clang-include-fixer
b883cf1e 897%attr(755,root,root) %{_bindir}/clang-query
23ae6496 898%attr(755,root,root) %{_bindir}/clang-refactor
4ba3b2b3 899%attr(755,root,root) %{_bindir}/clang-rename
5013c7ea 900%attr(755,root,root) %{_bindir}/clang-reorder-fields
b0068ae4 901%attr(755,root,root) %{_bindir}/clang-tidy
265e167c 902%attr(755,root,root) %{_bindir}/clangd
03073220 903%attr(755,root,root) %{_bindir}/find-all-symbols
d706a70d 904%attr(755,root,root) %{_bindir}/modularize
b0068ae4 905%attr(755,root,root) %{_bindir}/pp-trace
03073220 906%{_datadir}/clang/clang-include-fixer.py
d706a70d
JB
907%{_datadir}/clang/clang-tidy-diff.py
908%{_datadir}/clang/run-clang-tidy.py
03073220 909%{_datadir}/clang/run-find-all-symbols.py
b0068ae4 910
ba1cf74d
JB
911%files -n lld
912%defattr(644,root,root,755)
913%doc tools/lld/{LICENSE.TXT,README.md}
d706a70d 914%attr(755,root,root) %{_bindir}/ld.lld
23ae6496 915%attr(755,root,root) %{_bindir}/ld64.lld
ba1cf74d 916%attr(755,root,root) %{_bindir}/lld
d706a70d 917%attr(755,root,root) %{_bindir}/lld-link
d7447383 918%attr(755,root,root) %{_bindir}/wasm-ld
ba1cf74d
JB
919
920%files -n lld-devel
921%defattr(644,root,root,755)
d7447383 922%{_libdir}/liblld[ACDEHMRWXY]*.a
ba1cf74d
JB
923%{_includedir}/lld
924
5a7ac479
JB
925%if %{with lldb}
926%files -n lldb
927%defattr(644,root,root,755)
928%attr(755,root,root) %{_bindir}/lldb
4522eb9a 929%attr(755,root,root) %{_bindir}/lldb-argdumper
b883cf1e 930%attr(755,root,root) %{_bindir}/lldb-mi
6df3b432 931%attr(755,root,root) %{_bindir}/lldb-server
23ae6496 932%attr(755,root,root) %{_bindir}/lldb-test
6df3b432 933%attr(755,root,root) %{_libdir}/liblldb.so.%{version}
23ae6496
JP
934%attr(755,root,root) %ghost %{_libdir}/liblldb.so.6
935%attr(755,root,root) %{_libdir}/liblldbIntelFeatures.so.%{version}
936%attr(755,root,root) %ghost %{_libdir}/liblldbIntelFeatures.so.6
b883cf1e 937%dir %{py_sitedir}/lldb
4522eb9a 938%attr(755,root,root) %{py_sitedir}/lldb/lldb-argdumper
6df3b432
JB
939%{py_sitedir}/lldb/formatters
940%{py_sitedir}/lldb/runtime
941%{py_sitedir}/lldb/utils
942%{py_sitedir}/lldb/__init__.py[co]
943%{py_sitedir}/lldb/embedded_interpreter.py[co]
b883cf1e
JB
944%attr(755,root,root) %{py_sitedir}/lldb/_lldb.so
945%attr(755,root,root) %{py_sitedir}/readline.so
5a7ac479
JB
946
947%files -n lldb-devel
948%defattr(644,root,root,755)
6df3b432 949%attr(755,root,root) %{_libdir}/liblldb.so
23ae6496 950%attr(755,root,root) %{_libdir}/liblldbIntelFeatures.so
5a7ac479
JB
951%{_libdir}/liblldb*.a
952%{_includedir}/lldb
953%endif
954
9556f4c9 955%if %{with ocaml}
d997b14b
AM
956%files ocaml
957%defattr(644,root,root,755)
265e167c 958%attr(755,root,root) %{_libdir}/ocaml/stublibs/dllllvm*.so
5013c7ea 959%dir %{_libdir}/ocaml/llvm
5013c7ea
JB
960%{_libdir}/ocaml/llvm/llvm*.cma
961%{_libdir}/ocaml/llvm/llvm*.cmi
11b6f380 962%{_libdir}/ocaml/META.llvm*
d997b14b
AM
963
964%files ocaml-devel
965%defattr(644,root,root,755)
5013c7ea
JB
966%{_libdir}/ocaml/llvm/libllvm*.a
967%{_libdir}/ocaml/llvm/llvm*.a
968%{_libdir}/ocaml/llvm/llvm*.cmx
969%{_libdir}/ocaml/llvm/llvm*.cmxa
970%{_libdir}/ocaml/llvm/llvm*.mli
9556f4c9
ER
971
972%files ocaml-doc
973%defattr(644,root,root,755)
6df3b432 974%doc ocamldocs/*
9556f4c9 975%endif
d7447383
JR
976
977%files opt-viewer
978%defattr(644,root,root,755)
979%{_datadir}/opt-viewer
980
981%files -n vim-plugin-clang
982%defattr(644,root,root,755)
983%{_datadir}/clang/clang-format.py
984%{_datadir}/clang/clang-rename.py
This page took 0.346119 seconds and 4 git commands to generate.