1 |
|
### RPM external py-xmlrpc 0.8.8.2 |
2 |
< |
%define pythonv %(echo $PYTHON_VERSION | cut -d. -f 1,2) |
3 |
< |
%define pydir %(which python| python -c "import sys,os; version=sys.version[:3];path='/'+reduce(lambda x,y: x+y+'/',sys.stdin.readline().split('/')[:-2]);print path") |
2 |
> |
Requires: gcc-wrapper |
3 |
> |
%define pythonv $(echo $PYTHON_VERSION | cut -d. -f 1,2) |
4 |
> |
%define pydir $(which python| python -c "import sys,os; version=sys.version[:3];path='/'+reduce(lambda x,y: x+y+'/',sys.stdin.readline().split('/')[:-2]);print path") |
5 |
|
%define bindir %pydir/bin |
6 |
|
%define sitedir %pydir/lib/python%pythonv/site-packages |
7 |
|
## INITENV +PATH PYTHONPATH %{i}/lib/python%pythonv/site-packages |
25 |
|
%patch1 -p0 |
26 |
|
|
27 |
|
%build |
28 |
+ |
## IMPORT gcc-wrapper |
29 |
|
export CFLAGS="-I%pydir/include/" |
30 |
|
python setup.py build |
31 |
|
|