Hello community, here is the log from the commit of package apache2-mod_wsgi for openSUSE:Factory checked in at 2015-08-07 00:24:54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/apache2-mod_wsgi (Old) and /work/SRC/openSUSE:Factory/.apache2-mod_wsgi.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "apache2-mod_wsgi" Changes: -------- --- /work/SRC/openSUSE:Factory/apache2-mod_wsgi/apache2-mod_wsgi.changes 2015-07-20 11:20:59.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.apache2-mod_wsgi.new/apache2-mod_wsgi.changes 2015-08-07 00:24:55.000000000 +0200 @@ -1,0 +2,5 @@ +Thu Aug 6 13:07:16 UTC 2015 - m...@suse.com + +- Build subpackage with mod_wsgi_python3 (bsc#939717) + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ apache2-mod_wsgi.spec ++++++ --- /var/tmp/diff_new_pack.3cNnxk/_old 2015-08-07 00:24:56.000000000 +0200 +++ /var/tmp/diff_new_pack.3cNnxk/_new 2015-08-07 00:24:56.000000000 +0200 @@ -16,6 +16,7 @@ # +%define py3dir %_builddir/py3 %define modname mod_wsgi Name: apache2-mod_wsgi Version: 4.4.6 @@ -52,10 +53,33 @@ The aim of mod_wsgi is to implement a simple to use Apache module which can host any Python application which supports the Python WSGI interface. +%package python3 +Summary: A WSGI interface for Python3 web applications in Apache +Group: System Environment/Libraries +BuildRequires: python3-devel +%if 0%{?suse_version} +Requires: %{apache_mmn} +Requires: %{apache_suse_maintenance_mmn} +Requires: apache2 +%else +Requires: httpd +%endif + +%description python3 +The mod_wsgi adapter is an Apacheache module that provides a WSGI compliant +interface for hosting Python based web applications within Apache. The +adapter is writtentten 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 -n %{modname}-%{version} %patch0 -p1 +mkdir -p %{py3dir} +cp -a . %{py3dir} + %build export CFLAGS="%{optflags} -fno-strict-aliasing" %configure \ @@ -67,7 +91,23 @@ --with-python="python" make %{?_smp_mflags} +pushd %{py3dir} +%configure \ +%if 0%{?suse_version} + --with-apxs="%{apache_apxs}-prefork" \ +%else + --with-apxs="%{apache_apxs}" \ +%endif + --with-python="python3" +make %{?_smp_mflags} +popd + %install +pushd %{py3dir} +make install DESTDIR=$RPM_BUILD_ROOT LIBEXECDIR=%{apache_libexecdir} +mv $RPM_BUILD_ROOT%{apache_libexecdir}/mod_wsgi{,_python3}.so +popd + make install DESTDIR=%{buildroot} LIBEXECDIR=%{apache_libexecdir} %post @@ -86,10 +126,32 @@ fi %endif +%post python3 +%if 0%{?suse_version} +if ! %{_sbindir}/a2enmod -q wsgi_python3; then + %{_sbindir}/a2enmod wsgi_python3 +fi +%endif + +%postun python3 +%if 0%{?suse_version} +if [ "$1" = "0" ]; then + if a2enmod -q wsgi_python3; then + %{_sbindir}/a2enmod -d wsgi_python3 + fi +fi +%endif + %files %defattr(-,root,root) %doc LICENSE README.rst docs/release-notes %dir %{apache_libexecdir} %{apache_libexecdir}/%{modname}.so +%files python3 +%defattr(-,root,root) +%doc LICENSE README.rst docs/release-notes +%dir %{apache_libexecdir} +%{apache_libexecdir}/%{modname}_python3.so + %changelog