summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--RPM4/src/Makefile.PL1
1 files changed, 1 insertions, 0 deletions
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: