File dba-apache2-mod_wsgi-34.spec of Package dba-apache2-mod_wsgi-34
%define vers 34
%define real_vers 3.4
%define prefix /DBA/apache/WWW/2.2.x
%define apavers 2.2.24
%define apapack 2224
%define apahome /DBA/apache/WWW/%{apavers}
%define apxs %{apahome}/bin/apxs
%define apache2_sysconfdir %(%{apxs} -q SYSCONFDIR)
%define apache2_libexecdir %(%{apxs} -q LIBEXECDIR)
%define apache2_mmn %(MMN=$(%{apxs} -q LIBEXECDIR)_MMN; test -x $MMN && $MMN)
%define apache2_cflags %(%{apxs} -q CFLAGS)
%define modname mod_wsgi
%define tarballname %{modname}-%{real_vers}
Name: dba-apache2-mod_wsgi-%{vers}
Summary: Python WSGI adapter module for Apache
Version: %{real_vers}
Release: 1
License: Apache-2.0
Url: http://code.google.com/p/modwsgi/
Source0: http://modwsgi.googlecode.com/files/mod_wsgi-%{real_vers}.tar.gz
Group: Productivity/Networking/Web/Servers
BuildRoot: %{_tmppath}/%{name}-%{real_vers}-build
BuildRequires: dba-apache-%{apapack}
Requires: dba-apache-base
BuildRequires: gcc-c++
#!BuildIgnore: dba-openssl-098o dba-openssl-098r
BuildRequires: python-devel
%if 0%{?suse_version}
BuildRequires: libapr-util1-devel >= 1.3 libapr1-devel >= 1.3
%else
BuildRequires: apr-util-devel apr-devel
%endif
%if 0%{?suse_version} >= 1110
BuildRequires: -post-build-checks
%endif
%description
The aim of mod_wsgi is to implement a simple to use Apache module which can
host any Python application which supports the Python WSGI interface.
%prep
%setup -n %{modname}-%{real_vers}
%build
export APXS=%{apxs}
./configure --with-apxs=%{apxs} --with-python="python"
%{__make}
%install
%{__mkdir_p} %{buildroot}%{prefix}/modules
install -m 755 .libs/%{modname}.so %{buildroot}%{prefix}/modules/%{modname}-%{version}.so
%post
cd %{prefix}/modules
%{__ln_s} -f %{modname}-%{version}.so %{modname}.so
%clean
%{__rm} -rf %{buildroot};
%files
%defattr(-,root,root,-)
%{prefix}/modules/%{modname}-%{version}.so
%changelog