| |
@@ -1,12 +1,12 @@
|
| |
%global srcname acme
|
| |
|
| |
- %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
|
| |
%global SPHINXBUILD sphinx-build-3
|
| |
%else
|
| |
@@ -16,7 +16,7 @@
|
| |
|
| |
Name: python-acme
|
| |
Version: 1.0.0
|
| |
- Release: 1%{?dist}
|
| |
+ Release: 2%{?dist}
|
| |
Summary: Python library for the ACME protocol
|
| |
License: ASL 2.0
|
| |
URL: https://pypi.python.org/pypi/acme
|
| |
@@ -30,9 +30,12 @@
|
| |
|
| |
# When running tests argparse is not recognised as provided by core
|
| |
|
| |
- %if 0%{?rhel}
|
| |
+ %if 0%{?rhel} && 0%{?rhel} == 7
|
| |
Patch0: epel7-setup.patch
|
| |
%endif
|
| |
+ # https://github.com/certbot/certbot/issues/6604
|
| |
+ # also: https://github.com/certbot/certbot/issues/6604
|
| |
+ Patch1: python-acme-remove-mock-runtime-dependency.patch
|
| |
|
| |
%if %{with python2}
|
| |
BuildRequires: python2-devel
|
| |
@@ -93,6 +96,10 @@
|
| |
|
| |
# Used to verify OpenPGP signature
|
| |
BuildRequires: gnupg2
|
| |
+ %if 0%{?rhel} && 0%{?rhel} == 8
|
| |
+ # "gpgverify" macro, not in COPR buildroot by default
|
| |
+ BuildRequires: epel-rpm-macros >= 8-5
|
| |
+ %endif
|
| |
|
| |
BuildArch: noarch
|
| |
|
| |
@@ -243,6 +250,10 @@
|
| |
%endif
|
| |
|
| |
%changelog
|
| |
+ * Thu Dec 05 2019 Felix Schwarz <fschwarz@fedoraproject.org> 1.0.0-2
|
| |
+ - adapt conditions for EPEL8
|
| |
+ - remove runtime dependency on mock
|
| |
+
|
| |
* Thu Dec 05 2019 Eli Young <elyscape@gmail.com> - 1.0.0-1
|
| |
- Update to 1.0.0 (#1769084)
|
| |
|
| |
@elyscape I noticed you already started this task in https://bugzilla.redhat.com/show_bug.cgi?id=1774668 but maybe this PR helps (but feel free to ignore).