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