1 |
< |
### RPM external boost 1.33.1 |
1 |
> |
### RPM external boost 1.33.1-lite |
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 . _) |
5 |
< |
Requires: boost-build python |
4 |
> |
%define realversion %(echo %v | cut -d- -f1) |
5 |
> |
%define boostver _%(echo %{realversion} | tr . _) |
6 |
> |
Requires: boost-build python bz2lib zlib |
7 |
|
Source: http://dl.sourceforge.net/sourceforge/%n/%{n}%{boostver}.tar.gz |
8 |
|
#Patch: boost |
9 |
|
|
18 |
|
# RPM falsely detecting a problem. |
19 |
|
PR="PYTHON_ROOT=$PYTHON_ROOT" |
20 |
|
PV="PYTHON_VERSION=$(echo $PYTHON_VERSION | sed 's/\.[0-9]*$//')" |
21 |
+ |
BZ2LIBR="BZ2LIB_LIBPATH=$BZ2LIB_ROOT/lib" |
22 |
+ |
ZLIBR="ZLIB_LIBPATH=$ZLIB_ROOT/lib" |
23 |
+ |
BZ2LIBI="BZ2LIB_INCLUDE=$BZ2LIB_ROOT/include" |
24 |
+ |
ZLIBI="ZLIB_INCLUDE=$ZLIB_ROOT/include" |
25 |
+ |
|
26 |
|
case $(uname) in |
27 |
< |
Darwin ) bjam -s$PR -s$PV -sTOOLS=darwin || true ;; |
28 |
< |
* ) bjam -s$PR -s$PV -sTOOLS=gcc ;; |
27 |
> |
Darwin ) bjam -s$PR -s$PV -s$BZ2LIBR -s$ZLIBR -sTOOLS=darwin || true ;; |
28 |
> |
* ) bjam -s$PR -s$PV -s$BZ2LIBR -s$ZLIBR -sTOOLS=gcc ;; |
29 |
|
esac |
30 |
|
|
31 |
|
%install |
49 |
|
install_name_tool -id $f $f |
50 |
|
done |
51 |
|
|
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 %i/lib/debug/*.$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.%v ; 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.%v; 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 |
+ |
|