]> git.pld-linux.org Git - packages/llvm.git/blame - llvm.spec
- release 4
[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:
7# %{_datadir}/clang/clang-format-sublime.py - sublime plugin
5013c7ea
JB
8# %{_datadir}/clang/clang-format.el - clang tools emacs integration
9# %{_datadir}/clang/clang-include-fixer.el
10# %{_datadir}/clang/clang-rename.el
6df3b432 11# - no content in doc package (it used to contain parts of clang apidocs and some examples)
6c2b1a44 12# - system isl in polly?
bc88141a 13#
9556f4c9 14# Conditional build:
a531db5e 15%bcond_without lldb # LLDB debugger
d27b2b77 16%bcond_without mlir # MLIR libraries and tools (required for Flang)
20451c6c 17%bcond_with flang # Flang (Fortran18) compiler (heavy memory requirements during build)
a531db5e
JP
18%bcond_without polly # Polly cache-locality optimization, auto-parallelism and vectorization
19%bcond_without rt # compiler-rt libraries
20%bcond_without multilib # compiler-rt multilib libraries
21%bcond_without ocaml # OCaml binding
22%bcond_without z3 # Z3 constraint solver support in Clang Static Analyzer
23%bcond_without doc # HTML docs and man pages
24%bcond_without target_aarch64 # AArch64 target support
25%bcond_without target_amdgpu # AMDGPU target support
26%bcond_without target_arm # ARM target support
27%bcond_without target_avr # AVR target support
28%bcond_without target_bpf # BPF target support
29%bcond_without target_hexagon # Hexagon target support
30%bcond_without target_lanai # Lanai target support
31%bcond_without target_mips # Mips target support
32%bcond_without target_msp430 # MSP430 target support
33%bcond_without target_nvptx # NVPTX target support
34%bcond_without target_powerpc # PowerPC target support
35%bcond_without target_riscv # RISCV target support
36%bcond_without target_sparc # Sparc target support
37%bcond_without target_systemz # SystemZ target support
38%bcond_without target_webassembly # WebAssembly target support
39%bcond_without target_x86 # X86 target support
40%bcond_without target_xcore # XCore target support
a531db5e
JP
41%bcond_with cxxmodules # C++20 modules (requires support in bootstrap compiler)
42%bcond_with apidocs # doxygen docs (HUGE, so they are not built by default)
43%bcond_with tests # run tests
44%bcond_with lowmem # lower memory requirements
9556f4c9 45
4ba3b2b3 46# No ocaml on other arches or no native ocaml (required for ocaml-ctypes)
5013c7ea 47%ifnarch %{ix86} %{x8664} %{arm} aarch64 ppc sparc sparcv9
9556f4c9
ER
48%undefine with_ocaml
49%endif
50
bdd7e0f7
JP
51%ifarch armv3l armv4b armv4l armv4tl armv5tl armv5tel armv5tejl armv6l armv6hl
52%undefine with_rt
53%endif
54
1431eb62 55%ifarch %{arm} aarch64
c377e543 56%define with_lowmem 1
1431eb62
JP
57%endif
58
a531db5e
JP
59%define targets_to_build %{?with_target_aarch64:AArch64;}%{?with_target_amdgpu:AMDGPU;}%{?with_target_arm:ARM;}%{?with_target_avr:AVR;}%{?with_target_bpf:BPF;}%{?with_target_hexagon:Hexagon;}%{?with_target_lanai:Lanai;}%{?with_target_mips:Mips;}%{?with_target_msp430:MSP430;}%{?with_target_nvptx:NVPTX;}%{?with_target_powerpc:PowerPC;}%{?with_target_riscv:RISCV;}%{?with_target_sparc:Sparc;}%{?with_target_systemz:SystemZ;}%{?with_target_webassembly:WebAssembly;}%{?with_target_x86:X86;}%{?with_target_xcore:XCore;}
60
d27b2b77
JB
61%if %{without mlir}
62%undefine with_flang
63%endif
64
aa11c230 65Summary: The Low Level Virtual Machine (An Optimizing Compiler Infrastructure)
2326a99f 66Summary(pl.UTF-8): Niskopoziomowa maszyna wirtualna (infrastruktura kompilatora optymalizującego)
aa11c230 67Name: llvm
8d52ede4 68Version: 13.0.0
82fbc526 69Release: 4
77d2fdeb 70License: Apache 2.0 with LLVM exceptions
aa11c230 71Group: Development/Languages
44d18de7
JB
72#Source0Download: https://github.com/llvm/llvm-project/releases/
73Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/%{name}-%{version}.src.tar.xz
8d52ede4 74# Source0-md5: 8c24626dce3ee9d87d1079ebf0897db5
44d18de7 75Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/clang-%{version}.src.tar.xz
8d52ede4 76# Source1-md5: 020cbac6e5786094fe4f96f72e290763
44d18de7 77Source2: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/compiler-rt-%{version}.src.tar.xz
8d52ede4 78# Source2-md5: e2e136656d27d60c5f40e20260f63c07
44d18de7 79Source3: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/lldb-%{version}.src.tar.xz
8d52ede4 80# Source3-md5: 0956c6078d1fd3bee22d064e2addd784
44d18de7 81Source4: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/polly-%{version}.src.tar.xz
8d52ede4 82# Source4-md5: 4bde9e5c4d739576cf2d804d50c822d6
44d18de7 83Source5: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/clang-tools-extra-%{version}.src.tar.xz
8d52ede4 84# Source5-md5: f86778fc0d97508b4d7c244d93ebf944
44d18de7 85Source6: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/lld-%{version}.src.tar.xz
8d52ede4 86# Source6-md5: e4f95d6cb895ebedf2c3224585682159
1a356f89 87Source7: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/flang-%{version}.src.tar.xz
8d52ede4
JP
88# Source7-md5: 4125a570905dd2755748e6f33442b74d
89# "mlir" subdir extracted from https://github.com/llvm/llvm-project/releases/download/llvmorg-13.0.0/llvm-project-13.0.0.src.tar.xz
1a356f89 90Source8: mlir-%{version}.tar.xz
8d52ede4 91# Source8-md5: de6a9476ef2a52b59d7c29a8bb786719
9f7b77bd 92Patch1: %{name}-pld.patch
200602f4 93Patch2: %{name}-python-modules.patch
9f7b77bd 94Patch3: x32-gcc-toolchain.patch
d96b39d3 95Patch4: cmake-buildtype.patch
d706a70d 96Patch5: %{name}-ocaml-shared.patch
1a356f89 97Patch6: %{name}-flang.patch
40bef2a3 98Patch7: llvm12-build_fixes.patch
4a967aa9 99Patch8: %{name}-selective_bindings.patch
e25801fb 100Patch9: %{name}-libexecdir.patch
77d2fdeb 101URL: https://llvm.org/
bc88141a 102BuildRequires: bash
803f8d9b 103BuildRequires: binutils-devel
d997b14b 104BuildRequires: bison
134d4fc5 105BuildRequires: cmake >= 3.13.4
d997b14b 106BuildRequires: flex
d997b14b 107BuildRequires: groff
6c2b1a44 108BuildRequires: libedit-devel
bc88141a 109BuildRequires: libltdl-devel
44d18de7 110BuildRequires: libpfm-devel
ad697ab7 111BuildRequires: libstdc++-devel >= 6:5
44d18de7 112BuildRequires: libxml2-devel >= 2
6c2b1a44 113BuildRequires: ncurses-devel
2bbd0701 114%if %{with ocaml}
5013c7ea 115BuildRequires: ocaml >= 4.00.0
c6c890ee 116BuildRequires: ocaml-ctypes-devel >= 0.4
2bbd0701 117BuildRequires: ocaml-findlib
77c13dab 118BuildRequires: ocaml-ocamldoc
85ae1a18 119%{?with_tests:BuildRequires: ocaml-ounit >= 2}
2bbd0701 120%endif
8132e62b 121BuildRequires: perl-base >= 1:5.6
8c156e7d 122BuildRequires: perl-tools-pod
134d4fc5 123BuildRequires: python3 >= 1:3
40bef2a3
JP
124BuildRequires: python3-PyYAML
125BuildRequires: python3-pygments >= 2.0
8c156e7d 126BuildRequires: rpm-pythonprov
a5fe2ce1 127BuildRequires: rpmbuild(macros) >= 1.742
b0068ae4 128%{?with_doc:BuildRequires: sphinx-pdg}
b883cf1e 129BuildRequires: tar >= 1:1.22
78991aba 130BuildRequires: xar-devel >= 1.6
b883cf1e 131BuildRequires: xz
200602f4 132%{?with_z3:BuildRequires: z3-devel >= 4.7.1}
6c2b1a44 133BuildRequires: zlib-devel
dd9350c7
JB
134%if %{with apidocs}
135BuildRequires: doxygen
136BuildRequires: graphviz
137%endif
138%if %{with tests}
139BuildRequires: dejagnu
dd9350c7 140BuildRequires: tcl-devel
356a0bbd 141%endif
589b92f5
JB
142%if %{with rt} && %{with multilib}
143%ifarch %{x8664}
144BuildRequires: gcc-c++-multilib-32
145BuildRequires: libstdc++-multilib-32-devel
146%endif
fe705967 147%ifarch x32
3b28b31d
JB
148BuildRequires: gcc-c++-multilib-32
149BuildRequires: gcc-c++-multilib-64
150BuildRequires: glibc-devel(x86_64)
151BuildRequires: libstdc++-multilib-32-devel
152BuildRequires: libstdc++-multilib-64-devel
fe705967 153%endif
589b92f5 154%endif
b883cf1e 155%if %{with lldb}
c6c890ee 156BuildRequires: epydoc
d92b4c2a 157%ifarch i386 i486 %{arm}
64f4e87f
JB
158BuildRequires: libatomic-devel
159%endif
b883cf1e 160BuildRequires: libxml2-devel >= 2
ad697ab7 161BuildRequires: lua-devel
b883cf1e 162BuildRequires: ncurses-ext-devel
134d4fc5 163BuildRequires: python3-devel >= 1:3.2
c330693d 164%{?with_doc:BuildRequires: python3-recommonmark}
12aa4b7a 165BuildRequires: swig-python >= 3.0.11
ad697ab7 166BuildRequires: xz-devel
b883cf1e 167%endif
b0068ae4 168%if %{with polly}
6c2b1a44
JB
169#BuildRequires: gmp-devel or imath-devel (private copy in polly/lib/External/isl/imath)
170# private copy in polly/lib/External/isl
ad697ab7 171#BuildRequires: isl-devel >= 0.22.1
6c2b1a44 172#TODO (bcond): cuda-devel (with POLLY_ENABLE_GPGPU_CODEGEN=ON)
9b8c1bd2 173%{?with_target_nvptx:BuildRequires: ocl-icd-libOpenCL-devel}
b0068ae4 174%endif
634a3e5b
JB
175%if %{with ocaml}
176BuildConflicts: llvm-ocaml
177%endif
8c514f23 178Requires: %{name}-libs = %{version}-%{release}
9556f4c9
ER
179# LLVM is not supported on PPC64
180# http://llvm.org/bugs/show_bug.cgi?id=3729
181ExcludeArch: ppc64
aa11c230 182BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
183
8d52ede4 184%define abi 13
356a0bbd 185%define _sysconfdir /etc/%{name}
021b3c3d 186
9556f4c9 187%define specflags_ppc -fno-var-tracking-assignments
7a1e73fa
JP
188
189# objcopy: BFD (GNU Binutils) 2.32 assertion fail format.c:459
190# objcopy: error: .../libLLVM-8.so(.debug_gnu_pubtypes) is too large (0x1ceee347 bytes)
191# objcopy: .../libLLVM-8.so[.debug_gnu_pubtypes]: memory exhausted
192%ifarch x32
193%define _enable_debug_packages 0
194%endif
af221038 195# ix86 and x32 - the same issue as https://llvm.org/bugs/show_bug.cgi?id=27237
5013c7ea
JB
196# use -gsplit-dwarf only when building packages with debuginfo
197# to avoid excessive disk space usage
50fe0adf
JB
198%if 0%{?_enable_debug_packages}
199%define specflags -gsplit-dwarf
200%endif
9556f4c9 201
6832a5c5
ER
202# strip corrupts: $RPM_BUILD_ROOT/usr/lib64/llvm-gcc/bin/llvm-c++ ...
203%define _noautostrip .*/\\(libmud.*\\.a\\|bin/llvm-.*\\|lib.*++\\.a\\)
204
782c6e1e
ER
205# clang doesn't know -fvar-tracking-assignments, and leaving it here would pollute llvm-config
206# -Werror=format-security is for swig
207# TODO: add - -Werror=format-security to tools/lldb/scripts/LLDBWrapPython.cpp
4a1d21cc 208%define filterout_c -fvar-tracking-assignments
782c6e1e 209%define filterout_cxx -fvar-tracking-assignments -Werror=format-security
4a1d21cc
JR
210%define filterout_ccpp -fvar-tracking-assignments
211
aa11c230 212%description
213LLVM is a compiler infrastructure designed for compile-time,
214link-time, runtime, and idle-time optimization of programs from
215arbitrary programming languages. LLVM is written in C++ and has been
216developed since 2000 at the University of Illinois and Apple. It
621ec11f
JB
217currently supports compilation of C and C++ programs using clang
218frontend.
aa11c230 219
2326a99f
JB
220%description -l pl.UTF-8
221LLVM to infrastruktura kompilatora zaprojektowana do optymalizacji
222czasu kompilowania, linkowania, działania i bezczynności programów w
223dowolnych językach programowania. Jest napisana w C++, rozwijana od
224roku 2000 przez Uniwersytet w Illinois i Apple. Aktualnie obsługuje
621ec11f 225kompilację programów w C i C++ przy użyciu frontendu clang.
2326a99f 226
8c514f23 227%package libs
87977e26
JR
228Summary: LLVM shared libraries
229Summary(pl.UTF-8): Biblioteki współdzielone LLVM-a
8c514f23
JB
230Group: Libraries
231Conflicts: llvm < 3.2
232
233%description libs
87977e26 234LLVM shared libraries.
8c514f23
JB
235
236%description libs -l pl.UTF-8
87977e26 237Biblioteki współdzielone LLVM-a.
8c514f23 238
bc88141a 239%package devel
621ec11f
JB
240Summary: Static libraries and header files for LLVM
241Summary(pl.UTF-8): Biblioteki statyczne i pliki nagłówkowe dla LLVM-a
bc88141a 242Group: Development/Languages
8c514f23 243Requires: %{name}-libs = %{version}-%{release}
bc88141a
ER
244Requires: libstdc++-devel >= 6:3.4
245
246%description devel
621ec11f
JB
247This package contains static libraries and header files needed to
248develop new native programs that use the LLVM infrastructure.
249
250%description devel -l pl.UTF-8
251Ten pakiet zawiera biblioteki statyczne oraz pliki nagłówkowe
252potrzebne do tworzenia nowych programów natywnych wykorzystujących
253infrastrukturę LLVM.
bc88141a 254
9556f4c9
ER
255%package doc
256Summary: Documentation for LLVM
621ec11f 257Summary(pl.UTF-8): Dokumentacja do LLVM-a
9556f4c9
ER
258Group: Documentation
259# does not require base
bc88141a 260
9556f4c9
ER
261%description doc
262Documentation for the LLVM compiler infrastructure.
bc88141a 263
621ec11f
JB
264%description doc -l pl.UTF-8
265Dokumentacja do infrastruktury kompilatorów LLVM.
266
9556f4c9
ER
267%package apidocs
268Summary: API documentation for LLVM
621ec11f 269Summary(pl.UTF-8): Dokumentacja API LLVM-a
9556f4c9
ER
270Group: Development/Languages
271Requires: %{name}-doc = %{version}-%{release}
bc88141a 272
9556f4c9
ER
273%description apidocs
274API documentation for the LLVM compiler infrastructure.
bc88141a 275
621ec11f
JB
276%description apidocs -l pl.UTF-8
277Dokumentacja API infrastruktury kompilatorów LLVM.
278
d27b2b77
JB
279%package mlir
280Summary: LLVM Multi-Level Intermediate Representation libraries and tools
281Summary(pl.UTF-8): Biblioteki i narzędzia wielopoziomowej reprezentacji pośredniej LLVM
282Group: Development/Tools
283URL: https://mlir.llvm.org/
284Requires: %{name} = %{version}-%{release}
285
286%description mlir
287LLVM Multi-Level Intermediate Representation libraries and tools.
288
289%description mlir -l pl.UTF-8
290Biblioteki i narzędzia wielopoziomowej reprezentacji pośredniej LLVM.
291
292%package mlir-devel
293Summary: LLVM Multi-Level Intermediate Representation development files
294Summary(pl.UTF-8): Pliki do programowania z użyciem wielopoziomowej reprezentacji pośredniej LLVM
295Group: Development/Tools
296URL: https://mlir.llvm.org/
297Requires: %{name}-devel = %{version}-%{release}
298Requires: %{name}-mlir = %{version}-%{release}
299
300%description mlir-devel
301LLVM Multi-Level Intermediate Representation development files.
302
303%description mlir-devel -l pl.UTF-8
304Pliki do programowania z użyciem wielopoziomowej reprezentacji
305pośredniej LLVM.
306
b0068ae4
JB
307%package polly
308Summary: Polyhedral optimizations for LLVM
309Summary(pl.UTF-8): Optymalizacje wielościanowe dla LLVM-a
310Group: Development/Tools
77d2fdeb 311URL: https://polly.llvm.org/
b0068ae4
JB
312Requires: %{name} = %{version}-%{release}
313
314%description polly
315Polly is a high-level loop and data-locality optimizer and
316optimization infrastructure for LLVM. It uses an abstract mathematical
317representation based on integer polyhedra to analyze and optimize the
318memory access pattern of a program.
319
320%description polly -l pl.UTF-8
321Polly to wysokopoziomowy optymalizator i infrastruktura LLVM-a do
322optymalizacji pętli i położenia danych. Wykorzystuje abstrakcyjną
323reprezentację matematyczną opartą na wielościanach całkowitoliczbowych
324do analizy i optymalizacji wzorców dostępu do pamięci przez program.
325
326%package polly-devel
327Summary: Header files for LLVM Polly optimization infrastructure
328Summary(pl.UTF-8): Pliki nagłówkowe infrastruktury optymalizacji LLVM-a Polly
329Group: Development/Libraries
77d2fdeb 330URL: https://polly.llvm.org/
b0068ae4
JB
331Requires: %{name}-devel = %{version}-%{release}
332Requires: %{name}-polly = %{version}-%{release}
333
334%description polly-devel
335Header files for LLVM Polly optimization infrastructure.
336
337%description polly-devel -l pl.UTF-8
338Pliki nagłówkowe infrastruktury optymalizacji LLVM-a Polly.
339
d997b14b
AM
340%package -n clang
341Summary: A C language family frontend for LLVM
621ec11f 342Summary(pl.UTF-8): Frontend LLVM-a do języków z rodziny C
d997b14b 343Group: Development/Languages
77d2fdeb 344URL: https://clang.llvm.org/
8c514f23 345Requires: %{name} = %{version}-%{release}
87977e26 346Requires: clang-libs = %{version}-%{release}
d997b14b
AM
347
348%description -n clang
349clang: noun 1. A loud, resonant, metallic sound. 2. The strident call
350of a crane or goose. 3. C-language family front-end toolkit.
351
352The goal of the Clang project is to create a new C, C++, Objective C
353and Objective C++ front-end for the LLVM compiler. Its tools are built
354as libraries and designed to be loosely-coupled and extendable.
355
621ec11f
JB
356%description -n clang -l pl.UTF-8
357clang (z angielskiego): 1. głośny, rezonujący, metaliczny dźwięk; 2.
358piskliwy odgłos żurawia lub gęsi; 3. narzędzia frontendowe dla języków
359z rodziny C.
360
361Celem projektu Clang jest utworzenie nowego frontendu dla kompilatora
362LLVM do języków C, C++, Objective C i Objective C++. Narzędzia są
363budowane jako biblioteki i zaprojektowane z myślą o swobodnym łączeniu
364i rozszerzaniu.
365
9eefd942
JR
366%package -n clang-multilib
367Summary: A C language family frontend for LLVM - 32-bit support
368Summary(pl.UTF-8): Frontend LLVM-a do języków z rodziny C - obsługa binariów 32-bitowych
9eefd942 369Group: Development/Languages
77d2fdeb 370URL: https://clang.llvm.org/
9eefd942
JR
371Requires: clang = %{version}-%{release}
372
373%description -n clang-multilib
374clang: noun 1. A loud, resonant, metallic sound. 2. The strident call
375of a crane or goose. 3. C-language family front-end toolkit.
376
377The goal of the Clang project is to create a new C, C++, Objective C
378and Objective C++ front-end for the LLVM compiler. Its tools are built
379as libraries and designed to be loosely-coupled and extendable.
380
381This package contains the C compiler support for producing 32-bit
382programs on 64-bit host.
383
384%description -n clang-multilib -l pl.UTF-8
385clang (z angielskiego): 1. głośny, rezonujący, metaliczny dźwięk; 2.
386piskliwy odgłos żurawia lub gęsi; 3. narzędzia frontendowe dla języków
387z rodziny C.
388
389Celem projektu Clang jest utworzenie nowego frontendu dla kompilatora
390LLVM do języków C, C++, Objective C i Objective C++. Narzędzia są
391budowane jako biblioteki i zaprojektowane z myślą o swobodnym łączeniu
392i rozszerzaniu.
393
394Ten pakiet zawiera rozszerzenie kompilatora C o obsługę tworzenia
395programów 32-bitowych na maszynie 64-bitowej.
396
cb7d0198
JB
397%package -n clang-libs
398Summary: Clang shared libraries
399Summary(pl.UTF-8): Biblioteki współdzielone Clanga
400Group: Libraries
401URL: https://clang.llvm.org/
d997b14b 402
cb7d0198
JB
403%description -n clang-libs
404Clang shared libraries.
d997b14b 405
cb7d0198
JB
406%description -n clang-libs -l pl.UTF-8
407Biblioteki współdzielone Clanga.
621ec11f 408
9556f4c9 409%package -n clang-devel
621ec11f
JB
410Summary: Header files for Clang
411Summary(pl.UTF-8): Pliki nagłówkowe Clanga
9556f4c9 412Group: Development/Languages
77d2fdeb 413URL: https://clang.llvm.org/
8c514f23 414Requires: %{name}-devel = %{version}-%{release}
9556f4c9 415Requires: clang = %{version}-%{release}
07de6be6 416%{?with_polly:Requires: llvm-polly-devel = %{version}-%{release}}
9556f4c9
ER
417
418%description -n clang-devel
419This package contains header files for the Clang compiler.
420
621ec11f
JB
421%description -n clang-devel -l pl.UTF-8
422Ten pakiet zawiera pliki nagłówkowe kompilatora Clang.
423
9556f4c9
ER
424%package -n clang-doc
425Summary: Documentation for Clang
621ec11f 426Summary(pl.UTF-8): Dokumentacja do Clanga
77d2fdeb 427URL: https://clang.llvm.org/
9556f4c9
ER
428Group: Documentation
429Requires: %{name} = %{version}-%{release}
430
431%description -n clang-doc
432Documentation for the Clang compiler front-end.
433
621ec11f
JB
434%description -n clang-doc -l pl.UTF-8
435Dokumentacja do frontendu kompilatora Clang.
436
9556f4c9
ER
437%package -n clang-apidocs
438Summary: API documentation for Clang
621ec11f 439Summary(pl.UTF-8): Dokumentacja API Clanga
77d2fdeb 440URL: https://clang.llvm.org/
9556f4c9
ER
441Group: Development/Languages
442Requires: clang-doc = %{version}-%{release}
443
444%description -n clang-apidocs
445API documentation for the Clang compiler.
446
621ec11f
JB
447%description -n clang-apidocs -l pl.UTF-8
448Dokumentacja API kompilatora Clang.
449
cb7d0198
JB
450%package -n clang-analyzer
451Summary: A source code analysis framework
452Summary(pl.UTF-8): Szkielet do analizy kodu źródłowego
453Group: Development/Languages
454URL: https://clang-analyzer.llvm.org/
455Requires: clang = %{version}-%{release}
456# not picked up automatically since files are currently not instaled
457# in standard Python hierarchies yet
458Requires: python3
459
460%description -n clang-analyzer
461The Clang Static Analyzer consists of both a source code analysis
462framework and a standalone tool that finds bugs in C and Objective-C
463programs. The standalone tool is invoked from the command-line, and is
464intended to run in tandem with a build of a project or code base.
465
466%description -n clang-analyzer -l pl.UTF-8
467Clang Static Analyzer składa się ze szkieletu do analizy kodu
468źródłowego oraz samodzielnego narzędzia znajdującego błędy w
469programach w C i C++. Narzędzie jest wywoływane z linii poleceń, z
470myślą o uruchamianiu wraz z kompilacją projektu lub kodu.
471
b0068ae4
JB
472%package -n clang-tools-extra
473Summary: Extra tools for Clang
474Summary(pl.UTF-8): Dodatkowe narzędzia do kompilatora Clang
475Group: Development/Tools
77d2fdeb 476URL: https://clang.llvm.org/docs/ClangTools.html
b0068ae4
JB
477Requires: clang = %{version}-%{release}
478
479%description -n clang-tools-extra
480Extra tools for Clang.
481
482%description -n clang-tools-extra -l pl.UTF-8
483Dodatkowe narzędzia do kompilatora Clang.
484
d13e7dd0
JB
485%package -n bash-completion-clang
486Summary: Bash completion for clang command
487Summary(pl.UTF-8): Bashowe dopełnianie składni polecenia clang
488Group: Applications/Shells
489Requires: bash-completion >= 2.0
490Requires: clang = %{version}-%{release}
491
492%description -n bash-completion-clang
493Bash completion for clang command.
494
495%description -n bash-completion-clang -l pl.UTF-8
496Bashowe dopełnianie składni polecenia clang.
497
d27b2b77
JB
498%package -n flang
499Summary: Fortran frontend for LLVM
500Summary(pl.UTF-8): Frontend LLVM-a do Fortranu
501Group: Development/Languages
502URL: http://flang.llvm.org/
503Requires: %{name}-mlir = %{version}-%{release}
504
505%description -n flang
506Flang is a ground-up implementation of a Fortran front end written in
507modern C++.
508
509%description -n flang -l pl.UTF-8
510Flang to napisana od podstaw we współczesnym C++ implementacja
511frontendu do Fortranu.
512
513%package -n flang-devel
514Summary: Fortran frontend for LLVM - development files
515Summary(pl.UTF-8): Frontend LLVM-a do Fortranu - pliki programistyczne
516Group: Development/Languages
517URL: http://flang.llvm.org/
518Requires: %{name}-mlir-devel = %{version}-%{release}
519Requires: flang-devel = %{version}-%{release}
520
521%description -n flang-devel
522Development files for LLVM Fortran frontend.
523
524%description -n flang-devel -l pl.UTF-8
525Pliki prosramistyczne frontendu LLVM do Fortranu.
526
ba1cf74d
JB
527%package -n lld
528Summary: The LLVM linker
529Summary(pl.UTF-8): Konsolidator z projektu LLVM
530Group: Development/Libraries
77d2fdeb 531URL: https://lld.llvm.org/
ba1cf74d
JB
532Requires: %{name} = %{version}-%{release}
533
534%description -n lld
535lld is a new set of modular code for creating linker tools.
536
537%description -n lld -l pl.UTF-8
538lld to nowy zbiór modularnego kodu do tworzenia narzędzi
539konsolidujących.
540
541%package -n lld-devel
542Summary: Development files for LLD linker tools
543Summary(pl.UTF-8): Pliki programistyczne narzędzi konsolidujących LLD
544Group: Development/Tools
77d2fdeb 545URL: https://lld.llvm.org/
ba1cf74d 546Requires: %{name}-devel = %{version}-%{release}
78991aba 547Requires: xar-devel >= 1.6
ba1cf74d
JB
548
549%description -n lld-devel
550Development files for LLD linker tools.
551
552%description -n lld-devel -l pl.UTF-8
553Pliki programistyczne narzędzi konsolidujących LLD.
554
5a7ac479
JB
555%package -n lldb
556Summary: Next generation high-performance debugger
557Summary(pl.UTF-8): Wydajny debugger nowej generacji
558Group: Development/Debuggers
77d2fdeb 559URL: https://lldb.llvm.org/
5a7ac479 560Requires: %{name} = %{version}-%{release}
40bef2a3 561Requires: python3-six
5a7ac479
JB
562
563%description -n lldb
564LLDB is a next generation, high-performance debugger. It is built as a
565set of reusable components which highly leverage existing libraries in
566the larger LLVM Project, such as the Clang expression parser and LLVM
567disassembler.
568
569%description -n lldb -l pl.UTF-8
570LLDB to wydajny debugger nowej generacji. Jest zbudowany w oparciu o
571komponenty wielokrotnego użytku, wykorzystujące istniejące biblioteki
572w projekcie LLVM, takie jak analizator wyrażeń kompilatora Clang oraz
573disasembler LLVM.
574
575%package -n lldb-devel
ba1cf74d
JB
576Summary: Development files for LLDB debugger
577Summary(pl.UTF-8): Pliki programistyczne debuggera LLDB
5a7ac479 578Group: Development/Libraries
77d2fdeb 579URL: https://lldb.llvm.org/
5a7ac479
JB
580Requires: %{name}-devel = %{version}-%{release}
581Requires: clang-devel = %{version}-%{release}
582Requires: lldb = %{version}-%{release}
583
584%description -n lldb-devel
ba1cf74d 585Development files for LLDB debugger.
5a7ac479
JB
586
587%description -n lldb-devel -l pl.UTF-8
ba1cf74d 588Pliki programistyczne debuggera LLDB.
5a7ac479 589
9556f4c9
ER
590%package ocaml
591Summary: OCaml binding for LLVM
621ec11f
JB
592Summary(pl.UTF-8): Wiązanie OCamla do LLVM-a
593Group: Libraries
9556f4c9 594Requires: %{name} = %{version}-%{release}
c450bf27 595%if %{with ocaml}
9556f4c9 596%requires_eq ocaml-runtime
c450bf27 597%endif
9556f4c9 598
621ec11f 599%description ocaml
9556f4c9
ER
600OCaml binding for LLVM.
601
621ec11f
JB
602%description ocaml -l pl.UTF-8
603Wiązanie OCamla do LLVM-a.
604
9556f4c9 605%package ocaml-devel
621ec11f
JB
606Summary: Development files for LLVM OCaml binding
607Summary(pl.UTF-8): Pliki programistyczne wiązania OCamla do LLVM-a
9556f4c9
ER
608Group: Development/Libraries
609Requires: %{name}-devel = %{version}-%{release}
610Requires: %{name}-ocaml = %{version}-%{release}
611
612%description ocaml-devel
613The llvm-ocaml-devel package contains libraries and signature files
621ec11f
JB
614for developing applications that use llvm-ocaml binding.
615
616%description ocaml-devel -l pl.UTF-8
617Ten pakiet zawiera biblioteki i pliki sygnatur do tworzenia aplikacji
618wykorzystujących wiązanie llvm-ocaml.
619
9556f4c9
ER
620%package ocaml-doc
621Summary: Documentation for LLVM's OCaml binding
621ec11f 622Summary(pl.UTF-8): Dokumentacja wiązania OCamla do LLVM-a
9556f4c9
ER
623Group: Documentation
624Requires: %{name}-ocaml = %{version}-%{release}
625
626%description ocaml-doc
627HTML documentation for LLVM's OCaml binding.
628
621ec11f
JB
629%description ocaml-doc -l pl.UTF-8
630Dokumentacja HTML wiązania OCamla do LLVM-a.
631
d7447383
JR
632%package opt-viewer
633Summary: Optimization records visualization tools
83d2be6c 634Summary(pl.UTF-8): Narzędzia do wizualizacji rekordów optymalizacji
d7447383
JR
635Group: Development/Tools
636Requires: %{name} = %{version}
8e9fbe9e 637BuildArch: noarch
d7447383
JR
638
639%description opt-viewer
640Optimization records visualization tools.
641
83d2be6c
JB
642%description opt-viewer -l pl.UTF-8
643Narzędzia do wizualizacji rekordów optymalizacji.
644
d7447383 645%package -n vim-plugin-clang
83d2be6c
JB
646Summary: Clang format and rename integration for Vim
647Summary(pl.UTF-8): Integracja narzędzi Clang do formatowania i zmiany nazw z Vimem
d7447383
JR
648Group: Applications/Editors/Vim
649Requires: vim-rt >= 4:7.0
650BuildArch: noarch
651
652%description -n vim-plugin-clang
83d2be6c
JB
653Clang format and rename integration for Vim.
654
655%description -n vim-plugin-clang -l pl.UTF-8
656Integracja narzędzi Clang do formatowania i zmiany nazw z Vimem.
d7447383 657
aa11c230 658%prep
d27b2b77 659%setup -q -n %{name}-%{version}.src -a1 %{?with_rt:-a2} %{?with_lldb:-a3} %{?with_polly:-a4} -a5 -a6 %{?with_flang:-a7} %{?with_mlir:-a8}
44d18de7 660%{__mv} clang-%{version}.src tools/clang
5013c7ea
JB
661%{?with_rt:%{__mv} compiler-rt-%{version}.src projects/compiler-rt}
662%{?with_lldb:%{__mv} lldb-%{version}.src tools/lldb}
663%{?with_polly:%{__mv} polly-%{version}.src tools/polly}
d706a70d
JB
664%{__mv} clang-tools-extra-%{version}.src tools/clang/tools/extra
665%{__mv} lld-%{version}.src tools/lld
1a356f89
JB
666%if %{with flang}
667%{__mv} flang-%{version}.src tools/flang
d27b2b77
JB
668%endif
669%if %{with mlir}
1a356f89
JB
670%{__mv} mlir tools/mlir
671%endif
5a7ac479 672
9f7b77bd 673%patch1 -p1
200602f4 674%patch2 -p1
9f7b77bd 675%patch3 -p1
d96b39d3 676%patch4 -p1
d706a70d 677%patch5 -p1
1a356f89
JB
678%if %{with flang}
679%patch6 -p1
680%endif
40bef2a3 681%patch7 -p1
4a967aa9 682%patch8 -p1
e25801fb 683%patch9 -p1
ce9cc204 684
ef49a424 685grep -rl /usr/bin/env projects tools utils | xargs sed -i -e '1{
40bef2a3 686 s,^#!.*bin/env python,#!%{__python3},
bacc8b96
ER
687 s,^#!.*bin/env perl,#!%{__perl},
688}'
689
d7447383 690find -name '*.py' -print0 | xargs -0 sed -i -e '1{
40bef2a3 691 s,^#!.*bin/python.*,#!%{__python3},
d7447383
JR
692}'
693
d27b2b77
JB
694%if %{with flang}
695%{__sed} -i -e '1s,/usr/bin/env bash,/bin/bash,' tools/flang/tools/f18/flang.in
696%endif
697
d756c460 698%build
41876fe7 699install -d build
ebde279d 700
d997b14b 701# Disabling assertions now, rec. by pure and needed for OpenGTL
9556f4c9 702# TESTFIX no PIC on ix86: http://llvm.org/bugs/show_bug.cgi?id=3801
41876fe7 703cd build
5e689738 704CPPFLAGS="%{rpmcppflags} -D_FILE_OFFSET_BITS=64"
2bbd0701 705
1431eb62
JP
706%if %{with lowmem}
707export CFLAGS="%{rpmcflags} -g0"
708export CXXFLAGS="%{rpmcxxflags} -g0"
709export LDFLAGS="%{rpmldflags} -Wl,--reduce-memory-overheads"
710%endif
711
200602f4
JB
712%cmake .. \
713 -DBUILD_SHARED_LIBS:BOOL=OFF \
200602f4
JB
714 -DENABLE_LINKER_BUILD_ID:BOOL=ON \
715 -DLLVM_BINDINGS_LIST:LIST="%{?with_ocaml:ocaml}" \
716 -DLLVM_BINUTILS_INCDIR:STRING=%{_includedir} \
717 -DLLVM_BUILD_LLVM_DYLIB:BOOL=ON \
718 -DLLVM_ENABLE_ASSERTIONS:BOOL=OFF \
9556f4c9 719%if %{with apidocs}
41876fe7 720 -DLLVM_ENABLE_DOXYGEN:BOOL=ON \
d997b14b 721%endif
44d18de7 722 %{?with_cxxmodules:-DLLVM_ENABLE_MODULES:BOOL=ON} \
200602f4
JB
723 -DLLVM_ENABLE_PIC:BOOL=ON \
724 -DLLVM_ENABLE_RTTI:BOOL=ON \
41876fe7
JR
725%if %{with doc}
726 -DLLVM_ENABLE_SPHINX:BOOL=ON \
727%endif
ad697ab7 728 %{?with_z3:-DLLVM_ENABLE_Z3_SOLVER:BOOL=ON} \
200602f4
JB
729%if "%{_lib}" == "lib64"
730 -DLLVM_LIBDIR_SUFFIX:STRING=64 \
731%endif
732%if "%{_lib}" == "libx32"
733 -DLLVM_LIBDIR_SUFFIX:STRING=x32 \
734%endif
9a23736f 735 -DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
67331d50 736 -DLLVM_DEFAULT_TARGET_TRIPLE:STRING=%{_target_platform} \
1431eb62
JP
737%if %{with lowmem}
738 -DLLVM_PARALLEL_LINK_JOBS:STRING=1 \
739%endif
a531db5e 740 -DLLVM_TARGETS_TO_BUILD="%{targets_to_build}" \
8d52ede4 741%if %{with polly}
a5fe2ce1 742 %{cmake_on_off target_nvptx POLLY_ENABLE_GPGPU_CODEGEN} \
8d52ede4 743%endif
200602f4 744 -DSPHINX_WARNINGS_AS_ERRORS=OFF
41876fe7 745
d997b14b 746%{__make} \
1628dc68 747 VERBOSE=1 \
d997b14b 748 OPTIMIZE_OPTION="%{rpmcflags} %{rpmcppflags}"
aa11c230 749
827664e9 750%if %{with tests}
9556f4c9
ER
751%{__make} check 2>&1 | tee llvm-testlog.txt
752%{__make} -C tools/clang test 2>&1 | tee clang-testlog.txt
753%endif
754
b0068ae4 755%if %{with doc}
41876fe7
JR
756%{__make} -C docs docs-llvm-html
757%{__make} -C docs docs-llvm-man
c6c890ee 758%if %{with ocaml}
41876fe7 759%{__make} -C docs ocaml_doc
c6c890ee 760%endif
41876fe7
JR
761%{__make} -C tools/clang/docs docs-clang-html
762%{__make} -C tools/clang/docs docs-clang-man
763%{__make} -C tools/lld/docs docs-lld-html
d1e2ca8d 764# workaround failed import of _lldb
40bef2a3 765cp -pnL %{_lib}/python%{py3_ver}/site-packages/lldb/_lldb.so tools/lldb/docs/lldb
47e02cfd
JP
766%{__make} \
767 LD_LIBRARY_PATH=$(pwd)/%{_lib} \
40bef2a3 768 -C tools/lldb/docs lldb-python-doc-package
41876fe7 769%{__make} -C tools/lldb/docs lldb-cpp-doc
dd9350c7
JB
770%endif
771
aa11c230 772%install
773rm -rf $RPM_BUILD_ROOT
5013c7ea 774
464fc37c 775%{__make} -j1 -C build install \
aa11c230 776 DESTDIR=$RPM_BUILD_ROOT
777
6df3b432 778# only some .pyc files are created by make install
40bef2a3
JP
779%py3_comp $RPM_BUILD_ROOT%{py3_sitedir}
780%py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir}
6df3b432 781
e25801fb
JB
782# Adjust static analyzer installation (see -libexecdir patch)
783abs_ca_libexecdir="%{_libexecdir}/clang-analyzer"
784rel_ca_libexecdir="${abs_ca_libexecdir#%{_prefix}}"
785%{__sed} -i -e "s,/\.\./libexec/,/..${rel_ca_libexecdir}/," $RPM_BUILD_ROOT%{_bindir}/scan-build
40bef2a3
JP
786%py3_comp $RPM_BUILD_ROOT%{_datadir}/scan-view
787%py3_ocomp $RPM_BUILD_ROOT%{_datadir}/scan-view
d997b14b 788
6df3b432 789# not installed by cmake buildsystem
6df3b432
JB
790install build/bin/pp-trace $RPM_BUILD_ROOT%{_bindir}
791
b0068ae4 792%if %{with doc}
6df3b432 793cp -p build/docs/man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
b883cf1e 794# these tools are not installed
95bd4382 795%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/{FileCheck,clang-tblgen,lldb-tblgen}.1
b0068ae4
JB
796# make links
797echo '.so llvm-ar.1' > $RPM_BUILD_ROOT%{_mandir}/man1/llvm-ranlib.1
dd9350c7
JB
798%endif
799
d997b14b 800# Move documentation back to build directory
2bbd0701 801%if %{with ocaml}
6df3b432 802rm -rf ocamldocs
5013c7ea 803%{__mv} $RPM_BUILD_ROOT%{_docdir}/llvm/ocaml-html ocamldocs
2bbd0701 804%endif
9556f4c9
ER
805
806# and separate the apidoc
807%if %{with apidocs}
6df3b432
JB
808rm -rf clang-apidoc
809cp -a build/tools/clang/docs/html clang-apidoc
9556f4c9 810%endif
d997b14b
AM
811
812# And prepare Clang documentation
d997b14b 813rm -rf clang-docs
9556f4c9 814install -d clang-docs
827664e9 815for f in LICENSE.TXT NOTES.txt README.txt; do
9556f4c9 816 ln tools/clang/$f clang-docs
d997b14b 817done
021b3c3d 818
d13e7dd0
JB
819install -d $RPM_BUILD_ROOT%{bash_compdir}
820%{__mv} $RPM_BUILD_ROOT%{_datadir}/clang/bash-autocomplete.sh $RPM_BUILD_ROOT%{bash_compdir}/clang
821
d706a70d 822%{__rm} $RPM_BUILD_ROOT%{_bindir}/{c-index-test,llvm-c-test}
6df3b432
JB
823# not this OS
824%{__rm} $RPM_BUILD_ROOT%{_datadir}/clang/clang-format-bbedit.applescript
d706a70d 825# use system six
406426c9 826%{?with_lldb:%{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/{,__pycache__/}six*.py*}
03073220
JK
827# it seems it is used internally by an extra clang tool
828%{__rm} $RPM_BUILD_ROOT%{_libdir}/libfindAllSymbols.a
6832a5c5 829
fba35f64 830# disable completeness check incompatible with split packaging
d27b2b77
JB
831%{__sed} -i -e '/^foreach(target .*IMPORT_CHECK_TARGETS/,/^endforeach/d; /^unset(_IMPORT_CHECK_TARGETS)/d' \
832 $RPM_BUILD_ROOT%{_libdir}/cmake/clang/ClangTargets.cmake \
833%if %{with flang}
834 $RPM_BUILD_ROOT%{_libdir}/cmake/flang/FlangTargets.cmake \
835%endif
836 $RPM_BUILD_ROOT%{_libdir}/cmake/lld/LLDTargets.cmake \
837 $RPM_BUILD_ROOT%{_libdir}/cmake/llvm/LLVMExports.cmake \
838%if %{with mlir}
839 $RPM_BUILD_ROOT%{_libdir}/cmake/mlir/MLIRTargets.cmake
840%endif
fba35f64 841
aa11c230 842%clean
843rm -rf $RPM_BUILD_ROOT
844
8c514f23
JB
845%post libs -p /sbin/ldconfig
846%postun libs -p /sbin/ldconfig
aa11c230 847
d27b2b77
JB
848%post mlir -p /sbin/ldconfig
849%postun mlir -p /sbin/ldconfig
850
5013c7ea
JB
851%post -n clang-libs -p /sbin/ldconfig
852%postun -n clang-libs -p /sbin/ldconfig
5a7ac479
JB
853
854%post -n lldb -p /sbin/ldconfig
855%postun -n lldb -p /sbin/ldconfig
856
aa11c230 857%files
858%defattr(644,root,root,755)
8132e62b 859%doc CREDITS.TXT LICENSE.TXT README.txt %{?with_tests:llvm-testlog.txt}
a9beeab5 860%attr(755,root,root) %{_bindir}/bugpoint
8f8cf7a8 861%attr(755,root,root) %{_bindir}/dsymutil
a9beeab5
JB
862%attr(755,root,root) %{_bindir}/llc
863%attr(755,root,root) %{_bindir}/lli
d1e2ca8d 864%attr(755,root,root) %{_bindir}/llvm-addr2line
8132e62b
JB
865%attr(755,root,root) %{_bindir}/llvm-ar
866%attr(755,root,root) %{_bindir}/llvm-as
867%attr(755,root,root) %{_bindir}/llvm-bcanalyzer
40bef2a3 868%attr(755,root,root) %{_bindir}/llvm-bitcode-strip
5013c7ea 869%attr(755,root,root) %{_bindir}/llvm-cat
23ae6496 870%attr(755,root,root) %{_bindir}/llvm-cfi-verify
827664e9 871%attr(755,root,root) %{_bindir}/llvm-cov
265e167c 872%attr(755,root,root) %{_bindir}/llvm-cvtres
5013c7ea
JB
873%attr(755,root,root) %{_bindir}/llvm-cxxdump
874%attr(755,root,root) %{_bindir}/llvm-cxxfilt
0bc9c5c9 875%attr(755,root,root) %{_bindir}/llvm-cxxmap
8132e62b
JB
876%attr(755,root,root) %{_bindir}/llvm-diff
877%attr(755,root,root) %{_bindir}/llvm-dis
265e167c 878%attr(755,root,root) %{_bindir}/llvm-dlltool
827664e9 879%attr(755,root,root) %{_bindir}/llvm-dwarfdump
264482e1 880%attr(755,root,root) %{_bindir}/llvm-dwp
8f8cf7a8 881%attr(755,root,root) %{_bindir}/llvm-exegesis
8132e62b 882%attr(755,root,root) %{_bindir}/llvm-extract
f784323b 883%attr(755,root,root) %{_bindir}/llvm-gsymutil
ef49a424
JP
884%attr(755,root,root) %{_bindir}/llvm-ifs
885%attr(755,root,root) %{_bindir}/llvm-install-name-tool
d1e2ca8d 886%attr(755,root,root) %{_bindir}/llvm-jitlink
6df3b432 887%attr(755,root,root) %{_bindir}/llvm-lib
40bef2a3 888%attr(755,root,root) %{_bindir}/llvm-libtool-darwin
8132e62b 889%attr(755,root,root) %{_bindir}/llvm-link
d1e2ca8d 890%attr(755,root,root) %{_bindir}/llvm-lipo
3c402b7e 891%attr(755,root,root) %{_bindir}/llvm-lto
5013c7ea 892%attr(755,root,root) %{_bindir}/llvm-lto2
8132e62b 893%attr(755,root,root) %{_bindir}/llvm-mc
8f8cf7a8 894%attr(755,root,root) %{_bindir}/llvm-mca
f784323b 895%attr(755,root,root) %{_bindir}/llvm-ml
5013c7ea 896%attr(755,root,root) %{_bindir}/llvm-modextract
265e167c 897%attr(755,root,root) %{_bindir}/llvm-mt
8132e62b 898%attr(755,root,root) %{_bindir}/llvm-nm
23ae6496 899%attr(755,root,root) %{_bindir}/llvm-objcopy
8132e62b 900%attr(755,root,root) %{_bindir}/llvm-objdump
5013c7ea 901%attr(755,root,root) %{_bindir}/llvm-opt-report
8d52ede4 902%attr(755,root,root) %{_bindir}/llvm-otool
265e167c 903%attr(755,root,root) %{_bindir}/llvm-pdbutil
b883cf1e 904%attr(755,root,root) %{_bindir}/llvm-profdata
40bef2a3 905%attr(755,root,root) %{_bindir}/llvm-profgen
8132e62b 906%attr(755,root,root) %{_bindir}/llvm-ranlib
23ae6496 907%attr(755,root,root) %{_bindir}/llvm-rc
265e167c 908%attr(755,root,root) %{_bindir}/llvm-readelf
f981d747 909%attr(755,root,root) %{_bindir}/llvm-readobj
ef49a424 910%attr(755,root,root) %{_bindir}/llvm-reduce
827664e9 911%attr(755,root,root) %{_bindir}/llvm-rtdyld
8d52ede4 912%attr(755,root,root) %{_bindir}/llvm-sim
827664e9 913%attr(755,root,root) %{_bindir}/llvm-size
264482e1 914%attr(755,root,root) %{_bindir}/llvm-split
8f8cf7a8 915%attr(755,root,root) %{_bindir}/llvm-strip
f981d747 916%attr(755,root,root) %{_bindir}/llvm-stress
5013c7ea 917%attr(755,root,root) %{_bindir}/llvm-strings
1628dc68 918%attr(755,root,root) %{_bindir}/llvm-symbolizer
8d52ede4 919%attr(755,root,root) %{_bindir}/llvm-tapi-diff
827664e9 920%attr(755,root,root) %{_bindir}/llvm-tblgen
8f8cf7a8 921%attr(755,root,root) %{_bindir}/llvm-undname
8d52ede4 922%attr(755,root,root) %{_bindir}/llvm-windres
5013c7ea 923%attr(755,root,root) %{_bindir}/llvm-xray
8132e62b 924%attr(755,root,root) %{_bindir}/opt
d706a70d 925%attr(755,root,root) %{_bindir}/sancov
03073220 926%attr(755,root,root) %{_bindir}/sanstats
40bef2a3 927%attr(755,root,root) %{_bindir}/split-file
4ba3b2b3 928%attr(755,root,root) %{_bindir}/verify-uselistorder
b0068ae4 929%if %{with doc}
a9beeab5 930%{_mandir}/man1/bugpoint.1*
23ae6496 931%{_mandir}/man1/dsymutil.1*
a7973f21 932%{_mandir}/man1/lit.1*
a9beeab5
JB
933%{_mandir}/man1/llc.1*
934%{_mandir}/man1/lli.1*
d1e2ca8d 935%{_mandir}/man1/llvm-addr2line.1*
8132e62b
JB
936%{_mandir}/man1/llvm-ar.1*
937%{_mandir}/man1/llvm-as.1*
938%{_mandir}/man1/llvm-bcanalyzer.1*
f981d747 939%{_mandir}/man1/llvm-cov.1*
d1e2ca8d 940%{_mandir}/man1/llvm-cxxfilt.1*
0bc9c5c9 941%{_mandir}/man1/llvm-cxxmap.1*
8132e62b
JB
942%{_mandir}/man1/llvm-diff.1*
943%{_mandir}/man1/llvm-dis.1*
b883cf1e 944%{_mandir}/man1/llvm-dwarfdump.1*
8f8cf7a8 945%{_mandir}/man1/llvm-exegesis.1*
8132e62b 946%{_mandir}/man1/llvm-extract.1*
40bef2a3 947%{_mandir}/man1/llvm-install-name-tool.1*
d706a70d 948%{_mandir}/man1/llvm-lib.1*
40bef2a3 949%{_mandir}/man1/llvm-libtool-darwin.1*
8132e62b 950%{_mandir}/man1/llvm-link.1*
d1e2ca8d 951%{_mandir}/man1/llvm-lipo.1*
ef49a424 952%{_mandir}/man1/llvm-locstats.1*
8f8cf7a8 953%{_mandir}/man1/llvm-mca.1*
8132e62b 954%{_mandir}/man1/llvm-nm.1*
d1e2ca8d 955%{_mandir}/man1/llvm-objcopy.1*
0bc9c5c9 956%{_mandir}/man1/llvm-objdump.1*
8d52ede4 957%{_mandir}/man1/llvm-otool.1*
23ae6496 958%{_mandir}/man1/llvm-pdbutil.1*
b883cf1e 959%{_mandir}/man1/llvm-profdata.1*
40bef2a3 960%{_mandir}/man1/llvm-profgen.1*
8132e62b 961%{_mandir}/man1/llvm-ranlib.1*
d1e2ca8d 962%{_mandir}/man1/llvm-readelf.1*
c999855f 963%{_mandir}/man1/llvm-readobj.1*
d1e2ca8d 964%{_mandir}/man1/llvm-size.1*
f981d747 965%{_mandir}/man1/llvm-stress.1*
d1e2ca8d
JP
966%{_mandir}/man1/llvm-strings.1*
967%{_mandir}/man1/llvm-strip.1*
1628dc68 968%{_mandir}/man1/llvm-symbolizer.1*
8d52ede4 969%{_mandir}/man1/llvm-tblgen.1*
a9beeab5 970%{_mandir}/man1/opt.1*
95bd4382 971%{_mandir}/man1/tblgen.1*
b0068ae4 972%endif
bc88141a 973
8c514f23
JB
974%files libs
975%defattr(644,root,root,755)
2379ea21 976%attr(755,root,root) %{_libdir}/LLVMgold.so
9a23736f
JB
977%attr(755,root,root) %{_libdir}/libLLVM-%{abi}.so
978# non-soname symlink
979%attr(755,root,root) %{_libdir}/libLLVM-%{version}.so
8d52ede4
JP
980%attr(755,root,root) %{_libdir}/libLTO.so.13
981%attr(755,root,root) %{_libdir}/libRemarks.so.13
982%attr(755,root,root) %{_libdir}/libclang-cpp.so.13
8c514f23 983
bc88141a
ER
984%files devel
985%defattr(644,root,root,755)
986%attr(755,root,root) %{_bindir}/llvm-config
9a23736f 987%attr(755,root,root) %{_libdir}/libLLVM.so
5013c7ea 988%attr(755,root,root) %{_libdir}/libLTO.so
d1e2ca8d
JP
989%attr(755,root,root) %{_libdir}/libRemarks.so
990%attr(755,root,root) %{_libdir}/libclang-cpp.so
d706a70d 991%{_libdir}/libLLVM*.a
8132e62b
JB
992%{_includedir}/llvm
993%{_includedir}/llvm-c
9ace1f65 994%{_libdir}/cmake/llvm
b0068ae4 995%if %{with doc}
8132e62b 996%{_mandir}/man1/llvm-config.1*
b0068ae4 997%endif
bc88141a 998
6df3b432
JB
999#%files doc
1000#%defattr(644,root,root,755)
9556f4c9
ER
1001
1002%if %{with apidocs}
1003%files apidocs
1004%defattr(644,root,root,755)
1005%doc apidoc/*
1006%endif
1007
d27b2b77
JB
1008%if %{with mlir}
1009%files mlir
1010%defattr(644,root,root,755)
1011%attr(755,root,root) %{_bindir}/mlir-cpu-runner
1012%attr(755,root,root) %{_bindir}/mlir-linalg-ods-gen
1013%attr(755,root,root) %{_bindir}/mlir-linalg-ods-yaml-gen
1014%attr(755,root,root) %{_bindir}/mlir-lsp-server
1015%attr(755,root,root) %{_bindir}/mlir-opt
1016%attr(755,root,root) %{_bindir}/mlir-reduce
1017%attr(755,root,root) %{_bindir}/mlir-tblgen
1018%attr(755,root,root) %{_bindir}/mlir-translate
1019%attr(755,root,root) %{_libdir}/libMLIR.so.13
1020%attr(755,root,root) %{_libdir}/libmlir_async_runtime.so.13
1021%attr(755,root,root) %{_libdir}/libmlir_c_runner_utils.so.13
1022%attr(755,root,root) %{_libdir}/libmlir_runner_utils.so.13
1023%{_mandir}/man1/mlir-tblgen.1*
1024
1025%files mlir-devel
1026%defattr(644,root,root,755)
1027%attr(755,root,root) %{_libdir}/libMLIR.so
1028%attr(755,root,root) %{_libdir}/libmlir_async_runtime.so
1029%attr(755,root,root) %{_libdir}/libmlir_c_runner_utils.so
1030%attr(755,root,root) %{_libdir}/libmlir_runner_utils.so
1031%{_libdir}/libMLIR*.a
1032%{_includedir}/mlir
1033%{_includedir}/mlir-c
1034%{_libdir}/cmake/mlir
1035%endif
1036
b0068ae4
JB
1037%if %{with polly}
1038%files polly
1039%defattr(644,root,root,755)
8d52ede4 1040%doc tools/polly/{CREDITS.txt,LICENSE.TXT,README} tools/polly/www/{bugs,changelog,contributors}.html
b0068ae4 1041%attr(755,root,root) %{_libdir}/LLVMPolly.so
a5fe2ce1 1042%{?with_target_nvptx:%attr(755,root,root) %{_libdir}/libGPURuntime.so}
b0068ae4
JB
1043
1044%files polly-devel
1045%defattr(644,root,root,755)
9a23736f
JB
1046%{_libdir}/libPolly.a
1047%{_libdir}/libPollyISL.a
a5fe2ce1 1048%{?with_target_nvptx:%{_libdir}/libPollyPPCG.a}
b0068ae4 1049%{_includedir}/polly
265e167c 1050%{_libdir}/cmake/polly
b0068ae4
JB
1051%endif
1052
d997b14b 1053%files -n clang
bc88141a 1054%defattr(644,root,root,755)
827664e9 1055%doc clang-docs/{LICENSE.TXT,NOTES.txt,README.txt} %{?with_tests:clang-testlog.txt}
8132e62b
JB
1056%attr(755,root,root) %{_bindir}/clang
1057%attr(755,root,root) %{_bindir}/clang++
509439cf 1058%attr(755,root,root) %{_bindir}/clang-%{abi}
dd9350c7 1059%attr(755,root,root) %{_bindir}/clang-check
6df3b432 1060%attr(755,root,root) %{_bindir}/clang-cl
5013c7ea 1061%attr(755,root,root) %{_bindir}/clang-cpp
d1e2ca8d 1062%attr(755,root,root) %{_bindir}/clang-doc
1628dc68 1063%attr(755,root,root) %{_bindir}/clang-format
5013c7ea 1064%attr(755,root,root) %{_bindir}/clang-offload-bundler
ef49a424 1065%attr(755,root,root) %{_bindir}/clang-offload-wrapper
8d52ede4 1066%attr(755,root,root) %{_bindir}/clang-repl
6df3b432 1067%attr(755,root,root) %{_bindir}/git-clang-format
5a7ac479
JB
1068%dir %{_libdir}/clang
1069%dir %{_libdir}/clang/%{version}
1070%{_libdir}/clang/%{version}/include
1071%if %{with rt}
9cb808e7 1072%ifarch %{x8664} x32 aarch64
ef49a424
JP
1073%dir %{_libdir}/clang/%{version}/bin
1074%attr(755,root,root) %{_libdir}/clang/%{version}/bin/hwasan_symbolize
19798eda 1075%endif
97d374d2 1076%ifarch %{ix86} %{x8664} aarch64 armv7hl armv7hnl
3b28b31d
JB
1077%dir %{_libdir}/clang/%{version}/lib
1078%dir %{_libdir}/clang/%{version}/lib/linux
1079%dir %{_libdir}/clang/%{version}/share
1080%endif
1081%ifarch x32
1082%if %{with multilib}
9eefd942
JR
1083%dir %{_libdir}/clang/%{version}/lib
1084%dir %{_libdir}/clang/%{version}/lib/linux
8f8cf7a8 1085%dir %{_libdir}/clang/%{version}/share
9eefd942 1086%endif
3b28b31d 1087%endif
9eefd942 1088%ifarch %{ix86}
d1e2ca8d 1089%{_libdir}/clang/%{version}/lib/linux/clang_rt.*-i*86.o
9eefd942
JR
1090%{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-i*86.a
1091%attr(755,root,root) %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-i*86.so
c6c890ee
JB
1092%endif
1093%ifarch %{x8664}
d1e2ca8d 1094%{_libdir}/clang/%{version}/lib/linux/clang_rt.*-x86_64.o
9eefd942
JR
1095%{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-x86_64.a
1096%attr(755,root,root) %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-x86_64.so
f4c0e8bd 1097%{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-x86_64.a.syms
3c402b7e 1098%endif
7bceddf8
JP
1099%ifarch aarch64
1100%{_libdir}/clang/%{version}/lib/linux/clang_rt.*-aarch64.o
1101%{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-aarch64.a
1102%attr(755,root,root) %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-aarch64.so
1103%{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-aarch64.a.syms
1104%endif
97d374d2
JP
1105%ifarch armv7hl armv7hnl
1106%{_libdir}/clang/%{version}/lib/linux/clang_rt.*-armhf.o
1107%{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-armhf.a
1108%attr(755,root,root) %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-armhf.so
1109%{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-armhf.a.syms
1110%endif
3b28b31d 1111%ifarch %{ix86} %{x8664} %{arm} aarch64 mips mips64 ppc64
8d52ede4 1112%{_libdir}/clang/%{version}/share/asan_ignorelist.txt
d706a70d 1113%endif
97d374d2 1114%ifarch %{ix86} %{x8664} mips64 aarch64 armv7hl armv7hnl
8d52ede4 1115%{_libdir}/clang/%{version}/share/cfi_ignorelist.txt
d706a70d 1116%endif
3b28b31d 1117%ifarch %{x8664} aarch64 mips64
8f8cf7a8 1118%{_libdir}/clang/%{version}/share/dfsan_abilist.txt
8d52ede4 1119%{_libdir}/clang/%{version}/share/msan_ignorelist.txt
8f8cf7a8 1120%endif
3b28b31d 1121%ifarch %{x8664} aarch64
8d52ede4 1122%{_libdir}/clang/%{version}/share/hwasan_ignorelist.txt
d706a70d 1123%endif
3b28b31d
JB
1124%ifarch x32
1125%if %{with multilib}
8d52ede4
JP
1126%{_libdir}/clang/%{version}/share/asan_ignorelist.txt
1127%{_libdir}/clang/%{version}/share/cfi_ignorelist.txt
3b28b31d 1128%{_libdir}/clang/%{version}/share/dfsan_abilist.txt
8d52ede4
JP
1129%{_libdir}/clang/%{version}/share/msan_ignorelist.txt
1130%{_libdir}/clang/%{version}/share/hwasan_ignorelist.txt
3b28b31d
JB
1131%endif
1132%endif
5a7ac479 1133%endif
3c402b7e
JB
1134%dir %{_datadir}/clang
1135%{_datadir}/clang/clang-format-diff.py
d997b14b 1136
589b92f5 1137%if %{with rt} && %{with multilib}
b0e18b64 1138%ifarch %{x8664} x32
9eefd942
JR
1139%files -n clang-multilib
1140%defattr(644,root,root,755)
d1e2ca8d 1141%{_libdir}/clang/%{version}/lib/linux/clang_rt.*-i386.o
9eefd942
JR
1142%{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-i386.a
1143%attr(755,root,root) %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-i386.so
1144%endif
b0e18b64 1145%ifarch x32
d1e2ca8d 1146%{_libdir}/clang/%{version}/lib/linux/clang_rt.*-x86_64.o
b0e18b64
JB
1147%{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-x86_64.a
1148%attr(755,root,root) %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-x86_64.so
1149%{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-x86_64.a.syms
1150%endif
9eefd942
JR
1151%endif
1152
cb7d0198
JB
1153%files -n clang-libs
1154%defattr(644,root,root,755)
1155%attr(755,root,root) %{_libdir}/libclang.so.%{abi}
1156%attr(755,root,root) %{_libdir}/libclang.so.*.*.*
1157
1158%files -n clang-devel
1159%defattr(644,root,root,755)
1160%attr(755,root,root) %{_libdir}/libclang.so
1161%{_libdir}/libclang*.a
1162%{_includedir}/clang
1163%{_includedir}/clang-c
1164%{_includedir}/clang-tidy
1165%{_libdir}/cmake/clang
1166
1167%files -n clang-doc
1168%defattr(644,root,root,755)
1169%doc tools/clang/docs/*.{html,png,txt}
1170
1171%if %{with apidocs}
1172%files -n clang-apidocs
1173%defattr(644,root,root,755)
1174%doc clang-apidoc/*
1175%endif
1176
d997b14b 1177%files -n clang-analyzer
bc88141a 1178%defattr(644,root,root,755)
e25801fb
JB
1179%dir %{_libexecdir}/clang-analyzer
1180# perl tools
1181%attr(755,root,root) %{_bindir}/scan-build
1182%attr(755,root,root) %{_libexecdir}/clang-analyzer/c++-analyzer
1183%attr(755,root,root) %{_libexecdir}/clang-analyzer/ccc-analyzer
1184%{_datadir}/scan-build
1185%{_mandir}/man1/scan-build.1*
1186# python tools
8d52ede4
JP
1187%attr(755,root,root) %{_bindir}/analyze-build
1188%attr(755,root,root) %{_bindir}/intercept-build
8d52ede4 1189%attr(755,root,root) %{_bindir}/scan-build-py
d997b14b 1190%attr(755,root,root) %{_bindir}/scan-view
e25801fb
JB
1191%attr(755,root,root) %{_libexecdir}/clang-analyzer/analyze-c++
1192%attr(755,root,root) %{_libexecdir}/clang-analyzer/analyze-cc
1193%attr(755,root,root) %{_libexecdir}/clang-analyzer/intercept-c++
1194%attr(755,root,root) %{_libexecdir}/clang-analyzer/intercept-cc
8d52ede4
JP
1195%{_prefix}/lib/libear
1196%{_prefix}/lib/libscanbuild
634a3e5b 1197%{_datadir}/scan-view
8132e62b 1198
b0068ae4
JB
1199%files -n clang-tools-extra
1200%defattr(644,root,root,755)
9ace1f65 1201%doc tools/clang/tools/extra/{CODE_OWNERS.TXT,README.txt}
b0068ae4 1202%attr(755,root,root) %{_bindir}/clang-apply-replacements
5013c7ea 1203%attr(755,root,root) %{_bindir}/clang-change-namespace
0bc9c5c9 1204%attr(755,root,root) %{_bindir}/clang-extdef-mapping
03073220 1205%attr(755,root,root) %{_bindir}/clang-include-fixer
ef49a424 1206%attr(755,root,root) %{_bindir}/clang-move
b883cf1e 1207%attr(755,root,root) %{_bindir}/clang-query
23ae6496 1208%attr(755,root,root) %{_bindir}/clang-refactor
4ba3b2b3 1209%attr(755,root,root) %{_bindir}/clang-rename
5013c7ea 1210%attr(755,root,root) %{_bindir}/clang-reorder-fields
d1e2ca8d 1211%attr(755,root,root) %{_bindir}/clang-scan-deps
b0068ae4 1212%attr(755,root,root) %{_bindir}/clang-tidy
265e167c 1213%attr(755,root,root) %{_bindir}/clangd
8f8cf7a8 1214%attr(755,root,root) %{_bindir}/diagtool
03073220 1215%attr(755,root,root) %{_bindir}/find-all-symbols
8f8cf7a8 1216%attr(755,root,root) %{_bindir}/hmaptool
d706a70d 1217%attr(755,root,root) %{_bindir}/modularize
b0068ae4 1218%attr(755,root,root) %{_bindir}/pp-trace
8d52ede4 1219%attr(755,root,root) %{_bindir}/run-clang-tidy
03073220 1220%{_datadir}/clang/clang-include-fixer.py
d706a70d 1221%{_datadir}/clang/clang-tidy-diff.py
03073220 1222%{_datadir}/clang/run-find-all-symbols.py
b0068ae4 1223
d13e7dd0
JB
1224%files -n bash-completion-clang
1225%defattr(644,root,root,755)
1226%{bash_compdir}/clang
1227
d27b2b77
JB
1228%if %{with flang}
1229%files -n flang
1230%defattr(644,root,root,755)
1231%doc tools/flang/{LICENSE.TXT,README.md}
1232%attr(755,root,root) %{_bindir}/f18
1233%attr(755,root,root) %{_bindir}/f18-parse-demo
1234%attr(755,root,root) %{_bindir}/fir-opt
1235%attr(755,root,root) %{_bindir}/flang
1236%attr(755,root,root) %{_bindir}/tco
1237%dir %{_includedir}/flang
1238%{_includedir}/flang/Version.inc
1239%{_includedir}/flang/__fortran_*.mod
1240%{_includedir}/flang/ieee_*.mod
1241%{_includedir}/flang/iso_*.mod
1242%{_includedir}/flang/omp_lib*.mod
1243
1244%files -n flang-devel
1245%defattr(644,root,root,755)
1246%{_libdir}/libFIROptimizer.a
1247%{_libdir}/libFortran*.a
1248%{_includedir}/flang/Common
1249%{_includedir}/flang/Decimal
1250%{_includedir}/flang/Evaluate
1251%{_includedir}/flang/Frontend
1252%{_includedir}/flang/FrontendTool
1253%{_includedir}/flang/Lower
1254%{_includedir}/flang/Optimizer
1255%{_includedir}/flang/Parser
1256%{_includedir}/flang/Semantics
1257%{_includedir}/flang/ISO_Fortran_binding.h
1258%{_libdir}/cmake/flang
1259%endif
1260
ba1cf74d
JB
1261%files -n lld
1262%defattr(644,root,root,755)
1263%doc tools/lld/{LICENSE.TXT,README.md}
d706a70d 1264%attr(755,root,root) %{_bindir}/ld.lld
23ae6496 1265%attr(755,root,root) %{_bindir}/ld64.lld
40bef2a3 1266%attr(755,root,root) %{_bindir}/ld64.lld.darwinnew
95bd4382 1267%attr(755,root,root) %{_bindir}/ld64.lld.darwinold
ba1cf74d 1268%attr(755,root,root) %{_bindir}/lld
d706a70d 1269%attr(755,root,root) %{_bindir}/lld-link
d7447383 1270%attr(755,root,root) %{_bindir}/wasm-ld
ba1cf74d
JB
1271
1272%files -n lld-devel
1273%defattr(644,root,root,755)
d7447383 1274%{_libdir}/liblld[ACDEHMRWXY]*.a
ba1cf74d 1275%{_includedir}/lld
f784323b 1276%{_libdir}/cmake/lld
ba1cf74d 1277
5a7ac479
JB
1278%if %{with lldb}
1279%files -n lldb
1280%defattr(644,root,root,755)
1281%attr(755,root,root) %{_bindir}/lldb
4522eb9a 1282%attr(755,root,root) %{_bindir}/lldb-argdumper
d1e2ca8d 1283%attr(755,root,root) %{_bindir}/lldb-instr
6df3b432 1284%attr(755,root,root) %{_bindir}/lldb-server
0bc9c5c9 1285%attr(755,root,root) %{_bindir}/lldb-vscode
6df3b432 1286%attr(755,root,root) %{_libdir}/liblldb.so.%{version}
8d52ede4
JP
1287%attr(755,root,root) %ghost %{_libdir}/liblldb.so.13
1288%attr(755,root,root) %ghost %{_libdir}/liblldbIntelFeatures.so.13
40bef2a3
JP
1289%dir %{py3_sitedir}/lldb
1290%attr(755,root,root) %{py3_sitedir}/lldb/lldb-argdumper
1291%{py3_sitedir}/lldb/formatters
1292%{py3_sitedir}/lldb/utils
1293%{py3_sitedir}/lldb/__init__.py
1294%{py3_sitedir}/lldb/__pycache__
1295%{py3_sitedir}/lldb/embedded_interpreter.py
8d52ede4
JP
1296%dir %{py3_sitedir}/lldb/plugins
1297%{py3_sitedir}/lldb/plugins/__pycache__
1298%{py3_sitedir}/lldb/plugins/__init__.py
1299%{py3_sitedir}/lldb/plugins/scripted_process.py
40bef2a3 1300%attr(755,root,root) %{py3_sitedir}/lldb/_lldb.so
5a7ac479
JB
1301
1302%files -n lldb-devel
1303%defattr(644,root,root,755)
6df3b432 1304%attr(755,root,root) %{_libdir}/liblldb.so
23ae6496 1305%attr(755,root,root) %{_libdir}/liblldbIntelFeatures.so
5a7ac479
JB
1306%{_includedir}/lldb
1307%endif
1308
9556f4c9 1309%if %{with ocaml}
d997b14b
AM
1310%files ocaml
1311%defattr(644,root,root,755)
265e167c 1312%attr(755,root,root) %{_libdir}/ocaml/stublibs/dllllvm*.so
5013c7ea 1313%dir %{_libdir}/ocaml/llvm
5013c7ea
JB
1314%{_libdir}/ocaml/llvm/llvm*.cma
1315%{_libdir}/ocaml/llvm/llvm*.cmi
11b6f380 1316%{_libdir}/ocaml/META.llvm*
d997b14b
AM
1317
1318%files ocaml-devel
1319%defattr(644,root,root,755)
5013c7ea
JB
1320%{_libdir}/ocaml/llvm/libllvm*.a
1321%{_libdir}/ocaml/llvm/llvm*.a
1322%{_libdir}/ocaml/llvm/llvm*.cmx
1323%{_libdir}/ocaml/llvm/llvm*.cmxa
1324%{_libdir}/ocaml/llvm/llvm*.mli
9556f4c9
ER
1325
1326%files ocaml-doc
1327%defattr(644,root,root,755)
6df3b432 1328%doc ocamldocs/*
9556f4c9 1329%endif
d7447383
JR
1330
1331%files opt-viewer
1332%defattr(644,root,root,755)
1333%{_datadir}/opt-viewer
1334
1335%files -n vim-plugin-clang
1336%defattr(644,root,root,755)
1337%{_datadir}/clang/clang-format.py
1338%{_datadir}/clang/clang-rename.py
This page took 0.517218 seconds and 4 git commands to generate.