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