[[package.extra-patches]] number = 1009 file = "0001-EPEL9-Ignore-doctests-that-require-very-recent-Rust-.patch" comments = [ "EPEL9: Ignore doctests that require very recent Rust compilers", """\ In this crate, some doctests use Rust features from versions newer than \ the MSRV. It’s therefore necessary to ignore some of them on EPEL9. If \ this patch becomes too unwieldy, we could choose to start skipping \ doctests there entirely.\ """, ] [scripts.prep] pre = [ "# NOTE: The -p1 in %%autosetup, above, must be replaced with -N so that we can", "# do conditional patching, below.", "%autopatch -M 999 -p1", "# We reserved patch number 1000+ for EPEL.", "%if 0%{?el9}", # EPEL9 rpm does not support "%patch ", and would quietly attempt and # fail to re-apply Patch0 instead of applying the desired patch. We *need* # to use "%patch -P " instead. "%patch -P 1009 -p1", "%endif", ]