Revision: | 1.10 |
Committed: | Mon Feb 25 19:04:38 2008 UTC (17 years, 2 months ago) by egeland |
Branch: | MAIN |
CVS Tags: | ge20080226 |
Changes since 1.9: | +19 -1 lines |
Log Message: | actually make and install the thing... |
# | User | Rev | Content |
---|---|---|---|
1 | egeland | 1.9 | ### RPM external mod_python 3.2.10 |
2 | # See http://www.modpython.org/live/current/doc-html/installation.html | ||
3 | steen | 1.4 | |
4 | egeland | 1.9 | Requires: apache2 python |
5 | steen | 1.4 | |
6 | egeland | 1.9 | Source0: http://apache.mirror.testserver.li/httpd/modpython/mod_python-%realversion.tgz |
7 | steen | 1.4 | |
8 | egeland | 1.10 | %prep |
9 | egeland | 1.9 | %setup -n mod_python-%realversion |
10 | |||
11 | ./configure --with-python=$PYTHON_ROOT/bin/python --with-apxs=$APACHE2_ROOT/bin/apxs --with-max-locks=32 | ||
12 | steen | 1.4 | |
13 | eulisse | 1.1 | %build |
14 | egeland | 1.10 | make |
15 | |||
16 | steen | 1.2 | %install |
17 | egeland | 1.10 | make install |
18 | |||
19 | mkdir -p %i/conf | ||
20 | cat << \EOF > %i/conf/mod_python.conf | ||
21 | LoadModule mod_python %i/modules/mod_python.so | ||
22 | # Additional configuration bits go here. | ||
23 | EOF | ||
24 | |||
25 | # By default mod_python.so and is moved to the | ||
26 | # $APACHE2_ROOT/modules directory, which | ||
27 | # is bad for us handling multiple versions in a rpm. | ||
28 | mkdir -p %i/modules | ||
29 | mv $APACHE2_ROOT/modules/mod_python.so %i/modules | ||
30 | |||
31 | %post | ||
32 | %{relocateConfig}conf/mod_python.conf |