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