ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/libunwind.spec
Revision: 1.1
Committed: Fri May 15 17:00:28 2009 UTC (15 years, 11 months ago) by lat
Branch: MAIN
CVS Tags: ap20090520-osx105, ap20090519-osx105
Log Message:
Build spec for libunwind.

File Contents

# User Rev Content
1 lat 1.1 ### RPM external libunwind 0.99
2     Source: http://download.savannah.nongnu.org/releases/libunwind/%n-%realversion.tar.gz
3    
4     %prep
5     %setup -n %n-%realversion
6     # Linker visibility attributes don't work with SL4 binutils.
7     perl -p -i -e 's/__attribute__\s*\(\(visibility\s*\("[a-z]+"\)\)\)//' include/libunwind_i.h
8    
9     %build
10     ./configure --prefix=%i
11     make %makeprocesses
12    
13     %install
14     make install
15     mkdir -p %i/etc/scram.d
16     sed 's/^ //' > %i/etc/scram.d/%n << \EOF
17     <doc type=BuildSystem::ToolDoc version=1.0>
18     <Tool name="%n" version="%v">
19     <info url="http://www.nongnu.org/libunwind/"></info>
20     <lib name=unwind>
21     <Client>
22     <Environment name=UNWIND_BASE default="%i"></Environment>
23     <Environment name=LIBDIR default="$UNWIND_BASE/lib"></Environment>
24     <Environment name=INCLUDE default="$UNWIND_BASE/include"></Environment>
25     </Client>
26     </Tool>
27     EOF
28    
29     %post
30     %{relocateConfig}etc/scram.d/%n