From a704c46ec35e785f8911c912707e5ca7434d3210 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 3 Jun 2020 16:05:31 +0200 Subject: handle RPM version with "beta" or "rc" in it Was already done in commit d939d0fcd43955f367768b4a0f378e360d6bd3ce But got dropped in commit 66504834514cdf96f5a366864982f0d2a0267ea2 when switching to ExtUtils::PkgConfig --- RPM4/src/Makefile.PL | 1 + 1 file changed, 1 insertion(+) diff --git a/RPM4/src/Makefile.PL b/RPM4/src/Makefile.PL index 8aacf15..0f0d73c 100644 --- a/RPM4/src/Makefile.PL +++ b/RPM4/src/Makefile.PL @@ -28,6 +28,7 @@ $rpmheaderlocation or die "Can't find rpmheader location"; # Just to get rpm version. Deps checking has been done by ../Makefile.PL: my %cfg = ExtUtils::PkgConfig->find("rpm"); +$cfg{modversion} =~ s/(?:-(?:beta|rc).*)?$//i; $rpmv ||= $cfg{modversion}; # Generate version-features flags depending on installed rpm version: -- cgit v1.2.1