LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File apache2-mod_wsgi.spec of Package apache2-mod_wsgi (Project Apache:Modules)

# spec file for package apache2-mod_wsgi
# Copyright (c) 2012 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 http://bugs.opensuse.org/

Name:           apache2-mod_wsgi
Version:        3.3
Release:        0
Summary:        Python WSGI adapter module for Apache
License:        Apache-2.0
Group:          Productivity/Networking/Web/Servers
Url:            http://code.google.com/p/modwsgi/
Source:         http://modwsgi.googlecode.com/files/mod_wsgi-%{version}.tar.gz
%define tarname mod_wsgi
%define apxs /usr/sbin/apxs2
%define apache_libexecdir %(%{apxs} -q LIBEXECDIR)
BuildRequires:  apache2-devel
BuildRequires:  python-devel
Requires:       apache2
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.

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

%configure \
    --with-apxs="%{apxs}-prefork" \
make %{?_smp_mflags}

mkdir -p %{buildroot}/%{apache_libexecdir}
cp -p .libs/mod_wsgi.so %{buildroot}/%{apache_libexecdir}

%dir %{apache_libexecdir}