diff --git a/ansible-core.spec b/ansible-core.spec index 6a1310d..ea04efe 100644 --- a/ansible-core.spec +++ b/ansible-core.spec @@ -156,8 +156,10 @@ make PYTHON=%{python3} docs done ) + %install %pyproject_install +%pyproject_save_files ansible ansible_test install -Dpm 0644 bash_completions/* -t %{buildroot}%{bash_completions_dir} install -Dpm 0644 fish_completions/* -t %{buildroot}%{fish_completions_dir} @@ -216,16 +218,13 @@ make PYTHON=%{python3} tests-py3 %endif -%files +%files -f %{pyproject_files} %license COPYING licenses/{Apache-License,MIT-license,PSF-license,simplified_bsd}.txt -%doc README.rst changelogs/CHANGELOG-v2.13.rst +%doc README.rst changelogs/CHANGELOG-v2.1?.rst %dir %{_sysconfdir}/ansible/ %config(noreplace) %{_sysconfdir}/ansible/* %{_bindir}/ansible* %{_datadir}/ansible/ -%{python3_sitelib}/ansible -%{python3_sitelib}/ansible_test -%{python3_sitelib}/*dist-info %{_mandir}/man1/ansible* %files doc