ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/mod_python.spec
(Generate patch)

Comparing COMP/CMSDIST/mod_python.spec (file contents):
Revision 1.7 by ratnik, Wed Apr 18 23:46:01 2007 UTC vs.
Revision 1.9 by egeland, Mon Feb 25 15:54:10 2008 UTC

# Line 1 | Line 1
1 < ### RPM external mod_python 3.2.8
2 < Requires: gcc-wrapper
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)
5 < ## INITENV +PATH PYTHONPATH %{i}/lib/python%{pythonv}
6 < ## INITENV CMD ln -sf $MOD_PYTHON_ROOT/lib/mod_python.so $APACHE_ROOT/modules
4 > Requires:  apache2 python
5  
6 < Source: http://apache.osuosl.org/httpd/modpython/%{n}-%{v}.tgz
9 < 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
13 < ## IMPORT gcc-wrapper
14 < ./configure --prefix=%{i} \
15 <            --with-python=$PYTHON_ROOT/bin/python \
16 <            --with-apxs=$APACHE_ROOT/bin/apxs
17 <
18 < make
19 <
20 < cd dist
21 < 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
24
25 mkdir -p %i/lib
26 cp src/mod_python.so %i/lib
27
28 cd dist
29 python setup.py install --prefix=%i
30
31 mv %{i}/lib/python%{pythonv}/site-packages/mod_python \
32  %{i}/lib/python%{pythonv}
33
34 rm -rf %{i}/lib/python%{pythonv}/site-packages
35

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines