From aab7636f16f072802f91f20b8f2307570d290e04 Mon Sep 17 00:00:00 2001 From: parmentelat Date: Fri, 7 Dec 2018 16:55:26 +0100 Subject: [PATCH] mod_wsgi now called python2-mod_wsgi --- myplc.spec | 3 +++ plc.d/httpd | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/myplc.spec b/myplc.spec index 2806623..66dbe08 100644 --- a/myplc.spec +++ b/myplc.spec @@ -72,6 +72,9 @@ Requires: nodeconfig 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 diff --git a/plc.d/httpd b/plc.d/httpd index 48c8beb..6180e6e 100755 --- a/plc.d/httpd +++ b/plc.d/httpd @@ -183,7 +183,7 @@ EOF # 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" -- 2.43.0