3 # %{_datadir}/clang/clang-format-sublime.py - sublime plugin
4 # %{_datadir}/clang/clang-format.el - emacs mode
5 # %{_datadir}/clang/clang-format.py - vim plugin
6 # - no content in doc package (it used to contain parts of clang apidocs and some examples)
9 %bcond_without lldb # LLDB debugger
10 %bcond_without polly # Polly cache-locality optimization, auto-parallelism and vectorization
11 %bcond_without rt # compiler-rt libraries
12 %bcond_without ocaml # OCaml binding
13 %bcond_without doc # HTML docs and man pages
14 %bcond_with apidocs # doxygen docs (HUGE, so they are not built by default)
15 %bcond_with tests # run tests
17 # No ocaml on other arches or no native ocaml (required for ocaml-ctypes)
18 %ifnarch %{ix86} %{x8664} arm aarch64 ppc sparc sparcv9
22 Summary: The Low Level Virtual Machine (An Optimizing Compiler Infrastructure)
23 Summary(pl.UTF-8): Niskopoziomowa maszyna wirtualna (infrastruktura kompilatora optymalizującego)
27 License: University of Illinois/NCSA Open Source License
28 Group: Development/Languages
29 #Source0Download: http://llvm.org/releases/download.html
30 Source0: http://llvm.org/releases/%{version}/%{name}-%{version}.src.tar.xz
31 # Source0-md5: b98b9495e5655a672d6cb83e1a180f8e
32 Source1: http://llvm.org/releases/%{version}/cfe-%{version}.src.tar.xz
33 # Source1-md5: 8f9d27335e7331cf0a4711e952f21f01
34 Source2: http://llvm.org/releases/%{version}/compiler-rt-%{version}.src.tar.xz
35 # Source2-md5: 383c10affd513026f08936b5525523f5
36 Source3: http://llvm.org/releases/%{version}/lldb-%{version}.src.tar.xz
37 # Source3-md5: e5931740400d1dc3e7db4c7ba2ceff68
38 Source4: http://llvm.org/releases/%{version}/polly-%{version}.src.tar.xz
39 # Source4-md5: 32f93ffc9cc7e042df22089761558f8b
40 Source5: http://llvm.org/releases/%{version}/clang-tools-extra-%{version}.src.tar.xz
41 # Source5-md5: d5a87dacb65d981a427a536f6964642e
42 Source6: http://llvm.org/releases/%{version}/lld-%{version}.src.tar.xz
43 # Source6-md5: 91bd593a67293d84dad0bf11845546c2
44 Patch0: %{name}-lld-link.patch
45 Patch1: %{name}-pld.patch
47 Patch3: x32-gcc-toolchain.patch
48 Patch5: debuginfo-fix.patch
54 BuildRequires: gcc >= 5:3.4
55 # gcc4 might be installed, but not current __cc
56 %if "%(echo %{cc_version} | cut -d. -f1,2)" < "3.4"
57 BuildRequires: __cc >= 3.4
60 BuildRequires: glibc-devel(x86_64)
63 BuildRequires: libltdl-devel
64 BuildRequires: libstdc++-devel >= 5:3.4
66 BuildRequires: ocaml-ctypes-devel >= 0.4
67 BuildRequires: ocaml-findlib
68 BuildRequires: ocaml-ocamldoc
69 BuildRequires: ocaml-ounit
71 BuildRequires: perl-base >= 1:5.6
72 BuildRequires: perl-tools-pod
73 BuildRequires: rpm-pythonprov
74 %{?with_doc:BuildRequires: sphinx-pdg}
75 BuildRequires: tar >= 1:1.22
78 BuildRequires: doxygen
79 BuildRequires: graphviz
82 BuildRequires: dejagnu
84 BuildRequires: tcl-devel
89 BuildRequires: libatomic-devel
91 BuildRequires: libedit-devel
92 BuildRequires: libxml2-devel >= 2
93 BuildRequires: ncurses-ext-devel
94 BuildRequires: python-devel >= 2
95 BuildRequires: swig-python
98 BuildRequires: cloog-isl-devel
100 BuildRequires: gmp-devel
101 BuildRequires: isl-devel >= 0.14
103 BuildRequires: pluto-devel
104 BuildRequires: scoplib-devel >= 0.2.1-2
107 Requires: %{name}-libs = %{version}-%{release}
108 # LLVM is not supported on PPC64
109 # http://llvm.org/bugs/show_bug.cgi?id=3729
111 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
113 %define _sysconfdir /etc/%{name}
115 %define specflags_ppc -fno-var-tracking-assignments
117 # strip corrupts: $RPM_BUILD_ROOT/usr/lib64/llvm-gcc/bin/llvm-c++ ...
118 %define _noautostrip .*/\\(libmud.*\\.a\\|bin/llvm-.*\\|lib.*++\\.a\\)
120 # clang doesn't know it, and leaving it here would pollute llvm-config
121 %define filterout_c -fvar-tracking-assignments
122 %define filterout_cxx -fvar-tracking-assignments
123 %define filterout_ccpp -fvar-tracking-assignments
125 # std::__once_call, std::__once_callable non-function symbols
126 %define skip_post_check_so liblldAArch64ELFTarget.so.* liblldARMELFTarget.so.* liblldHexagonELFTarget.so.* liblldMipsELFTarget.so.* liblldb.so.*
129 LLVM is a compiler infrastructure designed for compile-time,
130 link-time, runtime, and idle-time optimization of programs from
131 arbitrary programming languages. LLVM is written in C++ and has been
132 developed since 2000 at the University of Illinois and Apple. It
133 currently supports compilation of C and C++ programs using clang
136 %description -l pl.UTF-8
137 LLVM to infrastruktura kompilatora zaprojektowana do optymalizacji
138 czasu kompilowania, linkowania, działania i bezczynności programów w
139 dowolnych językach programowania. Jest napisana w C++, rozwijana od
140 roku 2000 przez Uniwersytet w Illinois i Apple. Aktualnie obsługuje
141 kompilację programów w C i C++ przy użyciu frontendu clang.
144 Summary: LLVM shared library
145 Summary(pl.UTF-8): Biblioteka współdzielona LLVM-a
147 Conflicts: llvm < 3.2
152 %description libs -l pl.UTF-8
153 Biblioteka współdzielona LLVM-a.
156 Summary: Static libraries and header files for LLVM
157 Summary(pl.UTF-8): Biblioteki statyczne i pliki nagłówkowe dla LLVM-a
158 Group: Development/Languages
159 Requires: %{name}-libs = %{version}-%{release}
160 Requires: libstdc++-devel >= 6:3.4
163 This package contains static libraries and header files needed to
164 develop new native programs that use the LLVM infrastructure.
166 %description devel -l pl.UTF-8
167 Ten pakiet zawiera biblioteki statyczne oraz pliki nagłówkowe
168 potrzebne do tworzenia nowych programów natywnych wykorzystujących
172 Summary: Documentation for LLVM
173 Summary(pl.UTF-8): Dokumentacja do LLVM-a
175 # does not require base
178 Documentation for the LLVM compiler infrastructure.
180 %description doc -l pl.UTF-8
181 Dokumentacja do infrastruktury kompilatorów LLVM.
184 Summary: API documentation for LLVM
185 Summary(pl.UTF-8): Dokumentacja API LLVM-a
186 Group: Development/Languages
187 Requires: %{name}-doc = %{version}-%{release}
190 API documentation for the LLVM compiler infrastructure.
192 %description apidocs -l pl.UTF-8
193 Dokumentacja API infrastruktury kompilatorów LLVM.
196 Summary: Polyhedral optimizations for LLVM
197 Summary(pl.UTF-8): Optymalizacje wielościanowe dla LLVM-a
198 Group: Development/Tools
199 URL: http://polly.llvm.org/
200 Requires: %{name} = %{version}-%{release}
203 Polly is a high-level loop and data-locality optimizer and
204 optimization infrastructure for LLVM. It uses an abstract mathematical
205 representation based on integer polyhedra to analyze and optimize the
206 memory access pattern of a program.
208 %description polly -l pl.UTF-8
209 Polly to wysokopoziomowy optymalizator i infrastruktura LLVM-a do
210 optymalizacji pętli i położenia danych. Wykorzystuje abstrakcyjną
211 reprezentację matematyczną opartą na wielościanach całkowitoliczbowych
212 do analizy i optymalizacji wzorców dostępu do pamięci przez program.
215 Summary: Header files for LLVM Polly optimization infrastructure
216 Summary(pl.UTF-8): Pliki nagłówkowe infrastruktury optymalizacji LLVM-a Polly
217 Group: Development/Libraries
218 URL: http://polly.llvm.org/
219 Requires: %{name}-devel = %{version}-%{release}
220 Requires: %{name}-polly = %{version}-%{release}
222 %description polly-devel
223 Header files for LLVM Polly optimization infrastructure.
225 %description polly-devel -l pl.UTF-8
226 Pliki nagłówkowe infrastruktury optymalizacji LLVM-a Polly.
229 Summary: A C language family frontend for LLVM
230 Summary(pl.UTF-8): Frontend LLVM-a do języków z rodziny C
232 Group: Development/Languages
233 Requires: %{name} = %{version}-%{release}
235 %description -n clang
236 clang: noun 1. A loud, resonant, metallic sound. 2. The strident call
237 of a crane or goose. 3. C-language family front-end toolkit.
239 The goal of the Clang project is to create a new C, C++, Objective C
240 and Objective C++ front-end for the LLVM compiler. Its tools are built
241 as libraries and designed to be loosely-coupled and extendable.
243 %description -n clang -l pl.UTF-8
244 clang (z angielskiego): 1. głośny, rezonujący, metaliczny dźwięk; 2.
245 piskliwy odgłos żurawia lub gęsi; 3. narzędzia frontendowe dla języków
248 Celem projektu Clang jest utworzenie nowego frontendu dla kompilatora
249 LLVM do języków C, C++, Objective C i Objective C++. Narzędzia są
250 budowane jako biblioteki i zaprojektowane z myślą o swobodnym łączeniu
253 %package -n clang-multilib
254 Summary: A C language family frontend for LLVM - 32-bit support
255 Summary(pl.UTF-8): Frontend LLVM-a do języków z rodziny C - obsługa binariów 32-bitowych
257 Group: Development/Languages
258 Requires: clang = %{version}-%{release}
260 %description -n clang-multilib
261 clang: noun 1. A loud, resonant, metallic sound. 2. The strident call
262 of a crane or goose. 3. C-language family front-end toolkit.
264 The goal of the Clang project is to create a new C, C++, Objective C
265 and Objective C++ front-end for the LLVM compiler. Its tools are built
266 as libraries and designed to be loosely-coupled and extendable.
268 This package contains the C compiler support for producing 32-bit
269 programs on 64-bit host.
271 %description -n clang-multilib -l pl.UTF-8
272 clang (z angielskiego): 1. głośny, rezonujący, metaliczny dźwięk; 2.
273 piskliwy odgłos żurawia lub gęsi; 3. narzędzia frontendowe dla języków
276 Celem projektu Clang jest utworzenie nowego frontendu dla kompilatora
277 LLVM do języków C, C++, Objective C i Objective C++. Narzędzia są
278 budowane jako biblioteki i zaprojektowane z myślą o swobodnym łączeniu
281 Ten pakiet zawiera rozszerzenie kompilatora C o obsługę tworzenia
282 programów 32-bitowych na maszynie 64-bitowej.
284 %package -n clang-analyzer
285 Summary: A source code analysis framework
286 Summary(pl.UTF-8): Szkielet do analizy kodu źródłowego
288 Group: Development/Languages
289 Requires: clang = %{version}-%{release}
290 # not picked up automatically since files are currently not instaled
291 # in standard Python hierarchies yet
294 %description -n clang-analyzer
295 The Clang Static Analyzer consists of both a source code analysis
296 framework and a standalone tool that finds bugs in C and Objective-C
297 programs. The standalone tool is invoked from the command-line, and is
298 intended to run in tandem with a build of a project or code base.
300 %description -n clang-analyzer -l pl.UTF-8
301 Clang Static Analyzer składa się ze szkieletu do analizy kodu
302 źródłowego oraz samodzielnego narzędzia znajdującego błędy w
303 programach w C i C++. Narzędzie jest wywoływane z linii poleceń, z
304 myślą o uruchamianiu wraz z kompilacją projektu lub kodu.
306 %package -n clang-devel
307 Summary: Header files for Clang
308 Summary(pl.UTF-8): Pliki nagłówkowe Clanga
309 Group: Development/Languages
310 Requires: %{name}-devel = %{version}-%{release}
311 Requires: clang = %{version}-%{release}
313 %description -n clang-devel
314 This package contains header files for the Clang compiler.
316 %description -n clang-devel -l pl.UTF-8
317 Ten pakiet zawiera pliki nagłówkowe kompilatora Clang.
319 %package -n clang-doc
320 Summary: Documentation for Clang
321 Summary(pl.UTF-8): Dokumentacja do Clanga
323 Requires: %{name} = %{version}-%{release}
325 %description -n clang-doc
326 Documentation for the Clang compiler front-end.
328 %description -n clang-doc -l pl.UTF-8
329 Dokumentacja do frontendu kompilatora Clang.
331 %package -n clang-apidocs
332 Summary: API documentation for Clang
333 Summary(pl.UTF-8): Dokumentacja API Clanga
334 Group: Development/Languages
335 Requires: clang-doc = %{version}-%{release}
337 %description -n clang-apidocs
338 API documentation for the Clang compiler.
340 %description -n clang-apidocs -l pl.UTF-8
341 Dokumentacja API kompilatora Clang.
343 %package -n clang-tools-extra
344 Summary: Extra tools for Clang
345 Summary(pl.UTF-8): Dodatkowe narzędzia do kompilatora Clang
346 Group: Development/Tools
347 URL: http://clang.llvm.org/docs/ClangTools.html
348 Requires: clang = %{version}-%{release}
350 %description -n clang-tools-extra
351 Extra tools for Clang.
353 %description -n clang-tools-extra -l pl.UTF-8
354 Dodatkowe narzędzia do kompilatora Clang.
357 Summary: The LLVM linker
358 Summary(pl.UTF-8): Konsolidator z projektu LLVM
359 Group: Development/Libraries
360 URL: http://lld.llvm.org/
361 Requires: %{name} = %{version}-%{release}
364 lld is a new set of modular code for creating linker tools.
366 %description -n lld -l pl.UTF-8
367 lld to nowy zbiór modularnego kodu do tworzenia narzędzi
370 %package -n lld-devel
371 Summary: Development files for LLD linker tools
372 Summary(pl.UTF-8): Pliki programistyczne narzędzi konsolidujących LLD
373 Group: Development/Tools
374 URL: http://lld.llvm.org/
375 Requires: %{name}-devel = %{version}-%{release}
377 %description -n lld-devel
378 Development files for LLD linker tools.
380 %description -n lld-devel -l pl.UTF-8
381 Pliki programistyczne narzędzi konsolidujących LLD.
384 Summary: Next generation high-performance debugger
385 Summary(pl.UTF-8): Wydajny debugger nowej generacji
386 Group: Development/Debuggers
387 URL: http://lldb.llvm.org/
388 Requires: %{name} = %{version}-%{release}
391 LLDB is a next generation, high-performance debugger. It is built as a
392 set of reusable components which highly leverage existing libraries in
393 the larger LLVM Project, such as the Clang expression parser and LLVM
396 %description -n lldb -l pl.UTF-8
397 LLDB to wydajny debugger nowej generacji. Jest zbudowany w oparciu o
398 komponenty wielokrotnego użytku, wykorzystujące istniejące biblioteki
399 w projekcie LLVM, takie jak analizator wyrażeń kompilatora Clang oraz
402 %package -n lldb-devel
403 Summary: Development files for LLDB debugger
404 Summary(pl.UTF-8): Pliki programistyczne debuggera LLDB
405 Group: Development/Libraries
406 URL: http://lldb.llvm.org/
407 Requires: %{name}-devel = %{version}-%{release}
408 Requires: clang-devel = %{version}-%{release}
409 Requires: lldb = %{version}-%{release}
411 %description -n lldb-devel
412 Development files for LLDB debugger.
414 %description -n lldb-devel -l pl.UTF-8
415 Pliki programistyczne debuggera LLDB.
418 Summary: OCaml binding for LLVM
419 Summary(pl.UTF-8): Wiązanie OCamla do LLVM-a
421 Requires: %{name} = %{version}-%{release}
422 %requires_eq ocaml-runtime
425 OCaml binding for LLVM.
427 %description ocaml -l pl.UTF-8
428 Wiązanie OCamla do LLVM-a.
431 Summary: Development files for LLVM OCaml binding
432 Summary(pl.UTF-8): Pliki programistyczne wiązania OCamla do LLVM-a
433 Group: Development/Libraries
434 Requires: %{name}-devel = %{version}-%{release}
435 Requires: %{name}-ocaml = %{version}-%{release}
437 %description ocaml-devel
438 The llvm-ocaml-devel package contains libraries and signature files
439 for developing applications that use llvm-ocaml binding.
441 %description ocaml-devel -l pl.UTF-8
442 Ten pakiet zawiera biblioteki i pliki sygnatur do tworzenia aplikacji
443 wykorzystujących wiązanie llvm-ocaml.
446 Summary: Documentation for LLVM's OCaml binding
447 Summary(pl.UTF-8): Dokumentacja wiązania OCamla do LLVM-a
449 Requires: %{name}-ocaml = %{version}-%{release}
451 %description ocaml-doc
452 HTML documentation for LLVM's OCaml binding.
454 %description ocaml-doc -l pl.UTF-8
455 Dokumentacja HTML wiązania OCamla do LLVM-a.
458 %setup -q -n %{name}-%{version}.src -a1 %{?with_rt:-a2} %{?with_lldb:-a3} %{?with_polly:-a4} -a5 -a6
459 mv cfe-%{version}.src tools/clang
460 %{?with_rt:mv compiler-rt-%{version}.src projects/compiler-rt}
461 %{?with_lldb:mv lldb-%{version}.src tools/lldb}
462 %{?with_polly:mv polly-%{version}.src tools/polly}
463 mv clang-tools-extra-%{version}.src tools/clang/tools/extra
464 mv lld-%{version}.src tools/lld
472 grep -rl /usr/bin/env tools utils | xargs sed -i -e '1{
473 s,^#!.*bin/env python,#!%{__python},
474 s,^#!.*bin/env perl,#!%{__perl},
480 # Disabling assertions now, rec. by pure and needed for OpenGTL
481 # TESTFIX no PIC on ix86: http://llvm.org/bugs/show_bug.cgi?id=3801
483 CPPFLAGS="%{rpmcppflags} -D_FILE_OFFSET_BITS=64"
487 -DLLVM_LIBDIR_SUFFIX:STRING=64 \
490 -DLLVM_LIBDIR_SUFFIX:STRING=x32 \
493 -DLLVM_ENABLE_PIC:BOOL=OFF \
496 -DLLVM_ENABLE_DOXYGEN:BOOL=ON \
499 -DLLVM_ENABLE_SPHINX:BOOL=ON \
501 -DLLVM_ENABLE_ASSERTIONS:BOOL=OFF \
502 -DLLVM_ENABLE_CXX1Y:BOOL=ON \
503 -DLLVM_BINDINGS_LIST:LIST="%{?with_ocaml:ocaml}" \
504 -DBUILD_SHARED_LIBS:BOOL=ON
509 OPTIMIZE_OPTION="%{rpmcflags} %{rpmcppflags}"
512 %{__make} check 2>&1 | tee llvm-testlog.txt
513 %{__make} -C tools/clang test 2>&1 | tee clang-testlog.txt
517 %{__make} -C docs docs-llvm-html
518 %{__make} -C docs docs-llvm-man
520 %{__make} -C docs ocaml_doc
522 %{__make} -C tools/clang/docs docs-clang-html
523 %{__make} -C tools/clang/docs docs-clang-man
524 %{__make} -C tools/lld/docs docs-lld-html
525 %{__make} -C tools/lldb/docs lldb-python-doc
526 %{__make} -C tools/lldb/docs lldb-cpp-doc
527 %{__make} -C ../tools/clang/tools/extra/docs html
531 rm -rf $RPM_BUILD_ROOT
532 %{__make} -C build install \
533 DESTDIR=$RPM_BUILD_ROOT
535 # only some .pyc files are created by make install
536 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
537 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
539 # Static analyzer not installed by default:
540 # http://clang-analyzer.llvm.org/installation#OtherPlatforms
541 install -d $RPM_BUILD_ROOT%{_libdir}/clang-analyzer
543 for f in scan-{build,view}; do
544 ln -s %{_libdir}/clang-analyzer/$f/$f $RPM_BUILD_ROOT%{_bindir}/$f
545 cp -pr tools/clang/tools/$f $RPM_BUILD_ROOT%{_libdir}/clang-analyzer
547 install -d $RPM_BUILD_ROOT%{_mandir}/man1
548 %{__mv} $RPM_BUILD_ROOT%{_libdir}/clang-analyzer/scan-build/scan-build.1 $RPM_BUILD_ROOT%{_mandir}/man1
549 %py_comp $RPM_BUILD_ROOT%{_libdir}/clang-analyzer/scan-view
550 %py_ocomp $RPM_BUILD_ROOT%{_libdir}/clang-analyzer/scan-view
551 %py_postclean %{_libdir}/clang-analyzer/scan-view
553 %{__rm} $RPM_BUILD_ROOT%{_libdir}/clang-analyzer/scan-build/*.bat
555 # not installed by cmake buildsystem
556 install build/bin/clang-query $RPM_BUILD_ROOT%{_bindir}
557 install build/bin/pp-trace $RPM_BUILD_ROOT%{_bindir}
560 cp -p build/docs/man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
561 # these tools are not installed
562 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/{FileCheck,llvm-build}.1
564 echo '.so llvm-ar.1' > $RPM_BUILD_ROOT%{_mandir}/man1/llvm-ranlib.1
567 # Move documentation back to build directory
570 mv $RPM_BUILD_ROOT%{_prefix}/docs/ocaml/html/html ocamldocs
573 # and separate the apidoc
576 cp -a build/tools/clang/docs/html clang-apidoc
579 # And prepare Clang documentation
581 install -d clang-docs
582 for f in LICENSE.TXT NOTES.txt README.txt; do
583 ln tools/clang/$f clang-docs
586 # Get rid of erroneously installed example files.
587 %{__rm} $RPM_BUILD_ROOT%{_libdir}/LLVMHello.so
589 %{__rm} $RPM_BUILD_ROOT%{_bindir}/llvm-c-test
591 %{__rm} $RPM_BUILD_ROOT%{_datadir}/clang/clang-format-bbedit.applescript
594 rm -rf $RPM_BUILD_ROOT
596 %post libs -p /sbin/ldconfig
597 %postun libs -p /sbin/ldconfig
599 %post -n clang -p /sbin/ldconfig
600 %postun -n clang -p /sbin/ldconfig
602 %post -n clang-tools-extra -p /sbin/ldconfig
603 %postun -n clang-tools-extra -p /sbin/ldconfig
605 %post -n lldb -p /sbin/ldconfig
606 %postun -n lldb -p /sbin/ldconfig
609 %defattr(644,root,root,755)
610 %doc CREDITS.TXT LICENSE.TXT README.txt %{?with_tests:llvm-testlog.txt}
611 %attr(755,root,root) %{_bindir}/bugpoint
612 %attr(755,root,root) %{_bindir}/llc
613 %attr(755,root,root) %{_bindir}/lli
614 %attr(755,root,root) %{_bindir}/llvm-ar
615 %attr(755,root,root) %{_bindir}/llvm-as
616 %attr(755,root,root) %{_bindir}/llvm-bcanalyzer
617 %attr(755,root,root) %{_bindir}/llvm-cov
618 %attr(755,root,root) %{_bindir}/llvm-diff
619 %attr(755,root,root) %{_bindir}/llvm-dis
620 %attr(755,root,root) %{_bindir}/llvm-dsymutil
621 %attr(755,root,root) %{_bindir}/llvm-dwarfdump
622 %attr(755,root,root) %{_bindir}/llvm-extract
623 %attr(755,root,root) %{_bindir}/llvm-lib
624 %attr(755,root,root) %{_bindir}/llvm-link
626 %attr(755,root,root) %{_bindir}/llvm-lto
628 %attr(755,root,root) %{_bindir}/llvm-mc
629 %attr(755,root,root) %{_bindir}/llvm-mcmarkup
630 %attr(755,root,root) %{_bindir}/llvm-nm
631 %attr(755,root,root) %{_bindir}/llvm-objdump
632 %attr(755,root,root) %{_bindir}/llvm-profdata
633 %attr(755,root,root) %{_bindir}/llvm-ranlib
634 %attr(755,root,root) %{_bindir}/llvm-readobj
635 %attr(755,root,root) %{_bindir}/llvm-rtdyld
636 %attr(755,root,root) %{_bindir}/llvm-size
637 %attr(755,root,root) %{_bindir}/llvm-stress
638 %attr(755,root,root) %{_bindir}/llvm-symbolizer
639 %attr(755,root,root) %{_bindir}/llvm-tblgen
640 %attr(755,root,root) %{_bindir}/llvm-cxxdump
641 %attr(755,root,root) %{_bindir}/llvm-pdbdump
642 %attr(755,root,root) %{_bindir}/macho-dump
643 %attr(755,root,root) %{_bindir}/obj2yaml
644 %attr(755,root,root) %{_bindir}/opt
645 %attr(755,root,root) %{_bindir}/verify-uselistorder
646 %attr(755,root,root) %{_bindir}/yaml2obj
648 %{_mandir}/man1/bugpoint.1*
649 %{_mandir}/man1/lit.1*
650 %{_mandir}/man1/llc.1*
651 %{_mandir}/man1/lli.1*
652 %{_mandir}/man1/llvm-ar.1*
653 %{_mandir}/man1/llvm-as.1*
654 %{_mandir}/man1/llvm-bcanalyzer.1*
655 %{_mandir}/man1/llvm-cov.1*
656 %{_mandir}/man1/llvm-diff.1*
657 %{_mandir}/man1/llvm-dis.1*
658 %{_mandir}/man1/llvm-dwarfdump.1*
659 %{_mandir}/man1/llvm-extract.1*
660 %{_mandir}/man1/llvm-link.1*
661 %{_mandir}/man1/llvm-nm.1*
662 %{_mandir}/man1/llvm-profdata.1*
663 %{_mandir}/man1/llvm-ranlib.1*
664 %{_mandir}/man1/llvm-readobj.1*
665 %{_mandir}/man1/llvm-stress.1*
666 %{_mandir}/man1/llvm-symbolizer.1*
667 %{_mandir}/man1/opt.1*
668 %{_mandir}/man1/tblgen.1*
672 %defattr(644,root,root,755)
673 %attr(755,root,root) %{_libdir}/libLLVM*.so.%{version}
674 %attr(755,root,root) %ghost %{_libdir}/libLLVM*.so.3.7
676 %attr(755,root,root) %{_libdir}/libLTO.so.%{version}
677 %attr(755,root,root) %ghost %{_libdir}/libLTO.so.3.7
681 %defattr(644,root,root,755)
682 %attr(755,root,root) %{_bindir}/llvm-config
683 %attr(755,root,root) %{_libdir}/libLLVM*.so
684 %attr(755,root,root) %{_libdir}/BugpointPasses.so
686 %attr(755,root,root) %{_libdir}/libLTO.so
689 %{_includedir}/llvm-c
690 %dir %{_datadir}/llvm
691 %{_datadir}/llvm/cmake
693 %{_mandir}/man1/llvm-config.1*
697 #%defattr(644,root,root,755)
701 %defattr(644,root,root,755)
707 %defattr(644,root,root,755)
708 %doc tools/polly/{CREDITS.txt,LICENSE.txt,README}
709 %attr(755,root,root) %{_libdir}/LLVMPolly.so
710 %attr(755,root,root) %{_libdir}/libPolly.so
713 %defattr(644,root,root,755)
718 %defattr(644,root,root,755)
719 %doc clang-docs/{LICENSE.TXT,NOTES.txt,README.txt} %{?with_tests:clang-testlog.txt}
720 %attr(755,root,root) %{_bindir}/clang
721 %attr(755,root,root) %{_bindir}/clang++
722 %attr(755,root,root) %{_bindir}/clang-3.7
723 %attr(755,root,root) %{_bindir}/clang-check
724 %attr(755,root,root) %{_bindir}/clang-cl
725 %attr(755,root,root) %{_bindir}/clang-format
726 %attr(755,root,root) %{_bindir}/git-clang-format
728 %attr(755,root,root) %{_libdir}/libclang.so.3.7
730 %attr(755,root,root) %{_libdir}/libclang[A-Z]*.so.%{version}
731 %attr(755,root,root) %ghost %{_libdir}/libclang[A-Z]*.so.3.7
732 %dir %{_libdir}/clang
733 %dir %{_libdir}/clang/%{version}
734 %{_libdir}/clang/%{version}/include
736 %ifarch %{ix86} %{x8664}
737 %{_libdir}/clang/%{version}/asan_blacklist.txt
738 %dir %{_libdir}/clang/%{version}/lib
739 %dir %{_libdir}/clang/%{version}/lib/linux
742 %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-i*86.a
743 %attr(755,root,root) %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-i*86.so
746 %{_libdir}/clang/%{version}/dfsan_abilist.txt
747 %{_libdir}/clang/%{version}/msan_blacklist.txt
748 %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-x86_64.a
749 %attr(755,root,root) %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-x86_64.so
750 %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-x86_64.a.syms
753 %dir %{_datadir}/clang
754 %{_datadir}/clang/clang-format-diff.py
758 %files -n clang-multilib
759 %defattr(644,root,root,755)
760 %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-i386.a
761 %attr(755,root,root) %{_libdir}/clang/%{version}/lib/linux/libclang_rt.*-i386.so
765 %files -n clang-analyzer
766 %defattr(644,root,root,755)
767 %attr(755,root,root) %{_bindir}/scan-build
768 %attr(755,root,root) %{_bindir}/scan-view
769 %{_mandir}/man1/scan-build.1*
770 %dir %{_libdir}/clang-analyzer
772 %dir %{_libdir}/clang-analyzer/scan-build
773 %{_libdir}/clang-analyzer/scan-build/*.css
774 %{_libdir}/clang-analyzer/scan-build/*.js
775 %attr(755,root,root) %{_libdir}/clang-analyzer/scan-build/scan-build
776 %attr(755,root,root) %{_libdir}/clang-analyzer/scan-build/*-analyzer
778 %dir %{_libdir}/clang-analyzer/scan-view
779 %attr(755,root,root) %{_libdir}/clang-analyzer/scan-view/scan-view
780 %{_libdir}/clang-analyzer/scan-view/Resources
781 %{_libdir}/clang-analyzer/scan-view/*.py[co]
783 %files -n clang-devel
784 %defattr(644,root,root,755)
785 %attr(755,root,root) %{_libdir}/libclang*.so
786 %ifarch %{ix86} # ???
787 %{_libdir}/libclang.a
790 %{_includedir}/clang-c
793 %defattr(644,root,root,755)
794 %doc tools/clang/docs/*.{html,png,txt}
797 %files -n clang-apidocs
798 %defattr(644,root,root,755)
802 %files -n clang-tools-extra
803 %defattr(644,root,root,755)
804 %doc tools/clang/tools/extra/{CODE_OWNERS.TXT,README.txt} tools/clang/tools/extra/docs/_build/html/{*.html,*.js,_static}
805 %attr(755,root,root) %{_bindir}/clang-apply-replacements
806 %attr(755,root,root) %{_bindir}/clang-modernize
807 %attr(755,root,root) %{_bindir}/clang-query
808 %attr(755,root,root) %{_bindir}/clang-rename
809 %attr(755,root,root) %{_bindir}/clang-tidy
810 %attr(755,root,root) %{_bindir}/pp-trace
811 %attr(755,root,root) %{_libdir}/libmodernizeCore.so.%{version}
812 %attr(755,root,root) %ghost %{_libdir}/libmodernizeCore.so.3.7
814 %attr(755,root,root) %{_libdir}/libmodernizeCore.so
817 %defattr(644,root,root,755)
818 %doc tools/lld/{LICENSE.TXT,README.md}
819 %attr(755,root,root) %{_bindir}/lld
820 %attr(755,root,root) %{_libdir}/liblld[ACDEHMPRXY]*.so.%{version}
821 %attr(755,root,root) %ghost %{_libdir}/liblld[ACDEHMPRXY]*.so.3.7
824 %defattr(644,root,root,755)
825 %attr(755,root,root) %{_libdir}/liblld[ACDEHMPRXY]*.so
830 %defattr(644,root,root,755)
831 %attr(755,root,root) %{_bindir}/argdumper
832 %attr(755,root,root) %{_bindir}/lldb
833 %attr(755,root,root) %{_bindir}/lldb-%{version}
834 %attr(755,root,root) %{_bindir}/lldb-mi
835 %attr(755,root,root) %{_bindir}/lldb-mi-%{version}
836 %attr(755,root,root) %{_bindir}/lldb-server
837 %attr(755,root,root) %{_bindir}/lldb-server-%{version}
838 %attr(755,root,root) %{_libdir}/liblldb.so.%{version}
839 %attr(755,root,root) %ghost %{_libdir}/liblldb.so.3.7
840 %dir %{py_sitedir}/lldb
841 %attr(755,root,root) %{py_sitedir}/lldb/argdumper
842 %{py_sitedir}/lldb/formatters
843 %{py_sitedir}/lldb/runtime
844 %{py_sitedir}/lldb/utils
845 %{py_sitedir}/lldb/__init__.py[co]
846 %{py_sitedir}/lldb/embedded_interpreter.py[co]
847 %attr(755,root,root) %{py_sitedir}/lldb/_lldb.so
848 %attr(755,root,root) %{py_sitedir}/readline.so
851 %defattr(644,root,root,755)
852 %attr(755,root,root) %{_libdir}/liblldb.so
853 %{_libdir}/liblldb*.a
859 %defattr(644,root,root,755)
860 %{_libdir}/ocaml/META.llvm*
861 %attr(755,root,root) %{_libdir}/ocaml/dllllvm*.so
862 %{_libdir}/ocaml/llvm*.cma
863 %{_libdir}/ocaml/llvm*.cmi
866 %defattr(644,root,root,755)
867 %{_libdir}/ocaml/libllvm*.a
868 %{_libdir}/ocaml/llvm*.a
869 %{_libdir}/ocaml/llvm*.cmx*
872 %defattr(644,root,root,755)