Skip to content

Commit

Permalink
Update spec
Browse files Browse the repository at this point in the history
  • Loading branch information
andyone committed Jun 23, 2024
1 parent d4b7e58 commit d7b5ffb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
4 changes: 2 additions & 2 deletions check/checkers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
15 changes: 11 additions & 4 deletions common/perfecto.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 ..
Expand Down Expand Up @@ -105,6 +107,11 @@ fi
################################################################################

%changelog
* Sun Jun 23 2024 Anton Novojilov <[email protected]> - 6.2.0-0
- Added check PF28 for checking summary tag length
- Code refactoring
- Dependencies update

* Thu Mar 28 2024 Anton Novojilov <[email protected]> - 6.1.1-0
- Improved support information gathering
- Code refactoring
Expand Down

0 comments on commit d7b5ffb

Please sign in to comment.