Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package ansible-core for openSUSE:Factory checked in at 2022-12-07 17:35:29 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ansible-core (Old) and /work/SRC/openSUSE:Factory/.ansible-core.new.1835 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ansible-core" Wed Dec 7 17:35:29 2022 rev:7 rq:1040861 version:2.14.0 Changes: -------- --- /work/SRC/openSUSE:Factory/ansible-core/ansible-core.changes 2022-12-02 13:13:52.150093360 +0100 +++ /work/SRC/openSUSE:Factory/.ansible-core.new.1835/ansible-core.changes 2022-12-07 17:36:52.581167066 +0100 @@ -1,0 +2,8 @@ +Sat Nov 26 20:48:55 UTC 2022 - Johannes Kastl <ka...@b1-systems.de> + +- fix boo#1204320 + - do no longer exclude %{ansible_python_sitelib}/ansible_test + - create subpackage for ansible-test + - remove Conflicts for ansible-test + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ansible-core.spec ++++++ --- /var/tmp/diff_new_pack.CuGYFZ/_old 2022-12-07 17:36:53.085169825 +0100 +++ /var/tmp/diff_new_pack.CuGYFZ/_new 2022-12-07 17:36:53.089169847 +0100 @@ -20,11 +20,13 @@ # Leap15, SLES15 %define pythons python310 %define ansible_python python310 +%define ansible_python_executable python3.10 %define ansible_python_sitelib %python310_sitelib %else # Tumbleweed %define pythons python3 %define ansible_python python3 +%define ansible_python_executable python3 %define ansible_python_sitelib %python3_sitelib %endif @@ -40,7 +42,6 @@ # cannot be installed with ansible < 3 or ansible-base Conflicts: ansible < 3 Conflicts: ansible-base -Conflicts: ansible-test BuildRequires: %{ansible_python}-base >= 3.8 BuildRequires: %{ansible_python}-setuptools @@ -70,6 +71,22 @@ ad-hoc task execution, network automation, and multi-node orchestration. Ansible makes complex changes like zero-downtime rolling updates with load balancers easy. More information on the Ansible `website <https://ansible.com/>`_. +%package -n ansible-test +Summary: Tool for testing ansible plugin and module code +Requires: %{name} = %{version} +BuildRequires: %{ansible_python}-virtualenv +Requires: %{ansible_python}-virtualenv + +%description -n ansible-test +This package installs the ansible-test command for testing modules and plugins +developed for ansible. + +Ansible is a radically simple model-driven configuration management, multi-node +deployment, and remote task execution system. Ansible works over SSH and does +not require any software or daemons to be installed on remote nodes. Extension +modules can be written in any language and are transferred to managed machines +automatically. + %prep %setup -q -n ansible-core-%{version} @@ -81,6 +98,10 @@ find ./ -type f -exec \ sed -i '1s|^#!%{_bindir}/env |#!%{_bindir}/|' {} \; +# Replace all #!/usr/bin/python lines to use %{ansible_python_executable} directly. +find ./ -type f -exec \ + sed -i '1s|^#!%{_bindir}/python$|#!%{_bindir}/%{ansible_python_executable}|' {} \; + %build %python_build @@ -158,13 +179,10 @@ %{_bindir}/ansible-inventory %{_bindir}/ansible-playbook %{_bindir}/ansible-pull -%{_bindir}/ansible-test %{_bindir}/ansible-vault %{ansible_python_sitelib}/ansible %{ansible_python_sitelib}/ansible_core-%{version}*-info -%exclude %{ansible_python_sitelib}/ansible_test - %{_mandir}/man1/ansible.1%{?ext_man}* %{_mandir}/man1/ansible-config.1%{?ext_man}* %{_mandir}/man1/ansible-console.1%{?ext_man}* @@ -179,4 +197,8 @@ %config(noreplace) %{_sysconfdir}/ansible/hosts %{_datadir}/ansible/ +%files -n ansible-test +%{_bindir}/ansible-test +%{ansible_python_sitelib}/ansible_test + %changelog