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