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