1 |
< |
### RPM external mod_python 3.2.8 |
1 |
> |
### RPM external mod_python 3.2.10 |
2 |
> |
# See http://www.modpython.org/live/current/doc-html/installation.html |
3 |
|
|
4 |
< |
%define pythonv %(echo $PYTHON_VERSION | cut -d. -f 1,2) |
4 |
< |
## INITENV +PATH PYTHONPATH %{i}/lib/python%{pythonv} |
5 |
< |
## INITENV CMD ln -sf $MOD_PYTHON_ROOT/lib/mod_python.so $APACHE_ROOT/modules |
4 |
> |
Requires: apache2 python |
5 |
|
|
6 |
< |
Source: http://apache.mirror.testserver.li/httpd/modpython/%{n}-%{v}.tgz |
8 |
< |
Requires: python apache |
6 |
> |
Source0: http://apache.mirror.testserver.li/httpd/modpython/mod_python-%realversion.tgz |
7 |
|
|
8 |
+ |
%pre |
9 |
+ |
%setup -n mod_python-%realversion |
10 |
|
|
11 |
< |
%build |
12 |
< |
./configure --prefix=%{i} \ |
13 |
< |
--with-python=$PYTHON_ROOT/bin/python \ |
14 |
< |
--with-apxs=$APACHE_ROOT/bin/apxs |
15 |
< |
|
16 |
< |
make |
17 |
< |
|
18 |
< |
cd dist |
19 |
< |
python setup.py build |
11 |
> |
./configure --with-python=$PYTHON_ROOT/bin/python --with-apxs=$APACHE2_ROOT/bin/apxs --with-max-locks=32 |
12 |
|
|
13 |
+ |
%build |
14 |
|
%install |
22 |
– |
|
23 |
– |
mkdir -p %i/lib |
24 |
– |
cp src/mod_python.so %i/lib |
25 |
– |
|
26 |
– |
cd dist |
27 |
– |
python setup.py install --prefix=%i |
28 |
– |
|
29 |
– |
mv %{i}/lib/python%{pythonv}/site-packages/mod_python \ |
30 |
– |
%{i}/lib/python%{pythonv} |
31 |
– |
|
32 |
– |
rm -rf %{i}/lib/python%{pythonv}/site-packages |
33 |
– |
|