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