Requires: nodeyum
Requires: plcapi >= 5.2
# this technically is a plcapi dependency but it's simpler here for chosing which
+%if "%{distro}" == "Fedora" && %{distrorelease} >= 29
+Requires: python2-mod_wsgi
+%else
%if "%{distro}" == "Fedora" && %{distrorelease} >= 18
Requires: mod_wsgi
%else
# with mod_python preferred
if rpm -q mod_python >& /dev/null ; then
configure_for_mod_python=true
- elif rpm -q mod_wsgi >& /dev/null ; then
+ elif rpm -q mod_wsgi >& /dev/null || rpm -q python2-mod_wsgi >& /dev/null ; then
configure_for_mod_wsgi=true
else
echo "Requires mod_python or mod_wsgi.... exiting"