- Notifications
You must be signed in to change notification settings - Fork2
Utility for linting RPM spec files
License
essentialkaos/perfecto
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Checks •Installing •Usage •CI Status •License
perfecto is tool for checking perfectly written RPM specs. Currently,perfecto used by default for checking specs forEK Public Repository.
You can find additional information about everyperfecto check inproject wiki.
Make sure you have a working Go 1.22+ workspace (instructions), then:
go install github.com/essentialkaos/perfecto@latest
sudo dnf install -y https://pkgs.kaos.st/kaos-repo-latest.el$(grep'CPE_NAME' /etc/os-release| tr -d'"'| cut -d':' -f5).noarch.rpm# EL8 (OracleLinux/Alma/Rocky 8)sudo dnf install perfecto# Alma/Rocky 9sudo dnf --enablerepo=crb install perfecto# OracleLinux 9sudo dnf --enablerepo=ol9_codeready_builder install perfecto
You can download prebuilt binaries for Linux and macOS fromEK Apps Repository:
bash<(curl -fsSL https://apps.kaos.st/get) perfecto
Officialperfecto images available onGitHub Container Registry andDocker Hub. Install the latest version ofPodman orDocker, then:
curl -#L -o perfecto-container https://kaos.sh/perfecto/perfecto-containerchmod +x perfecto-containersudo mv perfecto-container /usr/bin/perfectoperfecto your.spec
Official container images withperfecto:
ghcr.io/essentialkaos/perfecto:micro
(withoutrpmlint
)ghcr.io/essentialkaos/perfecto:ol8
(withrpmlint
)ghcr.io/essentialkaos/perfecto:ol9
(withrpmlint
)essentialkaos/perfecto:micro
(withoutrpmlint
)essentialkaos/perfecto:ol8
(withrpmlint
)essentialkaos/perfecto:ol9
(withrpmlint
)
For using latest stable versionperfecto with Github Actions use thisperfecto.yml
file or add it to your workflow:
name:Perfectoon:push:branches:[master, develop]pull_request:branches:[master]jobs:Perfecto:name:Perfectoruns-on:ubuntu-lateststeps: -name:Code checkoutuses:actions/checkout@v3 -name:Login to DockerHubuses:docker/login-action@v2with:registry:ghcr.iousername:${{ github.actor }}password:${{ secrets.GITHUB_TOKEN }} -name:Check specs with Perfectouses:essentialkaos/perfecto-action@v1with:files:myapp.spec
Additional information about action configuration can be found onthe official GitHub action page.
Branch | Status |
---|---|
master | |
develop |
About
Utility for linting RPM spec files