1 |
< |
### RPM external boost 1.33.1-CMS9onl |
2 |
< |
# Patches and build fudging by Lassi A. Tuura <lat@iki.fi> (FIXME: contribute to boost) |
1 |
> |
### RPM external boost 1.34.1-CMS18 |
2 |
|
%define boostver _%(echo %realversion | tr . _) |
3 |
< |
Source: http://dl.sourceforge.net/sourceforge/%n/%{n}%{boostver}.tar.gz |
3 |
> |
%define gccver %(echo $GCC_VERSION | cut -d. -f1,2 | sed -e 's/\.//') |
4 |
> |
Source: http://internap.dl.sourceforge.net/sourceforge/%{n}/%{n}%{boostver}.tar.gz |
5 |
|
|
6 |
|
Requires: boost-build python bz2lib |
7 |
|
%if "%{?online_release:set}" != "set" |
43 |
|
#mkdir -p %i/lib/debug |
44 |
|
mkdir %i/lib |
45 |
|
#(cd bin/boost; find libs -path "libs/*/debug/*.$so" -exec cp {} %i/lib/debug \;) |
46 |
< |
(cd bin/boost; find libs -path "libs/*/release/*.$so" -exec cp {} %i/lib/. \;) |
46 |
> |
(cd bin.v2; find libs -path "libs/*/build/gcc*/release/*.$so*" -exec cp {} %i/lib/. \;) |
47 |
|
find boost -name '*.[hi]*' -print | |
48 |
|
while read f; do |
49 |
|
mkdir -p %i/include/$(dirname $f) |
63 |
|
perl -p -i -e "s|^#!.*python|/usr/bin/env python|" $(find %{i}/lib %{i}/bin) |
64 |
|
strip %i/lib/*.$so |
65 |
|
|
66 |
< |
(cd %i/lib; for f in lib*-$boost_abi.$so; do ln -s $f $(echo $f | sed "s/-$boost_abi//"); done) |
67 |
< |
(cd %i/lib; for f in lib*-$boost_abi.$so; do ln -s $f $f.%realversion ; done) |
66 |
> |
|
67 |
> |
#(cd %i/lib; for f in lib*-$boost_abi.$so; do ln -s $f $(echo $f | sed "s/-$boost_abi//"); done) |
68 |
> |
#(cd %i/lib; for f in lib*-$boost_abi.$so; do ln -s $f $f.%realversion ; done) |
69 |
> |
(cd %i/lib; for f in lib*-$boost_abi.$so.%{realversion}; do ln -s $f $(echo $f | sed "s/.%{realversion}$//"); done) |
70 |
> |
(cd %i/lib; for f in lib*-$boost_abi.$so.%{realversion}; do ln -s $f $(echo $f | sed "s/-$boost_abi//" | sed "s/.%{realversion}$//"); done) |
71 |
> |
(cd %i/lib; for f in lib*-$boost_abi.$so.%{realversion}; do ln -s $f $(echo $f | sed "s/-$boost_abi//" | sed "s/.%{realversion}$//" | sed "s/gcc%{gccver}/gcc/"); done) |
72 |
|
#(cd %i/lib/debug; for f in lib*-d-$boost_abi.$so; do ln -s $f $(echo $f | sed "s/-d-$boost_abi//"); done) |
73 |
|
#(cd %i/lib/debug; for f in lib*-d-$boost_abi.$so; do ln -s $f $f.%realversion; done) |
74 |
|
(cd %i/lib/libs/python/pyste/install; python setup.py install --prefix=%i) |