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.13 by elmer, Tue May 22 10:24:07 2007 UTC vs.
Revision 1.20 by dlange, Fri Aug 24 20:35:00 2007 UTC

# Line 1 | Line 1
1 < ### RPM external boost 1.33.1-XXXX
1 > ### RPM external boost 1.33.1-CMS4
2   # Patches and build fudging by Lassi A. Tuura <lat@iki.fi> (FIXME: contribute to boost)
3   %define boostver _%(echo %realversion | tr . _)
4   Requires: boost-build python bz2lib zlib
# Line 13 | 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]*$//')"
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="BZIP2_INCLUDE=$BZ2LIB_ROOT/include"
# Line 27 | Line 30 | esac
30   %install
31   boost_abi=$(echo %boostver | sed 's/^_//; s/_0$//')
32   case $(uname) in Darwin ) so=dylib ;; * ) so=so ;; esac
33 < mkdir -p %i/lib/debug
34 < (cd bin/boost; find libs -path "libs/*/debug/*.$so" -exec cp {} %i/lib/debug \;)
35 < (cd bin/boost; find libs -path "libs/*/release/*.$so" -exec cp {} %i/lib \;)
33 > #no debug libs...
34 > #mkdir -p %i/lib/debug
35 > mkdir %i/lib
36 > #(cd bin/boost; find libs -path "libs/*/debug/*.$so" -exec cp {} %i/lib/debug \;)
37 > (cd bin/boost; find libs -path "libs/*/release/*.$so" -exec cp  {} %i/lib/. \;)
38   find boost -name '*.[hi]*' -print |
39    while read f; do
40      mkdir -p %i/include/$(dirname $f)
# Line 45 | Line 50 | find libs -name '*.py' -print |
50      install_name_tool -id $f $f
51    done
52  
53 + # Do all manipulation with files before creating symbolic links:
54 + perl -p -i -e "s|^#!.*python|/usr/bin/env python|" $(find %{i}/lib %{i}/bin)
55 + strip %i/lib/*.$so
56 +
57   (cd %i/lib; for f in lib*-$boost_abi.$so; do ln -s $f $(echo $f | sed "s/-$boost_abi//"); done)
58   (cd %i/lib; for f in lib*-$boost_abi.$so; do ln -s $f $f.%realversion ; done)
59 < (cd %i/lib/debug; for f in lib*-d-$boost_abi.$so; do ln -s $f $(echo $f | sed "s/-d-$boost_abi//"); done)
60 < (cd %i/lib/debug; for f in lib*-d-$boost_abi.$so; do ln -s $f $f.%realversion; done)
59 > #(cd %i/lib/debug; for f in lib*-d-$boost_abi.$so; do ln -s $f $(echo $f | sed "s/-d-$boost_abi//"); done)
60 > #(cd %i/lib/debug; for f in lib*-d-$boost_abi.$so; do ln -s $f $f.%realversion; done)
61   (cd %i/lib/libs/python/pyste/install; python setup.py install --prefix=%i)
62  
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