diff --git a/check/checkers.go b/check/checkers.go index ed9b269..bc66e93 100644 --- a/check/checkers.go +++ b/check/checkers.go @@ -1081,8 +1081,8 @@ func checkForLongSummary(id string, s *spec.Spec) []Alert { summaryLen := strutil.LenVisual(summary) if strutil.LenVisual(summary) >= 70 { - desc := fmt.Sprintf("Package summary is longer than 70 characters (%d)", summaryLen) - result = append(result, NewAlert(id, LEVEL_ERROR, desc, line)) + desc := fmt.Sprintf("Package summary is too long (%d ≥ 70)", summaryLen) + result = append(result, NewAlert(id, LEVEL_WARNING, desc, line)) } } } diff --git a/cli/cli.go b/cli/cli.go index 5c7b9db..5e0ae4c 100644 --- a/cli/cli.go +++ b/cli/cli.go @@ -40,7 +40,7 @@ import ( // App info const ( APP = "perfecto" - VER = "6.1.1" + VER = "6.2.0" DESC = "Tool for checking perfectly written RPM specs" ) diff --git a/common/perfecto.spec b/common/perfecto.spec index af81c14..f42285b 100644 --- a/common/perfecto.spec +++ b/common/perfecto.spec @@ -10,7 +10,7 @@ Summary: Tool for checking perfectly written RPM specs Name: perfecto -Version: 6.1.1 +Version: 6.2.0 Release: 0%{?dist} Group: Development/Tools License: Apache License, Version 2.0 @@ -39,13 +39,15 @@ Tool for checking perfectly written RPM specs. %{crc_check} %setup -q - -%build if [[ ! -d "%{name}/vendor" ]] ; then - echo "This package requires vendored dependencies" + echo -e "----\nThis package requires vendored dependencies\n----" + exit 1 +elif [[ -f "%{name}/%{name}" ]] ; then + echo -e "----\nSources must not contain precompiled binaries\n----" exit 1 fi +%build pushd %{name} go build %{name}.go cp LICENSE .. @@ -105,6 +107,11 @@ fi ################################################################################ %changelog +* Sun Jun 23 2024 Anton Novojilov - 6.2.0-0 +- Added check PF28 for checking summary tag length +- Code refactoring +- Dependencies update + * Thu Mar 28 2024 Anton Novojilov - 6.1.1-0 - Improved support information gathering - Code refactoring