SHA256
1
0
forked from pool/rpmlint

Accepting request 1116865 from home:dgarcia:branches:devel:openSUSE:Factory:rpmlint

- Use %pyproject_wheel to build the package

OBS-URL: https://build.opensuse.org/request/show/1116865
OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=1086
This commit is contained in:
Wolfgang Frisch 2023-10-11 09:33:39 +00:00 committed by Git OBS Bridge
parent 4c70b5b8e1
commit bd3645ed50
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Oct 11 08:57:44 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
- Use %pyproject_wheel to build the package
-------------------------------------------------------------------
Tue Oct 10 11:54:23 UTC 2023 - wolfgang.frisch@suse.com

View File

@ -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