1Name: @PACKAGE_NAME@
2Version: @PACKAGE_VERSION@
3Release: 0
4Summary: LLVM (An Optimizing Compiler Infrastructure)
5License: University of Illinois/NCSA Open Source License
6Vendor: None (open source)
7Group: Development/Compilers
8URL: http://llvm..org/
9Source: http://llvm.org/releases/@PACKAGE_VERSION@/@PACKAGE_NAME@-@PACKAGE_VERSION@.tar.gz
10BuildRoot: %{_tmppath}/%{name}-root
11Requires: /sbin/ldconfig
12BuildRequires: gcc >= 3.4
13
14%description
15LLVM is a compiler infrastructure designed for compile-time, link-time, runtime,
16and idle-time optimization of programs from arbitrary programming languages.
17LLVM is written in C++ and has been developed since 2000 at the University of
18Illinois and Apple. It currently supports compilation of C and C++ programs, 
19using front-ends derived from GCC 4.0.1. A new front-end for the C family of
20languages is in development. The compiler infrastructure
21includes mirror sets of programming tools as well as libraries with equivalent
22functionality.
23
24%prep
25%setup -q -n @PACKAGE_NAME@-@PACKAGE_VERSION@
26
27%build
28./configure \
29--prefix=%{_prefix} \
30--bindir=%{_bindir} \
31--datadir=%{_datadir} \
32--includedir=%{_includedir} \
33--libdir=%{_libdir} \
34--enable-optimized \
35--enable-assertions 
36make tools-only
37
38%install
39rm -rf %{buildroot}
40make install DESTDIR=%{buildroot}
41
42%clean
43rm -rf %{buildroot}
44
45%post -p /sbin/ldconfig
46
47%postun -p /sbin/ldconfig
48
49%files
50%defattr(-, root, root)
51%doc CREDITS.TXT LICENSE.TXT README.txt docs/*.{html,css,gif,jpg} docs/CommandGuide
52%{_bindir}/*
53%{_libdir}/*.o
54%{_libdir}/*.a
55%{_libdir}/*.so
56%{_includedir}/llvm
57
58%changelog
59* Fri Aug 04 2006 Reid Spencer
60- Updates for release 1.8
61* Fri Apr 07 2006 Reid Spencer
62- Make the build be optimized+assertions
63* Fri May 13 2005 Reid Spencer
64- Minor adjustments for the 1.5 release
65* Mon Feb 09 2003 Brian R. Gaeke
66- Initial working version of RPM spec file.
67
68