File apache2-mod_wsgi.spec of Package apache2-mod_wsgi

# spec file for package apache2-mod_wsgi
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

# norootforbuild

Name:           apache2-mod_wsgi
%define tarname mod_wsgi
%define apxs /usr/sbin/apxs2
%define apache_libexecdir %(%{apxs} -q LIBEXECDIR)
BuildRequires:  apache2-devel python-devel
License:        Apache License 2.0
Group:          Productivity/Networking/Web/Servers
Version:        3.3
Release:        1
Summary:        Python WSGI adapter module for Apache
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

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. 

    Graham Dumpleton 

%setup -n %{tarname}-%{version}

%configure \
    --with-apxs="%{apxs}-prefork" \
%__make %{?jobs:-j%{jobs}}

mkdir -p $RPM_BUILD_ROOT/%{apache_libexecdir}
cp -p .libs/ $RPM_BUILD_ROOT/%{apache_libexecdir}

rm -rf "$RPM_BUILD_ROOT"

%dir %{apache_libexecdir}