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

Comparing COMP/CMSDIST/boost.spec (file contents):
Revision 1.33 by elmer, Mon Dec 31 18:07:11 2007 UTC vs.
Revision 1.37 by ratnik, Tue May 13 17:07:02 2008 UTC

# Line 1 | Line 1
1 < ### RPM external boost 1.34.1-CMS19
1 > ### RPM external boost 1.34.1-CMS21
2   %define boostver _%(echo %realversion | tr . _)
3 %define gccver %(echo $GCC_VERSION | cut -d. -f1,2 | sed -e 's/\.//')
3   Source: http://internap.dl.sourceforge.net/sourceforge/%{n}/%{n}%{boostver}.tar.gz
4  
5   Requires: boost-build python bz2lib
6 < %if "%{?online_release:set}" != "set"
6 > %if "%cmsplatf" != "slc4onl_ia32_gcc346"
7   Requires: zlib
8   %endif
9  
# Line 24 | Line 23 | PR="PYTHON_ROOT=$PYTHON_ROOT"
23   BZ2LIBR="BZIP2_LIBPATH=$BZ2LIB_ROOT/lib"
24   BZ2LIBI="BZIP2_INCLUDE=$BZ2LIB_ROOT/include"
25  
26 < %if "%{?online_release:set}" != "set"
26 > %if "%cmsplatf" != "slc4onl_ia32_gcc346"
27   ZLIBR="ZLIB_LIBPATH=$ZLIB_ROOT/lib"
28   ZLIBI="ZLIB_INCLUDE=$ZLIB_ROOT/include"
29  
# Line 37 | Line 36 | bjam %makeprocesses -s$PR -s$PV -s$BZ2LI
36   %endif
37  
38   %install
39 +
40 + linkgccver=%(echo %gccver | tr -d . | perl -pe 's/^(\d\d).*/$1/')
41 +
42   boost_abi=$(echo %boostver | sed 's/^_//; s/_0$//')
43   case $(uname) in Darwin ) so=dylib ;; * ) so=so ;; esac
44   #no debug libs...
# Line 76 | Line 78 | perl -p -i -e "s|^#!.*python|/usr/bin/en
78   #(cd %i/lib; for f in lib*-$boost_abi.$so; do ln -s $f $f.%realversion ; done)
79   (cd %i/lib; for f in lib*-$boost_abi.$so.%{realversion}; do ln -s $f $(echo $f | sed "s/.%{realversion}$//"); done)
80   (cd %i/lib; for f in lib*-$boost_abi.$so.%{realversion}; do ln -s $f $(echo $f | sed "s/-$boost_abi//" | sed "s/.%{realversion}$//"); done)
81 < (cd %i/lib; for f in lib*-$boost_abi.$so.%{realversion}; do ln -s $f $(echo $f | sed "s/-$boost_abi//" | sed "s/.%{realversion}$//" | sed "s/gcc%{gccver}/gcc/"); done)
81 > (cd %i/lib; for f in lib*-$boost_abi.$so.%{realversion}; do ln -s $f $(echo $f | sed "s/-$boost_abi//" | sed "s/.%{realversion}$//" | sed "s/gcc$linkgccver/gcc/"); done)
82   #(cd %i/lib/debug; for f in lib*-d-$boost_abi.$so; do ln -s $f $(echo $f | sed "s/-d-$boost_abi//"); done)
83   #(cd %i/lib/debug; for f in lib*-d-$boost_abi.$so; do ln -s $f $f.%realversion; done)
84   (cd %i/lib/libs/python/pyste/install; python setup.py install --prefix=%i)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines