From 5712f95fb4cf11391cad2ee76c3ef86265554825ef1761ce0476f37637190713 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Li=C5=A1ka?= Date: Thu, 24 Jun 2021 09:03:59 +0000 Subject: [PATCH] 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 --- _multibuild | 3 +++ rpmlint.changes | 5 +++++ rpmlint.spec | 15 +++++++++++++-- 3 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 _multibuild diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..e366d06 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + strict + diff --git a/rpmlint.changes b/rpmlint.changes index a66a0d8..d68de52 100644 --- a/rpmlint.changes +++ b/rpmlint.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jun 24 09:02:17 UTC 2021 - Martin Liška + +- Add rpmlint-strict sub-package that includes scoring-strict.toml. + ------------------------------------------------------------------- Thu Jun 24 08:49:39 UTC 2021 - Martin Liška diff --git a/rpmlint.spec b/rpmlint.spec index 18d443c..89c0ce2 100644 --- a/rpmlint.spec +++ b/rpmlint.spec @@ -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