summaryrefslogtreecommitdiffstats
path: root/RPM4/src
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2020-06-03 16:05:31 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2020-06-03 16:05:31 +0200
commita704c46ec35e785f8911c912707e5ca7434d3210 (patch)
tree764dcfe15bf344164fa563dd1e440451af9d188a /RPM4/src
parentf61007f4da39861f46a9945dc8792a66a4ec465d (diff)
downloadperl-RPM4-a704c46ec35e785f8911c912707e5ca7434d3210.tar
perl-RPM4-a704c46ec35e785f8911c912707e5ca7434d3210.tar.gz
perl-RPM4-a704c46ec35e785f8911c912707e5ca7434d3210.tar.bz2
perl-RPM4-a704c46ec35e785f8911c912707e5ca7434d3210.tar.xz
perl-RPM4-a704c46ec35e785f8911c912707e5ca7434d3210.zip
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
Diffstat (limited to 'RPM4/src')
-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: