[python26-mod_wsgi/el5/master] initial import

derks derks at fedoraproject.org
Wed Oct 20 21:59:54 UTC 2010


commit 35f42f11e52df591f90f9cc6bfb4b84f94bd5131
Author: BJ Dierkes <wdierkes at 5dollarwhitebox.org>
Date:   Wed Oct 20 16:59:49 2010 -0500

    initial import

 .gitignore             |    1 +
 python26-mod_wsgi.conf |   23 ++++++++++
 python26-mod_wsgi.spec |  105 ++++++++++++++++++++++++++++++++++++++++++++++++
 sources                |    1 +
 4 files changed, 130 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..32812c1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/mod_wsgi-3.3.tar.gz
diff --git a/python26-mod_wsgi.conf b/python26-mod_wsgi.conf
new file mode 100644
index 0000000..2488f2d
--- /dev/null
+++ b/python26-mod_wsgi.conf
@@ -0,0 +1,23 @@
+#################################################################################
+# mod_python and mod_wsgi compatibility note
+#################################################################################
+# mod_wsgi will deadlock if run in daemon mode while mod_python is enabled
+# do not enable both mod_python and mod_wsgi if you are going to use the
+# WSGIDaemonProcess directive
+# In previous version of mod_wsgi, apache would segfault when both mod_wsgi
+# and mod_python were enabled.  This update does not guarantee that will not
+# happen.  
+#
+#################################################################################
+# Do not enable mod_python and mod_wsgi in the same apache process.
+#################################################################################
+#
+
+# NOTE: By default python26-mod_python with not load if mod_wsgi is installed
+# and enabled.  Only load if mod_python and mod_wsgi are not already loaded.
+
+<IfModule !python_module>
+    <IfModule !wsgi_module>
+        LoadModule wsgi_module modules/python26-mod_wsgi.so
+    </IfModule>
+</IfModule>
diff --git a/python26-mod_wsgi.spec b/python26-mod_wsgi.spec
new file mode 100644
index 0000000..78d2f6b
--- /dev/null
+++ b/python26-mod_wsgi.spec
@@ -0,0 +1,105 @@
+
+%global pybasever 2.6
+%global pyver 26
+%global real_name mod_wsgi
+
+%global __os_install_post %{__python26_os_install_post}
+%global __python %{_bindir}/python%{pybasever}
+
+Name:           python%{pyver}-mod_wsgi
+Version:        3.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/%{real_name}-%{version}.tar.gz 
+Source1:        python26-mod_wsgi.conf
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires:  httpd-devel
+BuildRequires:  python%{pyver} python%{pyver}-devel
+
+Obsoletes:      mod_wsgi-python26 < 3.2-2
+Provides:       mod_wsgi-python26 = %{version}-%{release}
+
+
+%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.
+
+This package is built against python26.
+
+%prep
+%setup -q -n %{real_name}-%{version}
+
+
+%build
+%configure --enable-shared --with-python=%{__python}
+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/%{name}.conf
+
+mv  %{buildroot}%{_libdir}/httpd/modules/mod_wsgi.so \
+    %{buildroot}%{_libdir}/httpd/modules/%{name}.so 
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root,-)
+%doc LICENCE README
+%config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf
+%{_libdir}/httpd/modules/%{name}.so
+
+
+%changelog
+* Fri Oct 10 2010 BJ Dierkes <wdierkes at rackspace.com> 3.3-1
+- Porting to python26, renamed as python26-mod_wsgi
+- Latest sources from upstream.  ChangeLog available at:
+  http://code.google.com/p/modwsgi/wiki/ChangesInVersion0303
+- Modified Apache config to only load python26-mod_wsgi if mod_python
+  and mod_wsgi are not already loaded.
+
+* Tue Mar  9 2010 Josh Kayse <josh.kayse at gtri.gatech.edu> 3.2-1
+- update to 3.2
+- explicitly enable shared libraries
+- add a comment block to the configuration informing the administrator of 
+  incompatibilities between mod_python and mod_wsgi
+- update the configuration to disable mod_wsgi until the administrator enables
+
+* Thu Jul 02 2009 James Bowes <jbowes at redhat.com> 2.5-1
+- Update to 2.5
+
+* Wed Oct 08 2008 James Bowes <jbowes at redhat.com> 2.1-2
+- Remove requires on httpd-devel
+
+* Wed Jul 02 2008 James Bowes <jbowes at redhat.com> 2.1-1
+- Update to 2.1
+
+* Mon Jun 16 2008 Ricky Zhou <ricky at fedoraproject.org> 1.3-4
+- Build against the shared python lib.
+
+* Tue Feb 19 2008 Fedora Release Engineering <rel-eng at fedoraproject.org> - 1.3-3
+- Autorebuild for GCC 4.3
+
+* Sun Jan 06 2008 James Bowes <jbowes at redhat.com> 1.3-2
+- Require httpd
+
+* Sat Jan 05 2008 James Bowes <jbowes at redhat.com> 1.3-1
+- Update to 1.3
+
+* Sun Sep 30 2007 James Bowes <jbowes at redhat.com> 1.0-1
+- Initial packaging for Fedora
+
diff --git a/sources b/sources
index e69de29..4f0ce00 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+6172bb2bbabcd0c25867c2bc06f99dbb  mod_wsgi-3.3.tar.gz


More information about the scm-commits mailing list