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