diff --git a/SOURCES/gating.yaml b/SOURCES/gating.yaml new file mode 100644 index 0000000..5480e33 --- /dev/null +++ b/SOURCES/gating.yaml @@ -0,0 +1,10 @@ +--- !Policy +product_versions: + - fedora-* +decision_contexts: + - bodhi_update_push_testing + - bodhi_update_push_stable +subject_type: koji_build +rules: + - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional} +... diff --git a/SOURCES/macros.ansible-srpm b/SOURCES/macros.ansible-srpm index 0adacd7..fdf2ce5 100644 --- a/SOURCES/macros.ansible-srpm +++ b/SOURCES/macros.ansible-srpm @@ -8,6 +8,9 @@ # either or approach. Both arguments must be passed OR both control macros must # be defined. + +%__ansible_galaxy_collection_url https://galaxy.ansible.com/ui/repo/published + %ansible_collection_url() %{lua: local namespace_name = nil if rpm.expand("%collection_namespace") ~= "%collection_namespace" @@ -21,5 +24,6 @@ rpm.expand("%{error:%%ansible_collection_url: You must pass the collection " .. "namespace as the first arg and the collection name as the second}") end - print("https://galaxy.ansible.com/" .. namespace_name) + url = rpm.expand("%__ansible_galaxy_collection_url") + print(url .. "/" .. namespace_name) } diff --git a/SPECS/ansible-packaging.spec b/SPECS/ansible-packaging.spec index f591247..ee364a7 100644 --- a/SPECS/ansible-packaging.spec +++ b/SPECS/ansible-packaging.spec @@ -2,7 +2,7 @@ Name: ansible-packaging Version: 1 -Release: 10%{?dist} +Release: 12%{?dist} Summary: RPM packaging macros and generators for Ansible collections License: GPL-3.0-or-later @@ -117,17 +117,19 @@ echo echo echo "Ensure macro works when both arguments are passed and no control macros are set" [ "$(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 "Ensure macro works with the control macros" [ "$(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 "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' \ - -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" ] @@ -151,9 +153,15 @@ echo "Ensure macro prefers the collection namespace and name passed as an argume %changelog -* Tue Jul 25 2023 Arkady L. Shane - 1-10 +* Tue Dec 05 2023 Maxwell G - 1-12 +- %%ansible_collection_url: handle new URL scheme + +* Tue Jul 25 2023 Arkady L. Shane - 1-11 - Rebuilt for MSVSphere 9.2 +* Wed Jul 19 2023 Fedora Release Engineering - 1-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + * Thu May 11 2023 Maxwell G - 1-10 - %%ansible_collection_install - disable spurious collections path warnings - ansible-packaging-tests - don't depend on pytest-forked with ansible-core 2.16