diff --git a/.gitignore b/.gitignore index 1fe5dc9..cc94fd8 100644 --- a/.gitignore +++ b/.gitignore @@ -28,3 +28,4 @@ /ansible-freeipa-1.11.1.tar.gz /ansible-freeipa-1.12.0.tar.gz /ansible-freeipa-1.12.1.tar.gz +/ansible-freeipa-1.13.1.tar.gz diff --git a/ansible-freeipa.spec b/ansible-freeipa.spec index 877533d..34f6cdb 100644 --- a/ansible-freeipa.spec +++ b/ansible-freeipa.spec @@ -5,9 +5,13 @@ %global python %{__python3} +%global collection_namespace freeipa +%global collection_name ansible_freeipa +%global ansible_collections_dir %{_datadir}/ansible/collections/ansible_collections + Summary: Roles and playbooks to deploy FreeIPA servers, replicas and clients Name: ansible-freeipa -Version: 1.12.1 +Version: 1.13.1 Release: 1%{?dist} URL: https://github.com/freeipa/ansible-freeipa License: GPL-3.0-or-later @@ -16,6 +20,8 @@ BuildArch: noarch %if 0%{?fedora} >= 35 || 0%{?rhel} >= 9 Requires: ansible-core %endif +BuildRequires: ansible-core +BuildRequires: python %description Ansible roles to install and uninstall FreeIPA servers, replicas and clients, @@ -118,6 +124,14 @@ Please have a look at %{_datadir}/ansible-freeipa/requirements-tests.txt to get the needed requrements to run the tests. +%package collection +Summary: %{collection_namespace}.%{collection_name} collection +Provides: ansible-collection-%{collection_namespace}-%{collection_name} = %{version}-%{release} + +%description collection +The %{collection_namespace}.%{collection_name} collection, including tests. + + %prep %setup -q # Do not create backup files with patches @@ -164,6 +178,11 @@ cp -rp utils %{buildroot}%{_datadir}/ansible-freeipa/ install -m 755 -d %{buildroot}%{_datadir}/ansible-freeipa/tests cp -rp tests %{buildroot}%{_datadir}/ansible-freeipa/ +# Create collection and install to %{buildroot}%{ansible_collections_dir} +# ansible-galaxy collection install creates ansible_collections directory +# automatically in given path, therefore /.. +utils/build-galaxy-release.sh -o "%{version}" -p %{buildroot}%{ansible_collections_dir}/.. %{collection_namespace} %{collection_name} + %files %license COPYING %{_datadir}/ansible/roles/ipaserver @@ -175,6 +194,7 @@ cp -rp tests %{buildroot}%{_datadir}/ansible-freeipa/ %{_datadir}/ansible/plugins/doc_fragments %{_datadir}/ansible/plugins/module_utils %{_datadir}/ansible/plugins/modules +%{_datadir}/ansible/plugins/inventory %doc README*.md %doc playbooks %{_datadir}/ansible-freeipa/requirements.txt @@ -185,7 +205,23 @@ cp -rp tests %{buildroot}%{_datadir}/ansible-freeipa/ %{_datadir}/ansible-freeipa/tests %{_datadir}/ansible-freeipa/requirements-tests.txt +%files collection +%dir %{ansible_collections_dir}/%{collection_namespace} +%{ansible_collections_dir}/%{collection_namespace}/%{collection_name} + %changelog +* Tue May 28 2024 Thomas Woerner - 1.13.1-1 +- Update to version 1.13.1 + https://github.com/freeipa/ansible-freeipa/releases/tag/v1.13.0 + https://github.com/freeipa/ansible-freeipa/releases/tag/v1.13.1 + Resolves: RHEL-35565 +- New inventory plugin + Resolves: RHEL-35541 +- Enable batch command as backend + Resolves: RHEL-38943 +- New collection sub package + Resolves: RHEL-38931 + * Mon Feb 12 2024 Thomas Woerner - 1.12.1-1 - Update to version 1.12.1 https://github.com/freeipa/ansible-freeipa/releases/tag/v1.12.1 diff --git a/sources b/sources index 0c34571..dc3008f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (ansible-freeipa-1.12.1.tar.gz) = 9e1a3ff9fe3b9d7bd6bc30096d89e0d7e1a60fb22b66efc272c3e3561c977f9c13dc0645eb734f2d5a5b2a11115bc81671cfc9e615b5cacbc06724d4ea4dd44c +SHA512 (ansible-freeipa-1.13.1.tar.gz) = 9bf1670dcb56362f8720fa6d30902fc41b147cd7e0e068a5aa17488140403bb1d6c2815668501f4ac302425f98e220ccc9834e1294691968fa7416dd09641f7f