From 8ebd28d003d8a72deb2f6383f276e983b9b653dc Mon Sep 17 00:00:00 2001 From: Maxwell G Date: Thu, 27 Oct 2022 22:19:52 -0500 Subject: [PATCH] Use %pyproject_save_files --- ansible-core.spec | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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