# https://www.progressiverobot.com
# Copyright (c) 2026 Christopher Holloway / Progressive Robot Ltd
# SPDX-License-Identifier: AGPL-3.0-or-later
#
# The rpmlint filters of the openSUSE Build Service's build of hmailserver.spec: the
# OBS package's _service (beside this file) takes this file out of the release's
# source tarball, and the rpmlint an OBS build runs loads a file named
# <package>-rpmlintrc from the build's SOURCES by itself.
#
# These are the lines of ../rpm/hmailserver.rpmlintrc that openSUSE's rpmlint
# reports, and no others, each with that file's reason: openSUSE's rpmlint makes an
# error of a filter that matched nothing (unused-rpmlintrc-filter), and it reports
# nothing the file's other lines filter - the modes of the mail store, the logs and
# the configuration. Over the packages the spec makes since its summary names
# "Progressive Robot's fork of hMailServer", Leap 16.0's rpmlint and Tumbleweed's
# report two errors with no filters, the two dh2048.pem lines below, and the
# summary's repeating the package's name as a warning on the binary package and on
# the source package; seven errors with the whole of that file, every one an unused
# filter; and with these lines no error, and none of those warnings
# (hmailserver/docs/Channels.md, "What was tried").
# build/ci/channels/obs-publish.py's self-test holds every line here to that file.

# Data, not a program: the Diffie-Hellman group, which the server reads from the
# directory its own binary is in (Utilities::GetBinDirectory). Moving it under
# /usr/share needs the server to look there (a question for a distribution's
# maintainer, in SourcePackages.md).
addFilter("script-without-shebang /usr/bin/dh2048.pem")
addFilter("wrong-script-end-of-line-encoding /usr/bin/dh2048.pem")

# The summary says whose package this is, "Progressive Robot's fork of hMailServer",
# and so repeats the package's name: the original hMailServer, Martin Knafve's, is
# developed separately, and a summary without that name would not say which
# hMailServer this is (build/check-package-texts.py holds the summary to it).
addFilter("name-repeated-in-summary hMailServer")
