From 6247e9c9196c998b8c49c1dd6cfb77c834032d23 Mon Sep 17 00:00:00 2001 From: Felix Schwarz Date: Mar 02 2020 07:44:29 +0000 Subject: adapt conditions for EPEL8 --- diff --git a/python-certbot-apache.spec b/python-certbot-apache.spec index 1eb478b..45f32b2 100644 --- a/python-certbot-apache.spec +++ b/python-certbot-apache.spec @@ -1,12 +1,12 @@ %global pypi_name certbot-apache -%if 0%{?fedora} +%if 0%{?fedora} || (0%{?rhel} && 0%{?rhel} >= 8) %bcond_without python3 %else %bcond_with python3 %endif -%if 0%{?fedora} && 0%{?fedora} >= 30 +%if (0%{?fedora} && 0%{?fedora} >= 30) || (0%{?rhel} && 0%{?rhel} >= 8) %bcond_with python2 %else %bcond_without python2 @@ -91,7 +91,7 @@ Requires: python-augeas Requires: python2-augeas %endif Requires: mod_ssl -%if 0%{?fedora} +%if 0%{?fedora} || (0%{?rhel} && 0%{?rhel} >= 8) #Recommend the CLI as that will be the interface most use Recommends: certbot >= 0.39.0 %else @@ -108,7 +108,7 @@ Plugin for certbot that allows for automatic configuration of apache %package -n python3-%{pypi_name} # Provide the name users expect as a certbot plugin -%if 0%{?fedora} +%if 0%{?fedora} || (0%{?rhel} && 0%{?rhel} >= 8) Provides: %{pypi_name} = %{version}-%{release} %endif @@ -118,7 +118,7 @@ Requires: python3-acme >= 0.29.0 Requires: python3-certbot >= 0.39.0 Requires: python3-augeas Requires: mod_ssl -%if 0%{?fedora} +%if 0%{?fedora} || (0%{?rhel} && 0%{?rhel} >= 8) #Recommend the CLI as that will be the interface most use Recommends: certbot >= 0.39.0 %else