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