From cbea973cd88113b33883db55f097749f1b0c5a31 Mon Sep 17 00:00:00 2001 From: jbowes Date: Jan 06 2008 00:29:22 +0000 Subject: Add mod_wsgi for F-8 --- diff --git a/mod_wsgi.spec b/mod_wsgi.spec new file mode 100644 index 0000000..ef51e28 --- /dev/null +++ b/mod_wsgi.spec @@ -0,0 +1,59 @@ +Name: mod_wsgi +Version: 1.3 +Release: 1%{?dist} +Summary: A WSGI interface for Python web applications in Apache + +Group: System Environment/Libraries +License: ASL 2.0 +URL: http://modwsgi.org +Source0: http://modwsgi.googlecode.com/files/%{name}-%{version}.tar.gz +Source1: wsgi.conf +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: httpd-devel +BuildRequires: python-devel + + +%description +The mod_wsgi adapter is an Apache module that provides a WSGI compliant +interface for hosting Python based web applications within Apache. The +adapter is written completely in C code against the Apache C runtime and +for hosting WSGI applications within Apache has a lower overhead than using +existing WSGI adapters for mod_python or CGI. + + +%prep +%setup -q + + +%build +%configure +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT + +install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d +install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/ + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc LICENCE README +%config(noreplace) %{_sysconfdir}/httpd/conf.d/wsgi.conf +%{_libdir}/httpd/modules/mod_wsgi.so + + +%changelog +* Sat Jan 05 2008 James Bowes 1.3-1 +- Update to 1.3 + +* Sun Sep 30 2007 James Bowes 1.0-1 +- Initial packaging for Fedora + diff --git a/sources b/sources index e69de29..09556f7 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +7dc5e45f7332fde54fb1c5b71616e4a2 mod_wsgi-1.3.tar.gz diff --git a/wsgi.conf b/wsgi.conf new file mode 100644 index 0000000..19f3567 --- /dev/null +++ b/wsgi.conf @@ -0,0 +1 @@ +LoadModule wsgi_module modules/mod_wsgi.so