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