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.13 by elmer, Tue May 22 10:24:07 2007 UTC

# Line 1 | Line 1
1 < ### RPM external boost 1.33.1
1 > ### RPM external boost 1.33.1-XXXX
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
3 > %define boostver _%(echo %realversion | tr . _)
4 > Requires: boost-build python bz2lib zlib
5   Source: http://dl.sourceforge.net/sourceforge/%n/%{n}%{boostver}.tar.gz
7 #Patch: boost
6  
7   %prep
8   %setup -n %{n}%{boostver}
11 #%patch
9  
10   %build
11   # Note that some targets will fail to build (the test programs have
# Line 17 | Line 14 | Source: http://dl.sourceforge.net/source
14   # RPM falsely detecting a problem.
15   PR="PYTHON_ROOT=$PYTHON_ROOT"
16   PV="PYTHON_VERSION=$(echo $PYTHON_VERSION | sed 's/\.[0-9]*$//')"
17 + BZ2LIBR="BZIP2_LIBPATH=$BZ2LIB_ROOT/lib"
18 + ZLIBR="ZLIB_LIBPATH=$ZLIB_ROOT/lib"
19 + BZ2LIBI="BZIP2_INCLUDE=$BZ2LIB_ROOT/include"
20 + ZLIBI="ZLIB_INCLUDE=$ZLIB_ROOT/include"
21 +
22   case $(uname) in
23 <  Darwin )  bjam -s$PR -s$PV -sTOOLS=darwin || true ;;
24 <  * )       bjam -s$PR -s$PV -sTOOLS=gcc ;;
23 >  Darwin )  bjam -s$PR -s$PV -s$BZ2LIBR -s$ZLIBR -sTOOLS=darwin || true ;;
24 >  * )       bjam -s$PR -s$PV -s$BZ2LIBR -s$ZLIBR -sTOOLS=gcc ;;
25   esac
26  
27   %install
# Line 44 | Line 46 | find libs -name '*.py' -print |
46    done
47  
48   (cd %i/lib; for f in lib*-$boost_abi.$so; do ln -s $f $(echo $f | sed "s/-$boost_abi//"); done)
49 < (cd %i/lib; for f in lib*-$boost_abi.$so; do ln -s $f $f.%v ; done)
49 > (cd %i/lib; for f in lib*-$boost_abi.$so; do ln -s $f $f.%realversion ; done)
50   (cd %i/lib/debug; for f in lib*-d-$boost_abi.$so; do ln -s $f $(echo $f | sed "s/-d-$boost_abi//"); done)
51 < (cd %i/lib/debug; for f in lib*-d-$boost_abi.$so; do ln -s $f $f.%v; done)
51 > (cd %i/lib/debug; for f in lib*-d-$boost_abi.$so; do ln -s $f $f.%realversion; done)
52   (cd %i/lib/libs/python/pyste/install; python setup.py install --prefix=%i)
53 +
54 + perl -p -i -e "s|^#!.*python|/usr/bin/env python|" $(find %{i}/lib %{i}/bin)
55 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines