spec: fix spec warning for /usr/include/ynl

With the combination of build options "--without realtime --without debug --without debuginfo --without ynl --without doc" in ELN, build produces a warning:

RPM build warnings: File not found: /builddir/build/BUILD/kernel-6.16.0-build/BUILDROOT/usr/include/ynl

Put the exclude behind %{with_ynl} to avoid the warning.

Closes: #184 (closed) Signed-off-by: Jan Stancek jstancek@redhat.com

Merge request reports

Loading