Add new %ansible_collection_filelist macro

%ansible_collection_files cannot be adapted to dynamically determine the
collection namespace. We need to use a file list for that.
%ansible_collection_install writes out a file list to
%ansible_collection_filelist. Packagers would pass
`%{ansible_collection_filelist}` to `%files -f`.

Eventually, I'd like to deprecate %ansible_collection_files. That won't
happen until the new approach has gotten more testing and adoption.
epel8
Maxwell G 2 years ago
parent 78dcf4c992
commit b1de39d9c6
No known key found for this signature in database
GPG Key ID: F79E4E25E8C661F8

@ -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

Loading…
Cancel
Save