diff options
-rw-r--r-- | RPM4/src/Makefile.PL | 1 |
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: |