Notification time stamped 2022-09-30 21:11:11 UTC
From f9f014a54d4f818097949a9e41bf0a7a80b61062 Mon Sep 17 00:00:00 2001
From: Maxwell G <gotmax(a)e.email>
Date: Sep 30 2022 20:51:12 +0000
Subject: Only build against ansible-core
We want the newest ansible-test, and we may add other macros that
require the newest version. The generated runtime Requires remain the
same.
https://src.fedoraproject.org/rpms/ansible/c/f246aba7759fd8ea181333fa827d...
makes this okay to reapply to F35.
---
diff --git a/ansible-packaging.spec b/ansible-packaging.spec
index 6a2b6f9..d769013 100644
--- a/ansible-packaging.spec
+++ b/ansible-packaging.spec
@@ -11,9 +11,9 @@ Source2: macros.ansible
Source3: macros.ansible-srpm
Source4: COPYING
-# Require either ansible-core or a version of ansible 2.9 that supports collections but
prefer ansible-core.
-Requires: (ansible-core or (ansible < 2.10.0 with ansible >= 2.9.10))
-Suggests: ansible-core
+# Require ansible-core for building. Collections still have a boolean runtime
+# dependency on either ansible 2.9 OR ansible-core.
+Requires: ansible-core
Requires: ansible-srpm-macros = %{version}-%{release}
@@ -38,8 +38,6 @@ Summary: SRPM stage RPM packaging macros for Ansible collections
%package tests
Summary: Dependencies for Ansible collection package unit tests
Requires: %{name} = %{version}-%{release}
-# Unit tests use ansible-core not ansible 2.9.
-Requires: ansible-core
Requires: /usr/bin/ansible-test
# This list is taken from %%{python3_sitelib}/ansible_test/_data/requirements/units.txt
Requires: %{py3_dist pytest}
https://src.fedoraproject.org/rpms/ansible-packaging/c/f9f014a54d4f818097...