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