diff --git a/python-certbot-apache.spec b/python-certbot-apache.spec index d60c396..d05d326 100644 --- a/python-certbot-apache.spec +++ b/python-certbot-apache.spec @@ -32,7 +32,11 @@ BuildRequires: python3-devel #For running tests BuildRequires: python2-certbot = %{version} +%if 0%{?rhel} && 0%{?rhel} <= 7 +BuildRequires: python-augeas +%else BuildRequires: python2-augeas +%endif %if %{with python3} BuildRequires: python3-certbot = %{version} @@ -52,7 +56,11 @@ Provides: %{pyname} = %{version}-%{release} # Although a plugin for the certbot command it's technically # an extension to the certbot python libraries Requires: python2-certbot = %{version} +%if 0%{?rhel} && 0%{?rhel} <= 7 +Requires: python-augeas +%else Requires: python2-augeas +%endif Requires: mod_ssl %if 0%{?fedora} #Recommend the CLI as that will be the interface most use