|
|
|
@ -32,7 +32,7 @@ Class: EVAL
|
|
|
|
|
Group: Web |
|
|
|
|
License: Apache |
|
|
|
|
Version: 3.3.1 |
|
|
|
|
Release: 20100725 |
|
|
|
|
Release: 20101212 |
|
|
|
|
|
|
|
|
|
# list of sources |
|
|
|
|
Source0: http://www.apache.org/dist/httpd/modpython/mod_python-%{version}.tgz |
|
|
|
@ -65,10 +65,16 @@ PreReq: apache, python
|
|
|
|
|
%patch -p0 |
|
|
|
|
|
|
|
|
|
%build |
|
|
|
|
CC="%{l_cc}" \ |
|
|
|
|
CFLAGS="%{l_cflags -O}" \ |
|
|
|
|
CPPFLAGS="%{l_cppflags}" \ |
|
|
|
|
LDFLAGS="%{l_ldflags}" \ |
|
|
|
|
export CC="%{l_cc}" |
|
|
|
|
export CFLAGS="%{l_cflags -O}" |
|
|
|
|
export CPPFLAGS="%{l_cppflags}" |
|
|
|
|
export LDFLAGS="%{l_ldflags}" |
|
|
|
|
case "%{l_platform -t}" in |
|
|
|
|
*-freebsd* ) |
|
|
|
|
CFLAGS="$CFLAGS -pthread" |
|
|
|
|
LDFLAGS="$LDFLAGS -pthread -lpthread" |
|
|
|
|
;; |
|
|
|
|
esac |
|
|
|
|
./configure \ |
|
|
|
|
--prefix=%{l_prefix} \ |
|
|
|
|
--with-apxs=%{l_prefix}/sbin/apxs \ |
|
|
|
|