Skip to content

Latest commit

 

History

History
74 lines (55 loc) · 1.32 KB

README.md

File metadata and controls

74 lines (55 loc) · 1.32 KB

Rpmlint

Run rpmlint on the current Copr project or Koji build

Synopsis

discover:
  how: fmf
  filter: "tag: rpmlint"
  url: https://github.com/packit/tmt-plans
  ref: main
execute:
  how: tmt

Description

This plan simply runs the command

$ rpmlint ./*.rpm

The rpm and srpm artifacts are taken from the testing-farm artifacts. In order to pass a .rpmlintrc file, use the prepare step of the plan to copy the file to TMT_PLAN_DATA. Only the rpmlintrc file that matches the spec file is used.

:::note

The rpmlint of the .spec file is handled automatically when running rpmlint against a srpm.

:::

Options

No options available

Examples

  • Rpmlint the upstream packit project
    discover:
      how: fmf
      filter: "tag: rpmlint"
      url: https://github.com/packit/tmt-plans
      ref: main
    execute:
      how: tmt
  • Use rpmlintrc file
    prepare:
      - how: shell
        script: cp ./*.rpmlintrc $TMT_PLAN_DATA/
    discover:
      how: fmf
      filter: "tag: rpmlint"
      url: https://github.com/packit/tmt-plans
      ref: main
    execute:
      how: tmt

See Also