1 |
< |
### RPM external cherrypy 2.2.1 |
2 |
< |
%define pythonv %(echo $PYTHON_VERSION |cut -d. -f1,2) |
1 |
> |
### RPM external cherrypy 3.0.1 |
2 |
> |
Requires: gcc-wrapper |
3 |
> |
%define pythonv `echo $PYTHON_VERSION |cut -d. -f1,2` |
4 |
|
## INITENV +PATH PYTHONPATH %i/lib/python%{pythonv}/site-packages |
5 |
< |
Source: http://switch.dl.sourceforge.net/sourceforge/%n/CherryPy-%v.tar.gz |
5 |
> |
|
6 |
> |
# use line below for version 2.2.1 |
7 |
> |
#Source: http://switch.dl.sourceforge.net/sourceforge/%n/CherryPy-%v.tar.gz |
8 |
> |
|
9 |
> |
# this is where cherrypy version 3 is located |
10 |
> |
Source: http://download.cherrypy.org/cherrypy/%v/CherryPy-%v.tar.gz |
11 |
|
Requires: python |
12 |
|
|
13 |
|
%prep |
14 |
|
%setup -n CherryPy-%v |
15 |
|
%build |
16 |
+ |
## IMPORT gcc-wrapper |
17 |
|
%install |
18 |
|
python setup.py install --prefix=%i |