# rpmlint configuration for linstor-cli
#
# See https://en.opensuse.org/openSUSE:Packaging_checks

# Manual pages are not generated for this package. Building them would
# require help2man, libxslt-tools, docbook-xsl-stylesheets and
# python3-linstor in the build root, which is disproportionate for the
# minimal Leap Micro / MicroOS target. "linstor help" and
# "linstor <cmd> --help" cover the same ground.
addFilter("no-manual-page-for-binary linstor")

# /usr/share/bash-completion/completions is owned by the bash-completion
# package as well; we co-own it so the snippet is not orphaned on
# systems where bash-completion is not installed.
addFilter("dir-or-file-in-usr-share-bash-completion")

# python3-linstor carries the upstream library only. Upstream ships no
# README or examples in the wheel, just the LGPL license text, which is
# marked with %license and therefore does not count as documentation.
addFilter("python3-linstor.* no-documentation")

# The client's dependency on the API library is satisfied twice over: by the
# explicit "Requires: python3-linstor" and by the auto generated
# python3Xdist(python-linstor) from the wheel metadata. rpmlint does not
# connect the distribution name "python-linstor" with the rpm name
# "python3-linstor" and therefore flags each of the two as the other's
# leftover. Both are intentional.
addFilter("linstor-cli.* python-missing-require python-linstor")
addFilter("linstor-cli.* python-leftover-require python3-linstor")

# The upstream test suite talks to a LINSTOR controller and cannot run in
# the build root, so there is no %check section.
addFilter("no-%check-section")
