https://bugzilla.redhat.com/show_bug.cgi?id=2168255
--- Comment #5 from Neal Gompa ngompa13@gmail.com --- Another way to do the configure thing:
%if 0%{?rhel} && 0%{?rhel} < 8 %global configure_opts --without-check %else %global configure_opts %{nil} %endif
[..]
%configure %{?configure_opts}