|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
Name: ansible-pcp
|
|
|
|
|
Version: 2.2.5
|
|
|
|
|
Version: 2.3.0
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Ansible Metric collection for Performance Co-Pilot
|
|
|
|
|
License: MIT
|
|
|
|
@ -17,8 +17,8 @@ BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
# NOTE: Even though ansible-core is in 8.6, it is only available
|
|
|
|
|
# at *runtime*, not at *buildtime* - so we can't have
|
|
|
|
|
# ansible-core as a build_dep on RHEL8
|
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} >= 9
|
|
|
|
|
# ansible-core as a build_dep on latest RHEL versions.
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
|
%bcond_without ansible
|
|
|
|
|
%global ansible_build_dep ansible-core >= 2.11.0
|
|
|
|
|
%else
|
|
|
|
@ -89,11 +89,10 @@ of performance data.
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup
|
|
|
|
|
mv .yamllint.yml yamllint.yml
|
|
|
|
|
mv .yamllint_defaults.yml yamllint_defaults.yml
|
|
|
|
|
%if 0%{?rhel}
|
|
|
|
|
rm -vr roles/repository tests/*repository* tests/*/*repository* docs/repository
|
|
|
|
|
%endif
|
|
|
|
|
rm -vr .github .gitignore .ansible-lint .*.yml
|
|
|
|
|
rm -vr .github .gitignore .ansible-lint
|
|
|
|
|
sed -i \
|
|
|
|
|
-e 's/^name: .*/name: %{collection_name}/g' \
|
|
|
|
|
-e 's/^namespace: .*/namespace: %{collection_namespace}/g' \
|
|
|
|
@ -122,7 +121,6 @@ tar -xf %{_tmppath}/%{collection_namespace}-%{collection_name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
mv yamllint.yml .yamllint.yml
|
|
|
|
|
mv yamllint_defaults.yml .yamllint_defaults.yml
|
|
|
|
|
%if %{with ansible_lint}
|
|
|
|
|
ansible-lint `find roles -name \*.yml`
|
|
|
|
|
%endif
|
|
|
|
@ -133,9 +131,15 @@ ansible-lint `find roles -name \*.yml`
|
|
|
|
|
%{ansible_collection_files}
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Nov 28 2023 Nathan Scott <nathans@redhat.com> 2.3.0-1
|
|
|
|
|
- Latest upstream release (RHEL-17430)
|
|
|
|
|
|
|
|
|
|
* Fri Oct 28 2022 Nathan Scott <nathans@redhat.com> 2.2.7-1
|
|
|
|
|
- Latest upstream release (BZ 2132847)
|
|
|
|
|
|
|
|
|
|
* Thu Apr 21 2022 Nathan Scott <nathans@redhat.com> 2.2.5-1
|
|
|
|
|
- Switch to using bcond spec file mechanisms
|
|
|
|
|
- Latest upstream release (BZ 2059463)
|
|
|
|
|
- Latest upstream release (BZ 2059464)
|
|
|
|
|
|
|
|
|
|
* Tue Feb 15 2022 Nathan Scott <nathans@redhat.com> 2.2.2-2
|
|
|
|
|
- RHEL8.6+, RHEL9+, Fedora - add "ansible-core or ansible" dep
|
|
|
|
|