version 2.6.4, update build/install procedure apache-mod_python-2_6_4-1
authorArtur Frysiak <artur@frysiak.net>
Wed, 13 Dec 2000 11:20:14 +0000 (11:20 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache-mod_python.spec -> 1.9

apache-mod_python.spec

index 2975b0a702e9d66f91a9bf2f159ed6294560972f..069363e3f8d52e4be9b9aeb3ea40a56cffee8346 100644 (file)
@@ -1,12 +1,14 @@
 %define                mod_name        python
 Summary:       A Python for the Apache Web server
 Name:          apache-mod_%{mod_name}
-Version:       2.4.1
+Version:       2.6.4
 Release:       1
 License:       distributable
 Group:         Networking/Daemons
 Group(pl):     Sieciowe/Serwery
 Source:                http://www.modpython.org/dist/mod_%{mod_name}-%{version}.tgz
+Patch0:                apache-mod_python-shared.patch
+Patch1:                apache-mod_python-DESTDIR.patch
 URL:           http://www.modpython.org/
 Requires:      apache
 Requires:      python 
@@ -31,37 +33,21 @@ NOTE: This versions should still be considered Beta
 
 %prep 
 %setup -q -n mod_%{mod_name}-%{version}
+%patch0 -p1
+%patch1 -p1
 
 %build
-python %{python_libdir}/compileall.py lib/python/mod_python/
-
-LDFLAGS=
-# RH  
-if [ -f %{python_libdir}/config/libpython%{python_version}.a ]; then 
-       LDFLAGS="$LDFLAGS -L%{python_libdir}/config/ -lpython%{python_version}"
-# PLD 
-else  
-       LDFLAGS="$LDFLAGS -lpython"
-fi  
-if ldd %{python_prefix}/bin/python | grep libpthread >/dev/null; then 
-        LDFLAGS="$LDFLAGS -lpthread"
-fi 
-
-cd src
-/usr/sbin/apxs -I%{python_includedir} $LDFLAGS -o mod_%{mod_name}.so -c mod_%{mod_name}.c
-cd ..
-gzip -9nf README COPYRIGHT NEWS CREDITS
+autoconf
+%{configure} --with-apxs=/usr/sbin/apxs
+%{__make} dso
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{apache_moddir},%{python_sitedir}/mod_%{mod_name}}
 
-install src/mod_%{mod_name}.so $RPM_BUILD_ROOT%{apache_moddir}
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
 
-strip --strip-unneeded $RPM_BUILD_ROOT%{apache_moddir}/* 
-
-install lib/python/mod_python/* $RPM_BUILD_ROOT%{python_sitedir}/mod_%{mod_name}
+gzip -9nf README COPYRIGHT NEWS CREDITS
 
 %post
 /usr/sbin/apxs -e -a -n %{mod_name} %{apache_moddir}/mod_%{mod_name}.so 1>&2
This page took 0.036987 seconds and 4 git commands to generate.