llvm.org GIT mirror llvm / 10e4663
Transform the LLVM RPM spec file to be a configured file. This allows us to automatically pick up the configured version number and other details. Also, update the contents of this script to allow building both a source and binary version of the RPM package. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29716 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Spencer 13 years ago
2 changed file(s) with 18 addition(s) and 80 deletion(s). Raw diff Collapse all Expand all
+0
-64
llvm.spec less more
None Summary: Static and JIT research compiler infrastructure
1 Name: llvm
2 Version: 1.6cvs
3 Release: 0
4 License: U of Illinois/NCSA Open Source License
5 Group: Development/Languages
6 Source0: llvm.tar.gz
7 URL: http://llvm.cs.uiuc.edu/releases/index.html
8 #BuildRequires: llvm-gcc
9 # (someday...)
10 BuildRoot: %{_tmppath}/%{name}-root
11 Requires: /sbin/ldconfig
12
13 %description
14 LLVM is a compiler infrastructure designed for compile-time, link-time, runtime,
15 and "idle-time" optimization of programs from arbitrary programming languages.
16 LLVM is written in C++ and has been developed since 2000 at the University of
17 Illinois. It currently supports compilation of C and C++ programs, using
18 front-ends derived from GCC 3.4. The compiler infrastructure includes mirror
19 sets of programming tools as well as libraries with equivalent
20 functionality.
21
22 %prep
23 %setup -q -n llvm
24
25 %build
26 ./configure \
27 --prefix=%{_prefix} \
28 --bindir=%{_bindir} \
29 --datadir=%{_datadir} \
30 --includedir=%{_includedir} \
31 --libdir=%{_libdir} \
32 --enable-optimized \
33 --enable-assertions \
34 make
35
36 %install
37 rm -rf %{buildroot}
38 make install DESTDIR=%{buildroot}
39
40 %clean
41 rm -rf %{buildroot}
42
43 %post -p /sbin/ldconfig
44
45 %postun -p /sbin/ldconfig
46
47 %files
48 %defattr(-, root, root)
49 %doc CREDITS.TXT LICENSE.TXT README.txt docs/*.{html,css,gif,jpg} docs/CommandGuide
50 %{_bindir}/*
51 %{_libdir}/*.o
52 %{_libdir}/*.a
53 %{_libdir}/*.so
54 %{_includedir}/llvm
55
56 %changelog
57 * Fri Apr 07 2006 Reid Spencer
58 - Make the build be optimized+assertions
59 * Fri May 13 2005 Reid Spencer
60 - Minor adjustments for the 1.5 release
61 * Mon Feb 09 2003 Brian R. Gaeke
62 - Initial working version of RPM spec file.
63
None Summary: Static and JIT research compiler infrastructure
1 Name: llvm
2 Version: 1.6cvs
0 Name: @PACKAGE_NAME@
1 Version: @PACKAGE_VERSION@
32 Release: 0
4 License: U of Illinois/NCSA Open Source License
5 Group: Development/Languages
6 Source0: llvm.tar.gz
7 URL: http://llvm.cs.uiuc.edu/releases/index.html
8 #BuildRequires: llvm-gcc
9 # (someday...)
3 Summary: The Low Level Virtual Machine (An Optimizing Compiler Infrastructure)
4 License: University of Illinois/NCSA Open Source License
5 Vendor: None (open source)
6 Group: Development/Compilers
7 URL: http://llvm..org/
8 Source: http://llvm.org/releases/@PACKAGE_VERSION@/@PACKAGE_NAME@-@PACKAGE_VERSION@.tar.gz
109 BuildRoot: %{_tmppath}/%{name}-root
1110 Requires: /sbin/ldconfig
11 BuildRequires: gcc >= 3.4
1212
1313 %description
1414 LLVM is a compiler infrastructure designed for compile-time, link-time, runtime,
15 and "idle-time" optimization of programs from arbitrary programming languages.
15 and idle-time optimization of programs from arbitrary programming languages.
1616 LLVM is written in C++ and has been developed since 2000 at the University of
17 Illinois. It currently supports compilation of C and C++ programs, using
18 front-ends derived from GCC 3.4. The compiler infrastructure includes mirror
19 sets of programming tools as well as libraries with equivalent
17 Illinois and Apple. It currently supports compilation of C and C++ programs,
18 using front-ends derived from GCC 3.4 and 4.0.2. The compiler infrastructure
19 includes mirror sets of programming tools as well as libraries with equivalent
2020 functionality.
2121
2222 %prep
23 %setup -q -n llvm
23 %setup -q -n @PACKAGE_NAME@-@PACKAGE_VERSION@
2424
2525 %build
2626 ./configure \
3030 --includedir=%{_includedir} \
3131 --libdir=%{_libdir} \
3232 --enable-optimized \
33 --enable-assertions \
34 make
33 --enable-assertions
34 make tools-only
3535
3636 %install
3737 rm -rf %{buildroot}
5454 %{_includedir}/llvm
5555
5656 %changelog
57 * Fri Aug 04 2006 Reid Spencer
58 - Updates for release 1.8
5759 * Fri Apr 07 2006 Reid Spencer
5860 - Make the build be optimized+assertions
5961 * Fri May 13 2005 Reid Spencer