697da5d
Name:           mod_wsgi
fa653e6
Version:        1.3
0662656
Release:        4%{?dist}
697da5d
Summary:        A WSGI interface for Python web applications in Apache
697da5d
697da5d
Group:          System Environment/Libraries
697da5d
License:        ASL 2.0
697da5d
URL:            http://modwsgi.org
697da5d
Source0:        http://modwsgi.googlecode.com/files/%{name}-%{version}.tar.gz
697da5d
Source1:        wsgi.conf
697da5d
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
697da5d
697da5d
BuildRequires:  httpd-devel
697da5d
BuildRequires:  python-devel
697da5d
697da5d
697da5d
%description
697da5d
The mod_wsgi adapter is an Apache module that provides a WSGI compliant
697da5d
interface for hosting Python based web applications within Apache. The
697da5d
adapter is written completely in C code against the Apache C runtime and
697da5d
for hosting WSGI applications within Apache has a lower overhead than using
697da5d
existing WSGI adapters for mod_python or CGI.
697da5d
697da5d
697da5d
%prep
697da5d
%setup -q
697da5d
697da5d
697da5d
%build
697da5d
%configure
9ff4f88
make LDFLAGS="-L%{_libdir}" %{?_smp_mflags}
697da5d
697da5d
697da5d
%install
697da5d
rm -rf $RPM_BUILD_ROOT
697da5d
make install DESTDIR=$RPM_BUILD_ROOT
697da5d
697da5d
install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d
697da5d
install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/
697da5d
697da5d
697da5d
%clean
697da5d
rm -rf $RPM_BUILD_ROOT
697da5d
697da5d
697da5d
%files
697da5d
%defattr(-,root,root,-)
697da5d
%doc LICENCE README
697da5d
%config(noreplace) %{_sysconfdir}/httpd/conf.d/wsgi.conf
697da5d
%{_libdir}/httpd/modules/mod_wsgi.so
697da5d
697da5d
697da5d
%changelog
0662656
* Mon Sep 29 2008 James Bowes <jbowes@redhat.com> 1.3-4
0662656
- Remove requires on httpd-devel
0662656
9ff4f88
* Mon Jun 16 2008 Ricky Zhou <ricky@fedoraproject.org> 1.3-3
9ff4f88
- Build against the shared python lib.
9ff4f88
96871e8
* Sun Jan 06 2008 James Bowes <jbowes@redhat.com> 1.3-2
96871e8
- Require httpd
96871e8
fa653e6
* Sat Jan 05 2008 James Bowes <jbowes@redhat.com> 1.3-1
fa653e6
- Update to 1.3
fa653e6
697da5d
* Sun Sep 30 2007 James Bowes <jbowes@redhat.com> 1.0-1
697da5d
- Initial packaging for Fedora
697da5d