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