diff --git a/macros.ansible b/macros.ansible index 0c81432..57c89fe 100644 --- a/macros.ansible +++ b/macros.ansible @@ -18,5 +18,11 @@ --python-interpreter %{__python3} --local %{?*} } +# TODO: Officially deprecate this macro and add the following line to the macro +# def after the new approach has gotten more testing and adoption: +# %%{warn: %%{ansible_collection_files} is deprecated. Use %%files -f %%{ansible_collection_filelist} instead.} +%ansible_collection_files %{shrink: +%{ansible_collections_dir}/%{collection_namespace}/ +} -%ansible_collection_files %{_datadir}/ansible/collections/ansible_collections/%{collection_namespace}/ +%ansible_collection_filelist %{__ansible_builddir}/ansible_collection_files