1 |
|
### RPM external boost 1.33.1 |
2 |
– |
Requires: gcc-wrapper |
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 . _) |
11 |
|
#%patch |
12 |
|
|
13 |
|
%build |
15 |
– |
## IMPORT gcc-wrapper |
14 |
|
# Note that some targets will fail to build (the test programs have |
15 |
|
# missing symbols), causing darwin to fail to link and bjam to return |
16 |
|
# an error. So ignore the exit code from bjam on darwin to avoid |
48 |
|
install_name_tool -id $f $f |
49 |
|
done |
50 |
|
|
51 |
+ |
|
52 |
+ |
# Do all manipulation with files before creating symbolic links: |
53 |
+ |
perl -p -i -e "s|^#!.*python|/usr/bin/env python|" $(find %{i}/lib %{i}/bin) |
54 |
+ |
strip %i/lib/*.$so %i/lib/debug/*.$so |
55 |
+ |
|
56 |
|
(cd %i/lib; for f in lib*-$boost_abi.$so; do ln -s $f $(echo $f | sed "s/-$boost_abi//"); done) |
57 |
|
(cd %i/lib; for f in lib*-$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 $(echo $f | sed "s/-d-$boost_abi//"); done) |
59 |
|
(cd %i/lib/debug; for f in lib*-d-$boost_abi.$so; do ln -s $f $f.%v; done) |
60 |
|
(cd %i/lib/libs/python/pyste/install; python setup.py install --prefix=%i) |
61 |
|
|
59 |
– |
perl -p -i -e "s|^#!.*python|/usr/bin/env python|" $(find %{i}/lib %{i}/bin) |
60 |
– |
|
61 |
– |
# |
62 |
– |
# |