|
|
@ -1,6 +1,8 @@
|
|
|
|
|
|
|
|
%global _docdir_fmt ansible-packaging
|
|
|
|
|
|
|
|
|
|
|
|
Name: ansible-packaging
|
|
|
|
Name: ansible-packaging
|
|
|
|
Version: 1
|
|
|
|
Version: 1
|
|
|
|
Release: 9.1%{?dist}
|
|
|
|
Release: 12%{?dist}
|
|
|
|
Summary: RPM packaging macros and generators for Ansible collections
|
|
|
|
Summary: RPM packaging macros and generators for Ansible collections
|
|
|
|
|
|
|
|
|
|
|
|
License: GPL-3.0-or-later
|
|
|
|
License: GPL-3.0-or-later
|
|
|
@ -48,7 +50,7 @@ Requires: /usr/bin/ansible-test
|
|
|
|
Requires: %{py3_dist pytest}
|
|
|
|
Requires: %{py3_dist pytest}
|
|
|
|
Requires: %{py3_dist pytest-mock}
|
|
|
|
Requires: %{py3_dist pytest-mock}
|
|
|
|
Requires: %{py3_dist pytest-xdist}
|
|
|
|
Requires: %{py3_dist pytest-xdist}
|
|
|
|
Requires: %{py3_dist pytest-forked}
|
|
|
|
Requires: (%{py3_dist pytest-forked} if ansible-core < 2.16~~)
|
|
|
|
Requires: %{py3_dist pyyaml}
|
|
|
|
Requires: %{py3_dist pyyaml}
|
|
|
|
# mock is included in the list upstream, but is deprecated in Fedora.
|
|
|
|
# mock is included in the list upstream, but is deprecated in Fedora.
|
|
|
|
# Maintainers should work with upstream to add compat code to support
|
|
|
|
# Maintainers should work with upstream to add compat code to support
|
|
|
@ -114,23 +116,24 @@ errors rpm_eval -E '%%ansible_collection_url'
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
echo "Ensure macro works when both arguments are passed and no control macros are set"
|
|
|
|
echo "Ensure macro works when both arguments are passed and no control macros are set"
|
|
|
|
[[ $(rpm_eval -E '%%ansible_collection_url community general') == \
|
|
|
|
[ "$(rpm_eval -E '%%ansible_collection_url community general')" = \
|
|
|
|
"https://galaxy.ansible.com/community/general" ]]
|
|
|
|
"https://galaxy.ansible.com/ui/repo/published/community/general" ]
|
|
|
|
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
echo "Ensure macro works with the control macros"
|
|
|
|
echo "Ensure macro works with the control macros"
|
|
|
|
[[ $(rpm_eval -D 'collection_namespace ansible' -D 'collection_name posix' \
|
|
|
|
[ "$(rpm_eval -D 'collection_namespace ansible' -D 'collection_name posix' \
|
|
|
|
-E '%%ansible_collection_url') == "https://galaxy.ansible.com/ansible/posix" ]]
|
|
|
|
-E '%%ansible_collection_url')" = \
|
|
|
|
|
|
|
|
"https://galaxy.ansible.com/ui/repo/published/ansible/posix" ]
|
|
|
|
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
echo "Ensure macro prefers the collection namespace and name passed as an argument over the control macros"
|
|
|
|
echo "Ensure macro prefers the collection namespace and name passed as an argument over the control macros"
|
|
|
|
[[ $(rpm_eval -D 'collection_namespace ansible' -D 'collection_name posix' \
|
|
|
|
[ "$(rpm_eval -D 'collection_namespace ansible' -D 'collection_name posix' \
|
|
|
|
-E '%%ansible_collection_url community general') == "https://galaxy.ansible.com/community/general" ]]
|
|
|
|
-E '%%ansible_collection_url community general')" = \
|
|
|
|
|
|
|
|
"https://galaxy.ansible.com/ui/repo/published/community/general" ]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%license COPYING
|
|
|
|
|
|
|
|
%{_fileattrsdir}/ansible.attr
|
|
|
|
%{_fileattrsdir}/ansible.attr
|
|
|
|
%{_rpmmacrodir}/macros.ansible
|
|
|
|
%{_rpmmacrodir}/macros.ansible
|
|
|
|
%{_rpmconfigdir}/ansible-generator
|
|
|
|
%{_rpmconfigdir}/ansible-generator
|
|
|
@ -138,6 +141,7 @@ echo "Ensure macro prefers the collection namespace and name passed as an argume
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n ansible-srpm-macros
|
|
|
|
%files -n ansible-srpm-macros
|
|
|
|
|
|
|
|
%license COPYING
|
|
|
|
%{_rpmmacrodir}/macros.ansible-srpm
|
|
|
|
%{_rpmmacrodir}/macros.ansible-srpm
|
|
|
|
|
|
|
|
|
|
|
|
# ansible-core in RHEL 8.6 is built against python38. In c8s and the next RHEL
|
|
|
|
# ansible-core in RHEL 8.6 is built against python38. In c8s and the next RHEL
|
|
|
@ -149,6 +153,17 @@ echo "Ensure macro prefers the collection namespace and name passed as an argume
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Tue Dec 05 2023 Maxwell G <maxwell@gtmx.me> - 1-12
|
|
|
|
|
|
|
|
- %%ansible_collection_url: handle new URL scheme
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1-11
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu May 11 2023 Maxwell G <maxwell@gtmx.me> - 1-10
|
|
|
|
|
|
|
|
- %%ansible_collection_install - disable spurious collections path warnings
|
|
|
|
|
|
|
|
- ansible-packaging-tests - don't depend on pytest-forked with ansible-core 2.16
|
|
|
|
|
|
|
|
- ansible-srpm-macros - include license file in the package
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1-9.1
|
|
|
|
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1-9.1
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|