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