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