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.9 by eulisse, Thu Jul 6 13:08:38 2006 UTC vs.
Revision 1.19 by ratnik, Mon Jul 23 19:47:18 2007 UTC

# Line 1 | Line 1
1 < ### RPM external boost 1.33.1
1 > ### RPM external boost 1.33.1-CMS3
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 . _)
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 16 | Line 13 | Source: http://dl.sourceforge.net/source
13   # an error.  So ignore the exit code from bjam on darwin to avoid
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="BZ2LIB_LIBPATH=$BZ2LIB_ROOT/lib"
16 > #PV="PYTHON_VERSION=$(echo $PYTHON_VERSION | sed 's/\.[0-9]*$//')"
17 > # The following line assumes a version of the form x.y.z-XXXX, where the
18 > # "-XXXX" part represents some CMS rebuild of version x.y.z
19 > PV="PYTHON_VERSION=$(echo $PYTHON_VERSION | sed 's/\.[0-9]*-.*$//')"
20 > BZ2LIBR="BZIP2_LIBPATH=$BZ2LIB_ROOT/lib"
21   ZLIBR="ZLIB_LIBPATH=$ZLIB_ROOT/lib"
22 < BZ2LIBI="BZ2LIB_INCLUDE=$BZ2LIB_ROOT/include"
22 > BZ2LIBI="BZIP2_INCLUDE=$BZ2LIB_ROOT/include"
23   ZLIBI="ZLIB_INCLUDE=$ZLIB_ROOT/include"
24  
25   case $(uname) in
# Line 48 | Line 48 | find libs -name '*.py' -print |
48      install_name_tool -id $f $f
49    done
50  
51 + # Do all manipulation with files before creating symbolic links:
52 + perl -p -i -e "s|^#!.*python|/usr/bin/env python|" $(find %{i}/lib %{i}/bin)
53 + strip %i/lib/*.$so %i/lib/debug/*.$so
54 +
55   (cd %i/lib; for f in lib*-$boost_abi.$so; do ln -s $f $(echo $f | sed "s/-$boost_abi//"); done)
56 < (cd %i/lib; for f in lib*-$boost_abi.$so; do ln -s $f $f.%v ; done)
56 > (cd %i/lib; for f in lib*-$boost_abi.$so; do ln -s $f $f.%realversion ; done)
57   (cd %i/lib/debug; for f in lib*-d-$boost_abi.$so; do ln -s $f $(echo $f | sed "s/-d-$boost_abi//"); done)
58 < (cd %i/lib/debug; for f in lib*-d-$boost_abi.$so; do ln -s $f $f.%v; done)
58 > (cd %i/lib/debug; for f in lib*-d-$boost_abi.$so; do ln -s $f $f.%realversion; done)
59   (cd %i/lib/libs/python/pyste/install; python setup.py install --prefix=%i)
60  
57 perl -p -i -e "s|^#!.*python|/usr/bin/env python|" $(find %{i}/lib %{i}/bin)
58
59 #
60 #

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines