Blame SOURCES/macros.ansible
|
rdobuilder |
6b0be9 |
# Stores ephemeral data that's created by %%ansible_collection_install
|
|
rdobuilder |
6b0be9 |
# and used by other macros.
|
|
rdobuilder |
6b0be9 |
%__ansible_builddir %{_builddir}/%{?buildsubdir:%{buildsubdir}/}.ansible-packaging
|
|
rdobuilder |
6b0be9 |
|
|
rdobuilder |
6b0be9 |
%ansible_roles_dir %{_datadir}/ansible/roles
|
|
rdobuilder |
6b0be9 |
%ansible_collections_dir %{_datadir}/ansible/collections/ansible_collections
|
|
rdobuilder |
6b0be9 |
|
|
rdobuilder |
6b0be9 |
%ansible_collection_build() ansible-galaxy collection build
|
|
rdobuilder |
6b0be9 |
|
|
rdobuilder |
6b0be9 |
# On F36, package-notes-srpm-macros inserts a package note file into
|
|
rdobuilder |
6b0be9 |
# %%{buildsubdir} that ends up getting included in the collection builds.
|
|
rdobuilder |
6b0be9 |
%ansible_collection_install() %{shrink:
|
|
rdobuilder |
6b0be9 |
%undefine _package_note_file
|
|
rdobuilder |
6b0be9 |
%{_rpmconfigdir}/ansible_collection.py install
|
|
rdobuilder |
6b0be9 |
--collections-dir %{buildroot}%{ansible_collections_dir}
|
|
rdobuilder |
6b0be9 |
--filelist %{ansible_collection_filelist}
|
|
rdobuilder |
6b0be9 |
}
|
|
rdobuilder |
6b0be9 |
|
|
rdobuilder |
6b0be9 |
%ansible_test_unit() %{shrink:
|
|
rdobuilder |
6b0be9 |
%{_rpmconfigdir}/ansible_collection.py test --
|
|
rdobuilder |
6b0be9 |
--python-interpreter %{__python3} --local %{?*}
|
|
rdobuilder |
6b0be9 |
}
|
|
rdobuilder |
6b0be9 |
|
|
rdobuilder |
6b0be9 |
# TODO: Officially deprecate this macro and add the following line to the macro
|
|
rdobuilder |
6b0be9 |
# def after the new approach has gotten more testing and adoption:
|
|
rdobuilder |
6b0be9 |
# %%{warn: %%{ansible_collection_files} is deprecated. Use %%files -f %%{ansible_collection_filelist} instead.}
|
|
rdobuilder |
6b0be9 |
%ansible_collection_files %{shrink:
|
|
rdobuilder |
6b0be9 |
%{ansible_collections_dir}/%{collection_namespace}/
|
|
rdobuilder |
6b0be9 |
}
|
|
rdobuilder |
6b0be9 |
|
|
rdobuilder |
6b0be9 |
%ansible_collection_filelist %{__ansible_builddir}/ansible_collection_files
|