Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 848134 Details for
Bug 1035876
add python3-mod_wsgi subpackage
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
git commit adding python3 subpackage
0001-added-python3-subpackage.patch (text/plain), 5.95 KB, created by
Jakub Dorňák
on 2014-01-10 11:19:21 UTC
(
hide
)
Description:
git commit adding python3 subpackage
Filename:
MIME Type:
Creator:
Jakub Dorňák
Created:
2014-01-10 11:19:21 UTC
Size:
5.95 KB
patch
obsolete
>From 9b35b9849335a8f1a9ff94fa1133e81b8bd54d22 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Jakub=20Dor=C5=88=C3=A1k?= <jdornak@redhat.com> >Date: Thu, 28 Nov 2013 18:45:58 +0100 >Subject: [PATCH] added python3 subpackage > >--- > mod_wsgi-3.4-configure-python3.patch | 20 +++++++++++ > mod_wsgi.spec | 70 ++++++++++++++++++++++++++++++++++-- > wsgi-python3.conf | 1 + > 3 files changed, 89 insertions(+), 2 deletions(-) > create mode 100644 mod_wsgi-3.4-configure-python3.patch > create mode 100644 wsgi-python3.conf > >diff --git a/mod_wsgi-3.4-configure-python3.patch b/mod_wsgi-3.4-configure-python3.patch >new file mode 100644 >index 0000000..23cf1c9 >--- /dev/null >+++ b/mod_wsgi-3.4-configure-python3.patch >@@ -0,0 +1,20 @@ >+--- python3-mod_wsgi-3.4-11.fc21/configure.ac.orig 2013-11-28 13:50:26.969440552 +0100 >++++ python3-mod_wsgi-3.4-11.fc21/configure.ac 2013-11-28 13:50:46.879414776 +0100 >+@@ -104,7 +104,7 @@ PYTHONLIBDIR=`${PYTHON} -c 'from sys imp >+ PYTHONCFGDIR=`${PYTHON} -c 'from sys import stdout; \ >+ import distutils.sysconfig; \ >+ stdout.write(distutils.sysconfig.get_python_lib(plat_specific=1, \ >+- standard_lib=1) +"/config")'` >++ standard_lib=1))'` >+ PYTHONFRAMEWORKDIR=`${PYTHON} -c 'from sys import stdout; \ >+ from distutils import sysconfig; \ >+ stdout.write(sysconfig.get_config_var("PYTHONFRAMEWORKDIR"))'` >+@@ -120,7 +120,7 @@ if test "${PYTHONFRAMEWORKDIR}" = "no-fr >+ LDFLAGS1="-L${PYTHONLIBDIR}" >+ LDFLAGS2="-L${PYTHONCFGDIR}" >+ >+- LDLIBS1="-lpython${PYTHON_VERSION}" >++ LDLIBS1="-lpython${PYTHON_VERSION}m" >+ LDLIBS2=`${PYTHON} -c 'from sys import stdout; \ >+ from distutils import sysconfig; \ >+ stdout.write(sysconfig.get_config_var("LIBS"))'` >diff --git a/mod_wsgi.spec b/mod_wsgi.spec >index 0d1f7bf..254a1e8 100644 >--- a/mod_wsgi.spec >+++ b/mod_wsgi.spec >@@ -1,3 +1,5 @@ >+%bcond_without python3 >+ > %{!?_httpd_apxs: %{expand: %%global _httpd_apxs %%{_sbindir}/apxs}} > %{!?_httpd_mmn: %{expand: %%global _httpd_mmn %%(cat %{_includedir}/httpd/.mmn 2>/dev/null || echo missing-httpd-devel)}} > %{!?_httpd_confdir: %{expand: %%global _httpd_confdir %%{_sysconfdir}/httpd/conf.d}} >@@ -7,17 +9,22 @@ > > Name: mod_wsgi > Version: 3.4 >-Release: 10%{?dist} >+Release: 11%{?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 >+Source2: wsgi-python3.conf > Patch0: mod_wsgi-3.4-connsbh.patch > Patch1: mod_wsgi-3.4-procexit.patch > Patch2: mod_wsgi-3.4-coredump.patch >+Patch3: mod_wsgi-3.4-configure-python3.patch > BuildRequires: httpd-devel, python-devel, autoconf >+%if 0%{?with_python3} >+BuildRequires: python3-devel >+%endif > Requires: httpd-mmn = %{_httpd_mmn} > > # Suppress auto-provides for module DSO >@@ -32,12 +39,35 @@ for hosting WSGI applications within Apache has a lower overhead than using > existing WSGI adapters for mod_python or CGI. > > >+%if 0%{?with_python3} >+%package -n python3-%{name} >+Summary: A WSGI interface for Python3 web applications in Apache >+Group: System Environment/Libraries >+Requires: httpd-mmn = %{_httpd_mmn} >+Conflicts: %{name} >+ >+%description -n python3-%{name} >+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. >+%endif >+ >+ > %prep > %setup -q > %patch0 -p1 -b .connsbh > %patch1 -p1 -b .procexit > %patch2 -p1 -b .coredump > >+%if 0%{?with_python3} >+cp -a . %{py3dir} >+pushd %{py3dir} >+%patch3 -p1 -b .python3 >+popd >+%endif >+ > %build > # Regenerate configure for -coredump patch change to configure.in > autoconf >@@ -46,7 +76,33 @@ export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" > %configure --enable-shared --with-apxs=%{_httpd_apxs} > make %{?_smp_mflags} > >+%if 0%{?with_python3} >+pushd %{py3dir} >+# Regenerate configure for -coredump patch change to configure.in >+autoconf >+%configure --enable-shared --with-apxs=%{_httpd_apxs} --with-python=python3 >+make %{?_smp_mflags} >+popd >+%endif >+ > %install >+# first install python3 variant and rename the so file >+%if 0%{?with_python3} >+pushd %{py3dir} >+make install DESTDIR=$RPM_BUILD_ROOT LIBEXECDIR=%{_httpd_moddir} >+mv $RPM_BUILD_ROOT%{_httpd_moddir}/mod_wsgi{,_python3}.so >+ >+install -d -m 755 $RPM_BUILD_ROOT%{_httpd_modconfdir} >+%if "%{_httpd_modconfdir}" == "%{_httpd_confdir}" >+# httpd <= 2.2.x >+install -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_httpd_confdir}/wsgi-python3.conf >+%else >+# httpd >= 2.4.x >+install -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_httpd_modconfdir}/10-wsgi-python3.conf >+%endif >+popd >+%endif >+ > make install DESTDIR=$RPM_BUILD_ROOT LIBEXECDIR=%{_httpd_moddir} > > install -d -m 755 $RPM_BUILD_ROOT%{_httpd_modconfdir} >@@ -60,10 +116,20 @@ install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_httpd_modconfdir}/10-wsgi.conf > > %files > %doc LICENCE README >-%config(noreplace) %{_httpd_modconfdir}/*.conf >+%config(noreplace) %{_httpd_modconfdir}/*wsgi.conf > %{_httpd_moddir}/mod_wsgi.so > >+%if 0%{?with_python3} >+%files -n python3-%{name} >+%doc LICENCE README >+%config(noreplace) %{_httpd_modconfdir}/*wsgi-python3.conf >+%{_httpd_moddir}/mod_wsgi_python3.so >+%endif >+ > %changelog >+* Thu Nov 28 2013 Jakub DorÅák <jdornak@redhat.com> - 3.4-11 >+- added python3 subpackage >+ > * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4-10 > - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild > >diff --git a/wsgi-python3.conf b/wsgi-python3.conf >new file mode 100644 >index 0000000..e83fb34 >--- /dev/null >+++ b/wsgi-python3.conf >@@ -0,0 +1 @@ >+LoadModule wsgi_module modules/mod_wsgi_python3.so >-- >1.8.4.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1035876
:
830335
|
830337
| 848134