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