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