]> git.pld-linux.org Git - packages/apache-mod_wsgi.git/commitdiff
require python modules at runtime auto/th/apache-mod_wsgi-3.5-3
authorElan Ruusamäe <glen@delfi.ee>
Sat, 1 Oct 2016 18:08:21 +0000 (21:08 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Sat, 1 Oct 2016 18:08:21 +0000 (21:08 +0300)
otherwise we get apache flooding with these errors:

ImportError: No module named traceback
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site.py", line 64, in <module>

apache-mod_wsgi.spec

index caff64faa9ae7a316cd210cc59517ce758d97a9f..52f0dca5f12034049060896fadb2594d03ce08aa 100644 (file)
@@ -11,7 +11,7 @@ Summary:      WSGI interface for the Apache Web server
 Summary(pl.UTF-8):     Interfejs WSGI dla serwera WWW Apache
 Name:          apache-mod_%{mod_name}
 Version:       3.5
-Release:       2
+Release:       3
 License:       Apache
 Group:         Networking/Daemons
 # Source0:     http://modwsgi.googlecode.com/files/mod_%{mod_name}-%{version}.tar.gz
@@ -33,6 +33,11 @@ BuildRequires:       python-devel >= 2.3
 BuildRequires: rpmbuild(macros) >= 1.268
 Requires:      apache(modules-api) = %{apache_modules_api}
 Requires:      apr >= 1:1.0.0
+%if %{with python3}
+Requires:      python3-modules
+%else
+Requires:      python-modules
+%endif
 # http://helpful.knobs-dials.com/index.php/Mod_wsgi_notes#PyEval_AcquireThread:_non-NULL_old_thread_state
 Conflicts:     apache-mod_python
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
This page took 0.120843 seconds and 4 git commands to generate.