1 |
< |
### RPM external boost 1.32.0 |
1 |
> |
### RPM external boost 1.33.1 |
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 . _) |
23 |
|
esac |
24 |
|
|
25 |
|
%install |
26 |
< |
boost_abi=$(echo %boostver | sed 's/^_//; s/_[0-9]*$//') |
26 |
> |
boost_abi=$(echo %boostver | sed 's/^_//; s/_0$//') |
27 |
|
case $(uname) in Darwin ) so=dylib ;; * ) so=so ;; esac |
28 |
|
mkdir -p %i/lib/debug |
29 |
|
(cd bin/boost; find libs -path "libs/*/debug/*.$so" -exec cp {} %i/lib/debug \;) |
42 |
|
for f in %i/lib/*.$so %i/lib/debug/*.$so; do |
43 |
|
install_name_tool -id $f $f |
44 |
|
done |
45 |
+ |
|
46 |
|
(cd %i/lib; for f in lib*-$boost_abi.$so; do ln -s $f $(echo $f | sed "s/-$boost_abi//"); done) |
47 |
|
(cd %i/lib; for f in lib*-$boost_abi.$so; do ln -s $f $f.%v ; done) |
48 |
|
(cd %i/lib/debug; for f in lib*-d-$boost_abi.$so; do ln -s $f $(echo $f | sed "s/-d-$boost_abi//"); done) |