From 5924222885555e26687275792ecdb6fef1bb16f5 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 16 Feb 2023 13:41:59 +0100 Subject: [PATCH] Update to more modern Python packaging --- cargo2rpm.spec | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/cargo2rpm.spec b/cargo2rpm.spec index fe67c50..84813a5 100644 --- a/cargo2rpm.spec +++ b/cargo2rpm.spec @@ -21,29 +21,28 @@ provides a CLI interface (for implementing RPM macros and generators) and a Python API (which rust2rpm is built upon). %prep -%autosetup -n cargo2rpm-%{version} -p1 +%autosetup -p1 %generate_buildrequires -%pyproject_buildrequires -t +%pyproject_buildrequires %{?with_check:-t} %build %pyproject_wheel %install %pyproject_install +%pyproject_save_files cargo2rpm %check +%pyproject_check_import %if %{with check} %tox %endif -%files -%license LICENSE +%files -f %{pyproject_files} %doc README.md %doc CHANGELOG.md %{_bindir}/cargo2rpm -%{python3_sitelib}/cargo2rpm-*.dist-info/ -%{python3_sitelib}/cargo2rpm/ %changelog %autochangelog