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.7 by eulisse, Thu Apr 13 23:35:14 2006 UTC vs.
Revision 1.8 by eulisse, Fri Apr 28 14:52:36 2006 UTC

# Line 2 | Line 2
2   # Patches and build fudging by Lassi A. Tuura <lat@iki.fi> (FIXME: contribute to boost)
3   # define boostver -%v <-- for 1.30.2
4   %define boostver _%(echo %v | tr . _)
5 < Requires: boost-build python
5 > Requires: boost-build python bz2lib zlib
6   Source: http://dl.sourceforge.net/sourceforge/%n/%{n}%{boostver}.tar.gz
7   #Patch: boost
8  
# Line 17 | Line 17 | Source: http://dl.sourceforge.net/source
17   # RPM falsely detecting a problem.
18   PR="PYTHON_ROOT=$PYTHON_ROOT"
19   PV="PYTHON_VERSION=$(echo $PYTHON_VERSION | sed 's/\.[0-9]*$//')"
20 + BZ2LIBR="BZ2LIB_LIBPATH=$BZ2LIB_ROOT/lib"
21 + ZLIBR="ZLIB_LIBPATH=$ZLIB_ROOT/lib"
22 + BZ2LIBI="BZ2LIB_INCLUDE=$BZ2LIB_ROOT/include"
23 + ZLIBI="ZLIB_INCLUDE=$ZLIB_ROOT/include"
24 +
25   case $(uname) in
26 <  Darwin )  bjam -s$PR -s$PV -sTOOLS=darwin || true ;;
27 <  * )       bjam -s$PR -s$PV -sTOOLS=gcc ;;
26 >  Darwin )  bjam -s$PR -s$PV -s$BZ2LIBR -s$ZLIBR -sTOOLS=darwin || true ;;
27 >  * )       bjam -s$PR -s$PV -s$BZ2LIBR -s$ZLIBR -sTOOLS=gcc ;;
28   esac
29  
30   %install
# Line 48 | Line 53 | find libs -name '*.py' -print |
53   (cd %i/lib/debug; for f in lib*-d-$boost_abi.$so; do ln -s $f $(echo $f | sed "s/-d-$boost_abi//"); done)
54   (cd %i/lib/debug; for f in lib*-d-$boost_abi.$so; do ln -s $f $f.%v; done)
55   (cd %i/lib/libs/python/pyste/install; python setup.py install --prefix=%i)
56 +
57 + perl -p -i -e "s|^#!.*python|/usr/bin/env python|" $(find %{i}/lib %{i}/bin)
58 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines