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 http://bugs.opensuse.org/
#
Name: apache2-mod_wsgi
%define tarname mod_wsgi
%define apxs /usr/sbin/apxs2
%define apache_libexecdir %(%{apxs} -q LIBEXECDIR)
BuildRequires: apache2-devel
BuildRequires: python-devel
Url: http://code.google.com/p/modwsgi/
Version: 3.3
Release: 0
Summary: Python WSGI adapter module for Apache
License: Apache-2.0
Group: Productivity/Networking/Web/Servers
Source: http://modwsgi.googlecode.com/files/mod_wsgi-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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 %{tarname}-%{version}
%build
%configure \
--with-apxs="%{apxs}-prefork" \
--with-python="%__python"
make %{?_smp_mflags}
%install
mkdir -p $RPM_BUILD_ROOT/%{apache_libexecdir}
cp -p .libs/mod_wsgi.so $RPM_BUILD_ROOT/%{apache_libexecdir}
%files
%defattr(-,root,root)
%doc LICENCE README
%dir %{apache_libexecdir}
%{apache_libexecdir}/mod_wsgi.so
%changelog