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