SHA256
1
0
forked from pool/rpmlint

Accepting request 901661 from home:marxin:branches:devel:openSUSE:Factory:rpmlint

- Add rpmlint-strict sub-package that includes scoring-strict.toml.

OBS-URL: https://build.opensuse.org/request/show/901661
OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=783
This commit is contained in:
Martin Liška 2021-06-24 09:03:59 +00:00 committed by Git OBS Bridge
parent b9883bf6be
commit 5712f95fb4
3 changed files with 21 additions and 2 deletions

3
_multibuild Normal file
View File

@ -0,0 +1,3 @@
<multibuild>
<package>strict</package>
</multibuild>

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jun 24 09:02:17 UTC 2021 - Martin Liška <mliska@suse.cz>
- Add rpmlint-strict sub-package that includes scoring-strict.toml.
-------------------------------------------------------------------
Thu Jun 24 08:49:39 UTC 2021 - Martin Liška <mliska@suse.cz>

View File

@ -1,5 +1,5 @@
#
# spec file for package rpmlint
# spec file
#
# Copyright (c) 2021 SUSE LLC
#
@ -16,7 +16,15 @@
#
Name: rpmlint
%define flavor @BUILD_FLAVOR@%{nil}
%if "%flavor" == "strict"
%define name_suffix -%{flavor}
%else
%define name_suffix %{nil}
%endif
Name: rpmlint%{name_suffix}
Version: 2.0+git20210624.67e5dc9
Release: 0
Summary: RPM file correctness checker
@ -86,6 +94,9 @@ source packages can be checked.
fdupes %{buildroot}%{python3_sitelib}
mkdir -p %{buildroot}%{_sysconfdir}/xdg/rpmlint
install -m644 configs/openSUSE/* %{buildroot}%{_sysconfdir}/xdg/rpmlint
%if "%flavor" != "strict"
rm %{buildroot}%{_sysconfdir}/xdg/rpmlint/scoring-strict.toml
%endif
%check
python3 -m pytest