Name: ansible-cmdb Version: 1.32 Release: 0.1%{?dist} Summary: Generate host overview from Ansible 'setup' module output License: GPL URL: https://github.com/fboender/ansible-cmdb Source0: https://github.com/philfry/ansible-cmdb/archive/refs/heads/master.tar.gz BuildArch: noarch BuildRequires: pyproject-rpm-macros BuildRequires: python3-devel Requires: python3-mako Requires: python3-yaml %description ansible-cmdb takes the output of Ansible's 'setup' module output (fact gathering) and transforms it into an host information overview. It supports supplementing gathered information with your own information. It can also scan the ansible 'hosts' file to get groups and variables to be included in the host information overview. %prep %autosetup -n %{name}-master mv -f src/%{name}{.py,} sed -i '\|src/ansible-cmdb\.py|d' setup.py %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install [ '%{buildroot}' != '/' ] && rm -rf %{buildroot} %pyproject_install %pyproject_save_files ansiblecmdb install -Dp -m0644 contrib/%{name}.man.1 %{buildroot}%{_mandir}/man1/%{name}.1 %files -f %{pyproject_files} %license LICENSE %doc README.md %{_bindir}/ansible-cmdb %{_mandir}/man1/%{name}.1* %changelog * Thu Oct 9 2025 Philippe Kueck - 1.32-0.1 - initial packaging - includes PR 248, 255 and 260