Skip to content

Instantly share code, notes, and snippets.

@oremj
Created December 18, 2009 22:40
Show Gist options
  • Save oremj/259819 to your computer and use it in GitHub Desktop.
Save oremj/259819 to your computer and use it in GitHub Desktop.
Name: mod_wsgi
Version: 3.1
Release: 2%{?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: python26-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 --with-python=/usr/bin/python26
make LDFLAGS="-L%{_libdir}" %{?_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
* Wed Oct 08 2008 James Bowes <[email protected]> 2.1-2
- Remove requires on httpd-devel
* Wed Jul 02 2008 James Bowes <[email protected]> 2.1-1
- Update to 2.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment