c7d01a6
%{!?_httpd_apxs: %{expand: %%global _httpd_apxs %%{_sbindir}/apxs}}
c7d01a6
%{!?_httpd_mmn: %{expand: %%global _httpd_mmn %%(cat %{_includedir}/httpd/.mmn || echo missing-httpd-devel)}}
9fecf69
%{!?_httpd_confdir:    %{expand: %%global _httpd_confdir    %%{_sysconfdir}/httpd/conf.d}}
9fecf69
# /etc/httpd/conf.d with httpd < 2.4 and defined as /etc/httpd/conf.modules.d with httpd >= 2.4
9fecf69
%{!?_httpd_modconfdir: %{expand: %%global _httpd_modconfdir %%{_sysconfdir}/httpd/conf.d}}
c7d01a6
697da5d
Name:           mod_wsgi
ffc9997
Version:        3.4
f9879fb
Release:        2%{?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
c7d01a6
Requires: httpd-mmn = %{_httpd_mmn}
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
%build
f9879fb
export LDFLAGS="$RPM_LD_FLAGS -L%{_libdir}"
c7d01a6
%configure --enable-shared --with-apxs=%{_httpd_apxs}
f9879fb
make %{?_smp_mflags}
697da5d
697da5d
697da5d
%install
697da5d
rm -rf $RPM_BUILD_ROOT
697da5d
make install DESTDIR=$RPM_BUILD_ROOT
697da5d
82e1974
install -d -m 755 $RPM_BUILD_ROOT%{_httpd_modconfdir}
9fecf69
%if "%{_httpd_modconfdir}" == "%{_httpd_confdir}"
9fecf69
# httpd <= 2.2.x
9fecf69
install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_httpd_confdir}/wsgi.conf
9fecf69
%else
9fecf69
# httpd >= 2.4.x
82e1974
install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_httpd_modconfdir}/10-wsgi.conf
9fecf69
%endif
697da5d
697da5d
%clean
697da5d
rm -rf $RPM_BUILD_ROOT
697da5d
697da5d
%files
697da5d
%defattr(-,root,root,-)
697da5d
%doc LICENCE README
82e1974
%config(noreplace) %{_httpd_modconfdir}/*.conf
697da5d
%{_libdir}/httpd/modules/mod_wsgi.so
697da5d
697da5d
697da5d
%changelog
f9879fb
* Wed Oct 17 2012 Matthias Runge <mrunge@redhat.com> - 3.4-2
f9879fb
- also use RPM_LD_FLAGS for build bz. #867137
f9879fb
ffc9997
* Mon Oct 15 2012 Matthias Runge <mrunge@redhat.com> - 3.4-1
ffc9997
- update to upstream release 3.4
ffc9997
f3b7224
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3-7
f3b7224
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
f3b7224
4851791
* Wed Jun 13 2012 Joe Orton <jorton@redhat.com> - 3.3-6
4851791
- add possible fix for daemon mode crash (#831701)
4851791
82e1974
* Mon Mar 26 2012 Joe Orton <jorton@redhat.com> - 3.3-5
82e1974
- move wsgi.conf to conf.modules.d
82e1974
83d0b05
* Mon Mar 26 2012 Joe Orton <jorton@redhat.com> - 3.3-4
83d0b05
- rebuild for httpd 2.4
83d0b05
c7d01a6
* Tue Mar 13 2012 Joe Orton <jorton@redhat.com> - 3.3-3
c7d01a6
- prepare for httpd 2.4.x
c7d01a6
cd44df7
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3-2
cd44df7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
cd44df7
1db2075
* Tue Nov 01 2011 James Bowes <jbowes@redhat.com> 3.3-1
1db2075
- update to 3.3
1db2075
4b50972
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2-3
4b50972
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
4b50972
289b2e0
* Tue Jul 27 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-2
289b2e0
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
289b2e0
joshkayse a65d8f9
* Tue Mar  9 2010 Josh Kayse <joshkayse@fedoraproject.org> - 3.2-1
joshkayse a65d8f9
- update to 3.2
joshkayse a65d8f9
joshkayse 6bc6ede
* Sun Mar 07 2010 Josh Kayse <joshkayse@fedoraproject.org> - 3.1-2
joshkayse 6bc6ede
- removed conflicts as it violates fedora packaging policy
joshkayse 6bc6ede
joshkayse d55dfcb
* Sun Mar 07 2010 Josh Kayse <joshkayse@fedoraproject.org> - 3.1-1
joshkayse d55dfcb
- update to 3.1
joshkayse d55dfcb
- add explicit enable-shared
joshkayse d55dfcb
- add conflicts mod_python < 3.3.1
joshkayse d55dfcb
f933919
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5-2
f933919
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
f933919
17535ae
* Thu Jul 02 2009 James Bowes <jbowes@redhat.com> 2.5-1
17535ae
- Update to 2.5
17535ae
0c21814
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3-3
0c21814
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
0c21814
6d6cd19
* Sun Nov 30 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 2.3-2
6d6cd19
- Rebuild for Python 2.6
6d6cd19
938231a
* Tue Oct 28 2008 Luke Macken <lmacken@redhat.com> 2.3-1
938231a
- Update to 2.3
938231a
06db9f3
* Mon Sep 29 2008 James Bowes <jbowes@redhat.com> 2.1-2
06db9f3
- Remove requires on httpd-devel
06db9f3
786f01f
* Wed Jul 02 2008 James Bowes <jbowes@redhat.com> 2.1-1
786f01f
- Update to 2.1
786f01f
3b56ae5
* Mon Jun 16 2008 Ricky Zhou <ricky@fedoraproject.org> 1.3-4
3b56ae5
- Build against the shared python lib.
3b56ae5
38851a5
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.3-3
38851a5
- Autorebuild for GCC 4.3
38851a5
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