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