aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2020-06-03 15:20:22 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2020-06-03 15:41:29 +0200
commit527ca9a397c8e506dd10e5383e76d0f29c98effe (patch)
tree4fbb50cc11d6649ac27a0a509a0b471ce6392aba
parent64f48e6ea66db766364829ad6197e770bd0b2745 (diff)
downloadperl-URPM-527ca9a397c8e506dd10e5383e76d0f29c98effe.tar
perl-URPM-527ca9a397c8e506dd10e5383e76d0f29c98effe.tar.gz
perl-URPM-527ca9a397c8e506dd10e5383e76d0f29c98effe.tar.bz2
perl-URPM-527ca9a397c8e506dd10e5383e76d0f29c98effe.tar.xz
perl-URPM-527ca9a397c8e506dd10e5383e76d0f29c98effe.zip
handle RPM version with "beta" or "rc" in it
-rw-r--r--Changes2
-rw-r--r--Makefile.PL1
2 files changed, 3 insertions, 0 deletions
diff --git a/Changes b/Changes
index dc3c5f9..c5978d1 100644
--- a/Changes
+++ b/Changes
@@ -1,3 +1,5 @@
+- handle RPM version with "beta" or "rc" in it
+
Version 5.28 - 30 April 2020
- actually support deps on patched Mageia[23]'s rpm-4.11
diff --git a/Makefile.PL b/Makefile.PL
index 09d6704..0ce1e29 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -39,6 +39,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;
open(my $FH, "> rpmversion.h") or die "Can't open rpmversion.h";
print $FH "/* File generated by Makefile.PL\n";
print $FH " */\n\n";