]>
Commit | Line | Data |
---|---|---|
bc88141a | 1 | # |
9556f4c9 ER |
2 | # Conditional build: |
3 | %bcond_without ocaml # ocaml binding | |
8132e62b JB |
4 | %bcond_with apidocs # The doxygen docs are HUGE, so they are not built by default. |
5 | %bcond_with tests # run tests | |
9556f4c9 ER |
6 | |
7 | %ifarch s390 s390x sparc64 | |
8 | # No ocaml on these arches | |
9 | %undefine with_ocaml | |
10 | %endif | |
11 | ||
aa11c230 | 12 | Summary: The Low Level Virtual Machine (An Optimizing Compiler Infrastructure) |
2326a99f | 13 | Summary(pl.UTF-8): Niskopoziomowa maszyna wirtualna (infrastruktura kompilatora optymalizującego) |
aa11c230 | 14 | Name: llvm |
f981d747 | 15 | Version: 3.1 |
bc8a0b58 | 16 | Release: 1 |
aa11c230 | 17 | License: University of Illinois/NCSA Open Source License |
18 | Group: Development/Languages | |
f981d747 PS |
19 | Source0: http://llvm.org/releases/%{version}/%{name}-%{version}.src.tar.gz |
20 | # Source0-md5: 16eaa7679f84113f65b12760fdfe4ee1 | |
21 | Source1: http://llvm.org/releases/%{version}/clang-%{version}.src.tar.gz | |
22 | # Source1-md5: 59bf2d3120a3805f27cafda3823caaf8 | |
d997b14b AM |
23 | # Data files should be installed with timestamps preserved |
24 | Patch3: %{name}-2.6-timestamp.patch | |
ce9cc204 | 25 | Patch4: %{name}-pld.patch |
2326a99f | 26 | URL: http://llvm.org/ |
bc88141a | 27 | BuildRequires: bash |
d997b14b | 28 | BuildRequires: bison |
d997b14b | 29 | BuildRequires: flex |
9556f4c9 ER |
30 | %if %{with apidocs} |
31 | BuildRequires: doxygen | |
d997b14b | 32 | BuildRequires: graphviz |
9556f4c9 ER |
33 | %endif |
34 | %if %{with tests} | |
35 | BuildRequires: dejagnu | |
36 | BuildRequires: python | |
37 | BuildRequires: tcl-devel | |
38 | %endif | |
d997b14b | 39 | BuildRequires: groff |
bc88141a | 40 | BuildRequires: libltdl-devel |
d997b14b AM |
41 | BuildRequires: libstdc++-devel >= 5:3.4 |
42 | BuildRequires: ocaml-ocamldoc | |
8132e62b | 43 | BuildRequires: perl-base >= 1:5.6 |
8c156e7d | 44 | BuildRequires: perl-tools-pod |
45 | BuildRequires: rpm-pythonprov | |
356a0bbd ER |
46 | # gcc4 might be installed, but not current __cc |
47 | %if "%(echo %{cc_version} | cut -d. -f1,2)" < "3.4" | |
48 | BuildRequires: __cc >= 3.4 | |
49 | %endif | |
9556f4c9 ER |
50 | # LLVM is not supported on PPC64 |
51 | # http://llvm.org/bugs/show_bug.cgi?id=3729 | |
52 | ExcludeArch: ppc64 | |
aa11c230 | 53 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
54 | ||
356a0bbd | 55 | %define _sysconfdir /etc/%{name} |
021b3c3d | 56 | |
9556f4c9 ER |
57 | %define specflags_ppc -fno-var-tracking-assignments |
58 | ||
6832a5c5 ER |
59 | # strip corrupts: $RPM_BUILD_ROOT/usr/lib64/llvm-gcc/bin/llvm-c++ ... |
60 | %define _noautostrip .*/\\(libmud.*\\.a\\|bin/llvm-.*\\|lib.*++\\.a\\) | |
61 | ||
aa11c230 | 62 | %description |
63 | LLVM is a compiler infrastructure designed for compile-time, | |
64 | link-time, runtime, and idle-time optimization of programs from | |
65 | arbitrary programming languages. LLVM is written in C++ and has been | |
66 | developed since 2000 at the University of Illinois and Apple. It | |
621ec11f JB |
67 | currently supports compilation of C and C++ programs using clang |
68 | frontend. | |
aa11c230 | 69 | |
2326a99f JB |
70 | %description -l pl.UTF-8 |
71 | LLVM to infrastruktura kompilatora zaprojektowana do optymalizacji | |
72 | czasu kompilowania, linkowania, działania i bezczynności programów w | |
73 | dowolnych językach programowania. Jest napisana w C++, rozwijana od | |
74 | roku 2000 przez Uniwersytet w Illinois i Apple. Aktualnie obsługuje | |
621ec11f | 75 | kompilację programów w C i C++ przy użyciu frontendu clang. |
2326a99f | 76 | |
bc88141a | 77 | %package devel |
621ec11f JB |
78 | Summary: Static libraries and header files for LLVM |
79 | Summary(pl.UTF-8): Biblioteki statyczne i pliki nagłówkowe dla LLVM-a | |
bc88141a ER |
80 | Group: Development/Languages |
81 | Requires: %{name} = %{version}-%{release} | |
82 | Requires: libstdc++-devel >= 6:3.4 | |
83 | ||
84 | %description devel | |
621ec11f JB |
85 | This package contains static libraries and header files needed to |
86 | develop new native programs that use the LLVM infrastructure. | |
87 | ||
88 | %description devel -l pl.UTF-8 | |
89 | Ten pakiet zawiera biblioteki statyczne oraz pliki nagłówkowe | |
90 | potrzebne do tworzenia nowych programów natywnych wykorzystujących | |
91 | infrastrukturę LLVM. | |
bc88141a | 92 | |
9556f4c9 ER |
93 | %package doc |
94 | Summary: Documentation for LLVM | |
621ec11f | 95 | Summary(pl.UTF-8): Dokumentacja do LLVM-a |
9556f4c9 ER |
96 | Group: Documentation |
97 | # does not require base | |
bc88141a | 98 | |
9556f4c9 ER |
99 | %description doc |
100 | Documentation for the LLVM compiler infrastructure. | |
bc88141a | 101 | |
621ec11f JB |
102 | %description doc -l pl.UTF-8 |
103 | Dokumentacja do infrastruktury kompilatorów LLVM. | |
104 | ||
9556f4c9 ER |
105 | %package apidocs |
106 | Summary: API documentation for LLVM | |
621ec11f | 107 | Summary(pl.UTF-8): Dokumentacja API LLVM-a |
9556f4c9 ER |
108 | Group: Development/Languages |
109 | Requires: %{name}-doc = %{version}-%{release} | |
bc88141a | 110 | |
9556f4c9 ER |
111 | %description apidocs |
112 | API documentation for the LLVM compiler infrastructure. | |
bc88141a | 113 | |
621ec11f JB |
114 | %description apidocs -l pl.UTF-8 |
115 | Dokumentacja API infrastruktury kompilatorów LLVM. | |
116 | ||
d997b14b AM |
117 | %package -n clang |
118 | Summary: A C language family frontend for LLVM | |
621ec11f | 119 | Summary(pl.UTF-8): Frontend LLVM-a do języków z rodziny C |
d997b14b AM |
120 | License: NCSA |
121 | Group: Development/Languages | |
122 | ||
123 | %description -n clang | |
124 | clang: noun 1. A loud, resonant, metallic sound. 2. The strident call | |
125 | of a crane or goose. 3. C-language family front-end toolkit. | |
126 | ||
127 | The goal of the Clang project is to create a new C, C++, Objective C | |
128 | and Objective C++ front-end for the LLVM compiler. Its tools are built | |
129 | as libraries and designed to be loosely-coupled and extendable. | |
130 | ||
621ec11f JB |
131 | %description -n clang -l pl.UTF-8 |
132 | clang (z angielskiego): 1. głośny, rezonujący, metaliczny dźwięk; 2. | |
133 | piskliwy odgłos żurawia lub gęsi; 3. narzędzia frontendowe dla języków | |
134 | z rodziny C. | |
135 | ||
136 | Celem projektu Clang jest utworzenie nowego frontendu dla kompilatora | |
137 | LLVM do języków C, C++, Objective C i Objective C++. Narzędzia są | |
138 | budowane jako biblioteki i zaprojektowane z myślą o swobodnym łączeniu | |
139 | i rozszerzaniu. | |
140 | ||
d997b14b AM |
141 | %package -n clang-analyzer |
142 | Summary: A source code analysis framework | |
621ec11f | 143 | Summary(pl.UTF-8): Szkielet do analizy kodu źródłowego |
d997b14b AM |
144 | License: NCSA |
145 | Group: Development/Languages | |
146 | Requires: clang = %{version}-%{release} | |
147 | # not picked up automatically since files are currently not instaled | |
148 | # in standard Python hierarchies yet | |
149 | Requires: python | |
150 | ||
151 | %description -n clang-analyzer | |
152 | The Clang Static Analyzer consists of both a source code analysis | |
153 | framework and a standalone tool that finds bugs in C and Objective-C | |
154 | programs. The standalone tool is invoked from the command-line, and is | |
155 | intended to run in tandem with a build of a project or code base. | |
156 | ||
621ec11f JB |
157 | %description -n clang-analyzer -l pl.UTF-8 |
158 | Clang Static Analyzer składa się ze szkieletu do analizy kodu | |
159 | źródłowego oraz samodzielnego narzędzia znajdującego błędy w | |
160 | programach w C i C++. Narzędzie jest wywoływane z linii poleceń, z | |
161 | myślą o uruchamianiu wraz z kompilacją projektu lub kodu. | |
162 | ||
9556f4c9 | 163 | %package -n clang-devel |
621ec11f JB |
164 | Summary: Header files for Clang |
165 | Summary(pl.UTF-8): Pliki nagłówkowe Clanga | |
9556f4c9 ER |
166 | Group: Development/Languages |
167 | Requires: clang = %{version}-%{release} | |
168 | ||
169 | %description -n clang-devel | |
170 | This package contains header files for the Clang compiler. | |
171 | ||
621ec11f JB |
172 | %description -n clang-devel -l pl.UTF-8 |
173 | Ten pakiet zawiera pliki nagłówkowe kompilatora Clang. | |
174 | ||
9556f4c9 ER |
175 | %package -n clang-doc |
176 | Summary: Documentation for Clang | |
621ec11f | 177 | Summary(pl.UTF-8): Dokumentacja do Clanga |
9556f4c9 ER |
178 | Group: Documentation |
179 | Requires: %{name} = %{version}-%{release} | |
180 | ||
181 | %description -n clang-doc | |
182 | Documentation for the Clang compiler front-end. | |
183 | ||
621ec11f JB |
184 | %description -n clang-doc -l pl.UTF-8 |
185 | Dokumentacja do frontendu kompilatora Clang. | |
186 | ||
9556f4c9 ER |
187 | %package -n clang-apidocs |
188 | Summary: API documentation for Clang | |
621ec11f | 189 | Summary(pl.UTF-8): Dokumentacja API Clanga |
9556f4c9 ER |
190 | Group: Development/Languages |
191 | Requires: clang-doc = %{version}-%{release} | |
192 | ||
193 | %description -n clang-apidocs | |
194 | API documentation for the Clang compiler. | |
195 | ||
621ec11f JB |
196 | %description -n clang-apidocs -l pl.UTF-8 |
197 | Dokumentacja API kompilatora Clang. | |
198 | ||
9556f4c9 ER |
199 | %package ocaml |
200 | Summary: OCaml binding for LLVM | |
621ec11f JB |
201 | Summary(pl.UTF-8): Wiązanie OCamla do LLVM-a |
202 | Group: Libraries | |
9556f4c9 ER |
203 | Requires: %{name} = %{version}-%{release} |
204 | %requires_eq ocaml-runtime | |
205 | ||
621ec11f | 206 | %description ocaml |
9556f4c9 ER |
207 | OCaml binding for LLVM. |
208 | ||
621ec11f JB |
209 | %description ocaml -l pl.UTF-8 |
210 | Wiązanie OCamla do LLVM-a. | |
211 | ||
9556f4c9 | 212 | %package ocaml-devel |
621ec11f JB |
213 | Summary: Development files for LLVM OCaml binding |
214 | Summary(pl.UTF-8): Pliki programistyczne wiązania OCamla do LLVM-a | |
9556f4c9 ER |
215 | Group: Development/Libraries |
216 | Requires: %{name}-devel = %{version}-%{release} | |
217 | Requires: %{name}-ocaml = %{version}-%{release} | |
218 | ||
219 | %description ocaml-devel | |
220 | The llvm-ocaml-devel package contains libraries and signature files | |
621ec11f JB |
221 | for developing applications that use llvm-ocaml binding. |
222 | ||
223 | %description ocaml-devel -l pl.UTF-8 | |
224 | Ten pakiet zawiera biblioteki i pliki sygnatur do tworzenia aplikacji | |
225 | wykorzystujących wiązanie llvm-ocaml. | |
226 | ||
9556f4c9 ER |
227 | |
228 | %package ocaml-doc | |
229 | Summary: Documentation for LLVM's OCaml binding | |
621ec11f | 230 | Summary(pl.UTF-8): Dokumentacja wiązania OCamla do LLVM-a |
9556f4c9 ER |
231 | Group: Documentation |
232 | Requires: %{name}-ocaml = %{version}-%{release} | |
233 | ||
234 | %description ocaml-doc | |
235 | HTML documentation for LLVM's OCaml binding. | |
236 | ||
621ec11f JB |
237 | %description ocaml-doc -l pl.UTF-8 |
238 | Dokumentacja HTML wiązania OCamla do LLVM-a. | |
239 | ||
aa11c230 | 240 | %prep |
827664e9 | 241 | %setup -q -a1 -n %{name}-%{version}.src |
d997b14b | 242 | mv clang-*.* tools/clang |
9556f4c9 | 243 | %patch3 -p1 |
ce9cc204 | 244 | %patch4 -p1 |
245 | ||
19f21eee PS |
246 | # configure does not properly specify libdir |
247 | sed -i 's|(PROJ_prefix)/lib|(PROJ_prefix)/%{_lib}|g' Makefile.config.in | |
248 | ||
bacc8b96 ER |
249 | grep -rl /usr/bin/env tools utils | xargs sed -i -e '1{ |
250 | s,^#!.*bin/env python,#!%{__python}, | |
251 | s,^#!.*bin/env perl,#!%{__perl}, | |
252 | }' | |
253 | ||
9556f4c9 | 254 | install -d obj |
aa11c230 | 255 | |
256 | %build | |
d997b14b | 257 | # Disabling assertions now, rec. by pure and needed for OpenGTL |
9556f4c9 | 258 | # TESTFIX no PIC on ix86: http://llvm.org/bugs/show_bug.cgi?id=3801 |
d997b14b | 259 | # |
bc88141a | 260 | # bash specific 'test a < b' |
9556f4c9 | 261 | cd obj |
d997b14b | 262 | bash ../%configure \ |
bc88141a ER |
263 | --libdir=%{_libdir}/%{name} \ |
264 | --datadir=%{_datadir}/%{name}-%{version} \ | |
632f3287 | 265 | --disable-assertions \ |
d997b14b | 266 | %ifarch %{ix86} |
632f3287 | 267 | --disable-pic \ |
9556f4c9 | 268 | %endif |
632f3287 JB |
269 | --disable-static \ |
270 | --enable-bindings=%{?with_ocaml:ocaml}%{!?with_ocaml:none} \ | |
271 | --enable-debug-runtime \ | |
9556f4c9 ER |
272 | %if %{with apidocs} |
273 | --enable-doxygen \ | |
d997b14b | 274 | %endif |
bc88141a | 275 | --enable-jit \ |
aa11c230 | 276 | --enable-optimized \ |
bc88141a ER |
277 | --enable-shared \ |
278 | --with-pic | |
279 | ||
d997b14b | 280 | %{__make} \ |
0a0b7076 | 281 | REQUIRES_RTTI=1 \ |
d997b14b | 282 | OPTIMIZE_OPTION="%{rpmcflags} %{rpmcppflags}" |
aa11c230 | 283 | |
827664e9 | 284 | %if %{with tests} |
9556f4c9 ER |
285 | %{__make} check 2>&1 | tee llvm-testlog.txt |
286 | %{__make} -C tools/clang test 2>&1 | tee clang-testlog.txt | |
287 | %endif | |
288 | ||
aa11c230 | 289 | %install |
290 | rm -rf $RPM_BUILD_ROOT | |
9556f4c9 | 291 | %{__make} -C obj -j1 install \ |
d997b14b | 292 | PROJ_docsdir=/moredocs \ |
aa11c230 | 293 | DESTDIR=$RPM_BUILD_ROOT |
294 | ||
d997b14b | 295 | # Static analyzer not installed by default: |
9556f4c9 ER |
296 | # http://clang-analyzer.llvm.org/installation#OtherPlatforms |
297 | install -d $RPM_BUILD_ROOT%{_libdir}/clang-analyzer | |
d997b14b AM |
298 | # create launchers |
299 | for f in scan-{build,view}; do | |
9556f4c9 ER |
300 | ln -s %{_libdir}/clang-analyzer/$f/$f $RPM_BUILD_ROOT%{_bindir}/$f |
301 | cp -pr tools/clang/tools/$f $RPM_BUILD_ROOT%{_libdir}/clang-analyzer | |
d997b14b | 302 | done |
8132e62b JB |
303 | %py_comp $RPM_BUILD_ROOT%{_libdir}/clang-analyzer/scan-view |
304 | %py_ocomp $RPM_BUILD_ROOT%{_libdir}/clang-analyzer/scan-view | |
305 | %py_postclean %{_libdir}/clang-analyzer/scan-view | |
d997b14b | 306 | |
d997b14b | 307 | # Move documentation back to build directory |
d997b14b AM |
308 | rm -rf moredocs |
309 | mv $RPM_BUILD_ROOT/moredocs . | |
9556f4c9 ER |
310 | rm -fv moredocs/*.tar.gz |
311 | rm -fv moredocs/ocamldoc/html/*.tar.gz | |
312 | ||
313 | # and separate the apidoc | |
314 | %if %{with apidocs} | |
315 | rm -rf apidoc clang-apidoc | |
316 | mv moredocs/html/doxygen apidoc | |
317 | cp -a tools/clang/docs/doxygen/html clang-apidoc | |
318 | %endif | |
d997b14b AM |
319 | |
320 | # And prepare Clang documentation | |
d997b14b | 321 | rm -rf clang-docs |
9556f4c9 | 322 | install -d clang-docs |
827664e9 | 323 | for f in LICENSE.TXT NOTES.txt README.txt; do |
9556f4c9 | 324 | ln tools/clang/$f clang-docs |
d997b14b | 325 | done |
021b3c3d | 326 | |
6832a5c5 | 327 | # Get rid of erroneously installed example files. |
19f21eee | 328 | rm -v $RPM_BUILD_ROOT%{_libdir}/*LLVMHello.* |
6832a5c5 | 329 | |
d997b14b | 330 | # FIXME file this bug |
19f21eee | 331 | sed -i 's,ABS_RUN_DIR/lib",ABS_RUN_DIR/%{_lib}",' \ |
d997b14b | 332 | $RPM_BUILD_ROOT%{_bindir}/llvm-config |
6832a5c5 | 333 | |
d997b14b AM |
334 | # remove documentation makefiles: |
335 | # they require the build directory to work | |
9556f4c9 ER |
336 | rm -rf moredocs/examples |
337 | cp -a examples moredocs/examples | |
338 | find moredocs/examples -name Makefile | xargs -0r rm -f | |
6832a5c5 | 339 | |
aa11c230 | 340 | %clean |
341 | rm -rf $RPM_BUILD_ROOT | |
342 | ||
2326a99f JB |
343 | %post -p /sbin/ldconfig |
344 | %postun -p /sbin/ldconfig | |
aa11c230 | 345 | |
346 | %files | |
347 | %defattr(644,root,root,755) | |
8132e62b | 348 | %doc CREDITS.TXT LICENSE.TXT README.txt %{?with_tests:llvm-testlog.txt} |
a9beeab5 | 349 | %attr(755,root,root) %{_bindir}/bugpoint |
a9beeab5 JB |
350 | %attr(755,root,root) %{_bindir}/llc |
351 | %attr(755,root,root) %{_bindir}/lli | |
8132e62b JB |
352 | %attr(755,root,root) %{_bindir}/llvm-ar |
353 | %attr(755,root,root) %{_bindir}/llvm-as | |
354 | %attr(755,root,root) %{_bindir}/llvm-bcanalyzer | |
827664e9 | 355 | %attr(755,root,root) %{_bindir}/llvm-cov |
8132e62b JB |
356 | %attr(755,root,root) %{_bindir}/llvm-diff |
357 | %attr(755,root,root) %{_bindir}/llvm-dis | |
827664e9 | 358 | %attr(755,root,root) %{_bindir}/llvm-dwarfdump |
8132e62b JB |
359 | %attr(755,root,root) %{_bindir}/llvm-extract |
360 | %attr(755,root,root) %{_bindir}/llvm-ld | |
361 | %attr(755,root,root) %{_bindir}/llvm-link | |
362 | %attr(755,root,root) %{_bindir}/llvm-mc | |
363 | %attr(755,root,root) %{_bindir}/llvm-nm | |
364 | %attr(755,root,root) %{_bindir}/llvm-objdump | |
365 | %attr(755,root,root) %{_bindir}/llvm-prof | |
366 | %attr(755,root,root) %{_bindir}/llvm-ranlib | |
f981d747 | 367 | %attr(755,root,root) %{_bindir}/llvm-readobj |
827664e9 PS |
368 | %attr(755,root,root) %{_bindir}/llvm-rtdyld |
369 | %attr(755,root,root) %{_bindir}/llvm-size | |
f981d747 | 370 | %attr(755,root,root) %{_bindir}/llvm-stress |
8132e62b | 371 | %attr(755,root,root) %{_bindir}/llvm-stub |
827664e9 | 372 | %attr(755,root,root) %{_bindir}/llvm-tblgen |
a7973f21 | 373 | %attr(755,root,root) %{_bindir}/macho-dump |
8132e62b JB |
374 | %attr(755,root,root) %{_bindir}/opt |
375 | %attr(755,root,root) %{_libdir}/libLLVM-%{version}.so | |
a9beeab5 | 376 | %{_mandir}/man1/bugpoint.1* |
a7973f21 | 377 | %{_mandir}/man1/lit.1* |
a9beeab5 JB |
378 | %{_mandir}/man1/llc.1* |
379 | %{_mandir}/man1/lli.1* | |
8132e62b JB |
380 | %{_mandir}/man1/llvm-ar.1* |
381 | %{_mandir}/man1/llvm-as.1* | |
382 | %{_mandir}/man1/llvm-bcanalyzer.1* | |
f981d747 | 383 | %{_mandir}/man1/llvm-cov.1* |
8132e62b JB |
384 | %{_mandir}/man1/llvm-diff.1* |
385 | %{_mandir}/man1/llvm-dis.1* | |
386 | %{_mandir}/man1/llvm-extract.1* | |
387 | %{_mandir}/man1/llvm-ld.1* | |
388 | %{_mandir}/man1/llvm-link.1* | |
389 | %{_mandir}/man1/llvm-nm.1* | |
390 | %{_mandir}/man1/llvm-prof.1* | |
391 | %{_mandir}/man1/llvm-ranlib.1* | |
f981d747 | 392 | %{_mandir}/man1/llvm-stress.1* |
a9beeab5 | 393 | %{_mandir}/man1/opt.1* |
bc88141a | 394 | |
bc88141a ER |
395 | %files devel |
396 | %defattr(644,root,root,755) | |
397 | %attr(755,root,root) %{_bindir}/llvm-config | |
827664e9 | 398 | %attr(755,root,root) %{_libdir}/libprofile_rt.so |
8132e62b | 399 | %{_libdir}/libLLVM*.a |
827664e9 | 400 | %{_libdir}/libprofile_rt.a |
1655c8b5 | 401 | %ifarch %{x8664} |
0a8510f2 | 402 | %attr(755,root,root) %{_libdir}/BugpointPasses.so |
19f21eee | 403 | %attr(755,root,root) %{_libdir}/libLTO.so |
8132e62b | 404 | %{_libdir}/libLTO.a |
1655c8b5 | 405 | %endif |
8132e62b JB |
406 | %{_includedir}/llvm |
407 | %{_includedir}/llvm-c | |
408 | %{_mandir}/man1/llvm-config.1* | |
bc88141a | 409 | |
9556f4c9 ER |
410 | %files doc |
411 | %defattr(644,root,root,755) | |
412 | %doc moredocs/examples moredocs/html | |
413 | ||
414 | %if %{with apidocs} | |
415 | %files apidocs | |
416 | %defattr(644,root,root,755) | |
417 | %doc apidoc/* | |
418 | %endif | |
419 | ||
d997b14b | 420 | %files -n clang |
bc88141a | 421 | %defattr(644,root,root,755) |
827664e9 | 422 | %doc clang-docs/{LICENSE.TXT,NOTES.txt,README.txt} %{?with_tests:clang-testlog.txt} |
8132e62b JB |
423 | %attr(755,root,root) %{_bindir}/clang |
424 | %attr(755,root,root) %{_bindir}/clang++ | |
827664e9 | 425 | %attr(755,root,root) %{_bindir}/clang-tblgen |
b3a27ca2 | 426 | %attr(755,root,root) %{_libdir}/libclang.so |
d997b14b | 427 | %{_prefix}/lib/clang |
8132e62b | 428 | %{_mandir}/man1/clang.1* |
b3a27ca2 | 429 | %{_mandir}/man1/tblgen.1* |
d997b14b AM |
430 | |
431 | %files -n clang-analyzer | |
bc88141a | 432 | %defattr(644,root,root,755) |
d997b14b AM |
433 | %attr(755,root,root) %{_bindir}/scan-build |
434 | %attr(755,root,root) %{_bindir}/scan-view | |
ae49e501 | 435 | %dir %{_libdir}/clang-analyzer |
d997b14b | 436 | |
9556f4c9 ER |
437 | %dir %{_libdir}/clang-analyzer/scan-build |
438 | %{_libdir}/clang-analyzer/scan-build/*.css | |
439 | %{_libdir}/clang-analyzer/scan-build/*.js | |
440 | %attr(755,root,root) %{_libdir}/clang-analyzer/scan-build/scan-build | |
441 | %attr(755,root,root) %{_libdir}/clang-analyzer/scan-build/*-analyzer | |
442 | ||
8132e62b JB |
443 | %dir %{_libdir}/clang-analyzer/scan-view |
444 | %attr(755,root,root) %{_libdir}/clang-analyzer/scan-view/scan-view | |
445 | %{_libdir}/clang-analyzer/scan-view/Resources | |
446 | %{_libdir}/clang-analyzer/scan-view/*.py[co] | |
447 | ||
9556f4c9 ER |
448 | %files -n clang-devel |
449 | %defattr(644,root,root,755) | |
8132e62b | 450 | %{_libdir}/libclang*.a |
9556f4c9 ER |
451 | %{_includedir}/clang |
452 | %{_includedir}/clang-c | |
453 | ||
454 | %files -n clang-doc | |
455 | %defattr(644,root,root,755) | |
8132e62b | 456 | %doc tools/clang/docs/*.{css,html,png,txt} |
9556f4c9 ER |
457 | |
458 | %if %{with apidocs} | |
459 | %files -n clang-apidocs | |
460 | %defattr(644,root,root,755) | |
461 | %doc clang-apidoc/* | |
462 | %endif | |
463 | ||
464 | %if %{with ocaml} | |
d997b14b AM |
465 | %files ocaml |
466 | %defattr(644,root,root,755) | |
bc8a0b58 | 467 | %{_libdir}/ocaml/META.llvm |
8132e62b JB |
468 | %{_libdir}/ocaml/llvm*.cma |
469 | %{_libdir}/ocaml/llvm*.cmi | |
d997b14b AM |
470 | |
471 | %files ocaml-devel | |
472 | %defattr(644,root,root,755) | |
bc8a0b58 | 473 | %{_libdir}/libllvm*.a |
8132e62b JB |
474 | %{_libdir}/ocaml/libLLVM*.a |
475 | %{_libdir}/ocaml/libllvm*.a | |
476 | %{_libdir}/ocaml/llvm*.a | |
477 | %{_libdir}/ocaml/llvm*.cmx* | |
478 | %{_libdir}/ocaml/llvm*.mli | |
9556f4c9 ER |
479 | |
480 | %files ocaml-doc | |
481 | %defattr(644,root,root,755) | |
482 | %doc moredocs/ocamldoc/html/* | |
483 | %endif |