# The "Supplements: packageand(kernel-<flavor>:drbd)" line is not written by
# this spec file.  It is hardcoded in the distribution's KMP template
# (/usr/lib/rpm/kernel-module-subpackage from kernel-source), which is expanded
# for every kmp subpackage, so every KMP on openSUSE trips this check.  The
# preamble already adds the modern boolean form
# "Supplements: (kernel-<flavor> and drbd)" on top of it.
addFilter("suse-zypp-packageand")

# The main "drbd" package intentionally ships no binaries: it only carries the
# license, the ChangeLog and the rcdrbd compat symlink and acts as the marker
# package the kmp subpackages supplement.  The kernel modules live in
# drbd-kmp-<flavor>.  It cannot be marked noarch, because BuildArch in the main
# preamble would force %_target_cpu to "noarch" for the whole build and
# %kernel_module_package would no longer find /usr/src/linux-obj/<arch>/<flavor>.
addFilter("drbd\..*: E: no-binary")
