From 775e1ad51b6318b1a308be9b997accc470329282 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 26 Apr 2022 11:39:20 +0200 Subject: Fix detecting 4.18-alpha1 --- Makefile.PL | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.PL b/Makefile.PL index 04d9830..298465f 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -40,7 +40,7 @@ unless (eval { %cfg = ExtUtils::PkgConfig->find("rpm >= $build_reqs{rpm}"); 1 }) exit 0; } my @rpm_version = split /\./, $cfg{modversion}; -$cfg{modversion} =~ s/(?:-(?:beta|rc).*)?$//i; +$cfg{modversion} =~ s/(?:-(?:alpha|beta|rc).*)?$//i; open(my $FH, "> rpmversion.h") or die "Can't open rpmversion.h"; print $FH "/* File generated by Makefile.PL\n"; print $FH " */\n\n"; -- cgit v1.2.1