From 58fb4a82b85e383da1667b9952b1c4401191d48b Mon Sep 17 00:00:00 2001 From: Eli Young Date: Oct 06 2017 23:23:05 +0000 Subject: Fix provides (bz#1497315) --- diff --git a/python-certbot-nginx.spec b/python-certbot-nginx.spec index f74b50c..91ee5f7 100644 --- a/python-certbot-nginx.spec +++ b/python-certbot-nginx.spec @@ -9,7 +9,7 @@ Name: python-%{pyname} Version: 0.18.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: The nginx plugin for certbot License: ASL 2.0 @@ -44,7 +44,9 @@ Plugin for certbot that allows for automatic configuration of ngnix %package -n python2-%{pyname} # Provide the name users expect as a certbot plugin +%if ( 0%{?rhel} && 0%{?rhel} <= 7 ) || ( 0%{?fedora} && 0%{?fedora} <= 25 ) Provides: %{pyname} = %{version}-%{release} +%endif # Although a plugin for the certbot command it's technically # an extension to the certbot python libraries Requires: python2-certbot = %{version} @@ -68,7 +70,9 @@ Plugin for certbot that allows for automatic configuration of nginx %if %{with python3} %package -n python3-%{pyname} # Provide the name users expect as a certbot plugin +%if 0%{?fedora} >= 26 Provides: %{pyname} = %{version}-%{release} +%endif # Although a plugin for the certbot command it's technically # an extension to the certbot python libraries Requires: python3-certbot = %{version} @@ -128,6 +132,9 @@ Plugin for certbot that allows for automatic configuration of nginx %endif %changelog +* Fri Oct 06 2017 Eli Young - 0.18.2-2 +- Fix provides (bz#1497315) + * Fri Sep 22 2017 Nick Bebout - 0.18.2-1 - Update to 0.18.2