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