diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2020-06-03 16:05:31 +0200 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2020-06-03 16:05:31 +0200 |
commit | a704c46ec35e785f8911c912707e5ca7434d3210 (patch) | |
tree | 764dcfe15bf344164fa563dd1e440451af9d188a | |
parent | f61007f4da39861f46a9945dc8792a66a4ec465d (diff) | |
download | perl-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
-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: |