| |
@@ -2,7 +2,7 @@
|
| |
|
| |
Name: python-%{srcname}
|
| |
Version: 5.3.1
|
| |
- Release: 4%{?dist}
|
| |
+ Release: 5%{?dist}
|
| |
Summary: Unit testing for config-managed server state
|
| |
|
| |
License: ASL 2.0
|
| |
@@ -16,7 +16,12 @@
|
| |
BuildRequires: python3-setuptools_scm
|
| |
|
| |
# testing requirements
|
| |
- BuildRequires: ansible-python3
|
| |
+ # Use ansible-core for testing wherever it's available.
|
| |
+ %if 0%{?fedora} >= 34 || 0%{?rhel} >= 9
|
| |
+ BuildRequires: ansible-core
|
| |
+ %else
|
| |
+ BuildRequires: ansible
|
| |
+ %endif
|
| |
BuildRequires: python3-pytest
|
| |
BuildRequires: python3-paramiko
|
| |
BuildRequires: python3-winrm
|
| |
@@ -36,7 +41,16 @@
|
| |
|
| |
%package -n python3-%{srcname}
|
| |
Summary: Unit testing for config-managed server state
|
| |
- Requires: ansible-python3
|
| |
+
|
| |
+ # See https://src.fedoraproject.org/rpms/ansible/pull-request/19#comment-93748.
|
| |
+ # This will allow users to choose between ansible 2.9 and ansible-core 2.11
|
| |
+ # when available, while avoiding unnecessarily pulling in the entire collections bundle on F36 and above.
|
| |
+ %if 0%{?fedora} >= 36
|
| |
+ Requires: ansible-core
|
| |
+ %else
|
| |
+ Requires: (ansible-core or ansible)
|
| |
+ %endif
|
| |
+
|
| |
Requires: python3-paramiko
|
| |
Requires: python3-winrm
|
| |
Suggests: python3-pytest-xdist
|
| |
@@ -73,6 +87,9 @@
|
| |
%{python3_sitelib}/%{srcname}-*.egg-info/
|
| |
|
| |
%changelog
|
| |
+ * Wed Jan 12 2022 Maxwell G <gotmax@e.email> - 5.3.1-5
|
| |
+ - Fix ansible dependency
|
| |
+
|
| |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.3.1-4
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
| |
|
| |
@@ -82,7 +99,7 @@
|
| |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.3.1-2
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
| |
|
| |
- * Wed Sep 03 2020 Chedi Toueiti <chedi.toueiti@gmail.com> - 5.3.1-1
|
| |
+ * Thu Sep 03 2020 Chedi Toueiti <chedi.toueiti@gmail.com> - 5.3.1-1
|
| |
- Update to version 5.3.1
|
| |
|
| |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.2-2
|
| |
First time I encounter this syntax, didn't know it was possible. Thanks :)