ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/gcc.spec
(Generate patch)

Comparing COMP/CMSDIST/gcc.spec (file contents):
Revision 1.14 by dlange, Thu Apr 19 20:52:43 2007 UTC vs.
Revision 1.15 by dlange, Sun Apr 29 10:34:13 2007 UTC

# Line 1 | Line 1
1 < ### RPM external gcc 3.4.5
1 > ### RPM external gcc 3.4.5-CMS1
2   ## INITENV +PATH LD_LIBRARY_PATH %i/lib/32
3 ## INITENV +PATH LD_LIBRARY_PATH %i/lib64
3   ## BUILDIF case $(uname):$(uname -p) in Linux:i*86 ) true ;; Linux:x86_64 ) true ;;  Linux:ppc64 ) false ;; Darwin:* ) false ;; * ) true ;; esac
4 < Source: ftp://ftp.fu-berlin.de/unix/gnu/%n/%n-%v/%n-%v.tar.bz2
4 > %define realVersion %(echo %v | cut -d- -f1)
5 > Source: ftp://ftp.fu-berlin.de/unix/gnu/%n/%n-%realVersion/%n-%realVersion.tar.bz2
6   %define cpu %(echo %cmsplatf | cut -d_ -f2)
7 +
8 + %prep
9 + %setup -q -n %{n}-%{realVersion}
10 +
11   %build
12   # FIXME: --enable-__cxa_atexit can't be used with gcc 3.2.3 on RH 7.3,
13   # enabling it causes qt's uic to die with segmentation violation half
# Line 26 | Line 30 | make %makeprocesses bootstrap
30  
31   %install
32   cd obj && make install
33 +
34   ln -s gcc %i/bin/cc
35 +
36   %post
37 +
38 + mkdir $RPM_INSTALL_PREFIX/%{pkgrel}/bin.orig
39 +
40 + for exe in `ls $RPM_INSTALL_PREFIX/%{pkgrel}/bin`; do
41 + mv $RPM_INSTALL_PREFIX/%{pkgrel}/bin/${exe} $RPM_INSTALL_PREFIX/%{pkgrel}/bin.orig/${exe}
42 + cat << \EOF  | sed -e "s|\@EXEC\@|$RPM_INSTALL_PREFIX/%{pkgrel}/bin.orig/${exe}|g" > $RPM_INSTALL_PREFIX/%{pkgrel}/bin/$exe
43 + #!/bin/sh
44 + @EXEC@ "$@" -m32 -Wa,--32
45 + EOF
46 + chmod +x $RPM_INSTALL_PREFIX/%{pkgrel}/bin/$exe
47 + done
48 +
49 +
50   %{relocateConfig}lib/libg2c.la
51   %{relocateConfig}lib/libstdc++.la
52   %{relocateConfig}lib/libsupc++.la

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines