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.49 by lat, Sat Oct 31 21:48:38 2009 UTC vs.
Revision 1.52 by eulisse, Fri Feb 12 09:26:14 2010 UTC

# Line 1 | Line 1
1 < ### RPM external boost 1.40.0
1 > ### RPM external boost 1.42.0
2   %define boostver _%(echo %realversion | tr . _)
3   Source: http://internap.dl.sourceforge.net/sourceforge/%{n}/%{n}%{boostver}.tar.gz
4   %define closingbrace )
# Line 13 | Line 13 | Requires: zlib
13   %setup -n %{n}%{boostver}
14  
15   %build
16 # Note that some targets will fail to build (the test programs have
17 # missing symbols), causing darwin to fail to link and bjam to return
18 # an error.  So ignore the exit code from bjam on darwin to avoid
19 # RPM falsely detecting a problem.
16   PV="PYTHON_VERSION=$(echo $PYTHON_VERSION | sed 's/\.[0-9]*-.*$//')"
17   PR="PYTHON_ROOT=$PYTHON_ROOT"
18  
# Line 30 | Line 26 | ZLIBR="ZLIB_LIBPATH=$ZLIB_ROOT/lib"
26   ZLIBI="ZLIB_INCLUDE=$ZLIB_ROOT/include"
27  
28   case $(uname) in
29 <  Darwin )  bjam %makeprocesses -s$PR -s$PV -s$BZ2LIBR -s$ZLIBR -sTOOLS=darwin --toolset=darwin || true ;;
30 <  * )       bjam %makeprocesses -s$PR -s$PV -s$BZ2LIBR -s$ZLIBR -sTOOLS=gcc ;;
29 >  Darwin )  bjam %makeprocesses -s$PR -s$PV -s$BZ2LIBR -s$ZLIBR toolset=darwin stage;;
30 >  * )       bjam %makeprocesses -s$PR -s$PV -s$BZ2LIBR -s$ZLIBR toolset=gcc stage;;
31   esac
32   %else
33 < bjam %makeprocesses -s$PR -s$PV -s$BZ2LIBR -s$BZ2LIBI -sTOOLS=gcc
33 > bjam %makeprocesses -s$PR -s$PV -s$BZ2LIBR -s$BZ2LIBI toolset=gcc stage
34   %endif
35  
36   %install
37   case $(uname) in Darwin ) so=dylib ;; * ) so=so ;; esac
38 < #no debug libs...
39 < #mkdir -p %i/lib/debug
40 < mkdir %i/lib
41 < #(cd bin/boost; find libs -path "libs/*/debug/*.$so" -exec cp {} %i/lib/debug \;)
42 < # Perhaps the following could be done with a wildcard for the darwin/gcc dir
43 < case %cmsplatf in
44 <  osx*)
45 <    (cd bin.v2; find libs -path "libs/*/build/darwin*/release/*.$so*" -exec cp  {} %i/lib/. \;)
46 <    ;;
51 <  * )
52 <    (cd bin.v2; find libs -path "libs/*/build/gcc*/release/*.$so*" -exec cp  {} %i/lib/. \;)
53 <    ;;
54 < esac
55 <
56 < find boost -name '*.[hi]*' -print |
57 <  while read f; do
58 <    mkdir -p %i/include/$(dirname $f)
59 <    install -c $f %i/include/$f
60 <  done
61 < find libs -name '*.py' -print |
62 <  while read f; do
63 <    mkdir -p %i/lib/$(dirname $f)
64 <    install -c $f %i/lib/$f
65 <  done
66 <
67 < # Do all manipulation with files before creating symbolic links:
68 < perl -p -i -e "s|^#!.*python|/usr/bin/env python|" $(find %{i}/lib %{i}/bin)
69 < #strip %i/lib/*.$so
38 > mkdir -p %i/lib %i/include
39 > # copy files around in their final location.
40 > # We use tar to reduce the number of processes required
41 > # and because we need to build the build hierarchy for
42 > # the files that we are copying.
43 > pushd stage/lib
44 >  find . -name "*.$so*" -type f | tar cf - -T - | (cd %i/lib; tar xfp -)
45 > popd
46 > find boost -name '*.[hi]*' | tar cf - -T - | ( cd %i/include; tar xfp -)
47  
48   for l in `find %i/lib -name "*.$so.*"`
49   do
50    ln -s `basename $l` `echo $l | sed -e "s|[.]$so[.].*|.$so|"`
51   done
52  
53 < (cd %i/lib/libs/python/pyste/install; python setup.py install --prefix=%i)
53 > pushd libs/python/pyste/install
54 >  python setup.py install --prefix=%i
55 > popd
56 >
57 > # Do all manipulation with files before creating symbolic links:
58 > perl -p -i -e "s|^#!.*python|/usr/bin/env python|" $(find %{i}/lib %{i}/bin -type f)
59  
60   getLibName()
61   {
# Line 179 | Line 161 | cat << \EOF_TOOLFILE >%i/etc/scram.d/boo
161   </Tool>
162   EOF_TOOLFILE
163  
164 + # boost_header toolfile
165 + cat << \EOF_TOOLFILE >%i/etc/scram.d/boost_header
166 + <doc type=BuildSystem::ToolDoc version=1.0>
167 + <Tool name=boost_header version=%v>
168 + <info url="http://www.boost.org"></info>
169 + <Client>
170 + <Environment name=BOOSTHEADER_BASE default="%i"></Environment>
171 + <Environment name=INCLUDE default="$BOOSTHEADER_BASE/include"></Environment>
172 + </Client>
173 + </Tool>
174 + EOF_TOOLFILE
175 +
176 +
177   perl -p -i -e 's|\@([^@]*)\@|$ENV{$1}|g' %i/etc/scram.d/*
178  
179   %post
# Line 188 | Line 183 | perl -p -i -e 's|\@([^@]*)\@|$ENV{$1}|g'
183   %{relocateConfig}etc/scram.d/boost_python
184   %{relocateConfig}etc/scram.d/boost_regex
185   %{relocateConfig}etc/scram.d/boost_signals
186 + %{relocateConfig}etc/scram.d/boost_header

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines