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