diff --git a/rpmlint.changes b/rpmlint.changes index 02b547a..d5dc6e2 100644 --- a/rpmlint.changes +++ b/rpmlint.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Oct 11 08:57:44 UTC 2023 - Daniel Garcia + +- Use %pyproject_wheel to build the package + ------------------------------------------------------------------- Tue Oct 10 11:54:23 UTC 2023 - wolfgang.frisch@suse.com diff --git a/rpmlint.spec b/rpmlint.spec index 5c4660c..1fc8a5b 100644 --- a/rpmlint.spec +++ b/rpmlint.spec @@ -32,7 +32,9 @@ Source0: rpmlint-%{version}.tar.xz Patch0: disable-flake-and-cov.patch BuildRequires: fdupes BuildRequires: python-rpm-macros +BuildRequires: python3-pip BuildRequires: python3-setuptools +BuildRequires: python3-wheel BuildArch: noarch %if "%{flavor}" == "test" BuildRequires: appstream-glib @@ -92,7 +94,7 @@ source packages can be checked. %build %if "%{flavor}" != "strict" -%python3_build +%python3_pyproject_wheel %endif %install @@ -102,7 +104,7 @@ install -m644 configs/openSUSE/scoring-strict.override.toml %{buildroot}%{_sysco %endif %if "%{flavor}" == "" -%python3_install +%python3_pyproject_install fdupes %{buildroot}%{python3_sitelib} install -m644 configs/openSUSE/* %{buildroot}%{_sysconfdir}/xdg/rpmlint rm %{buildroot}%{_sysconfdir}/xdg/rpmlint/scoring-strict.override.toml