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