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