summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2020-04-23 11:23:33 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2020-04-24 08:28:56 +0200
commit06969c88d338c6c00c42e9edfd5435436c520ccd (patch)
treef2c18ce4ab6ebd3a5f9d749ba90155f0141e6178
parenta1ed8dfcffa5cd45c643a6e974fb5a4a176ae441 (diff)
downloadperl-RPM4-06969c88d338c6c00c42e9edfd5435436c520ccd.tar
perl-RPM4-06969c88d338c6c00c42e9edfd5435436c520ccd.tar.gz
perl-RPM4-06969c88d338c6c00c42e9edfd5435436c520ccd.tar.bz2
perl-RPM4-06969c88d338c6c00c42e9edfd5435436c520ccd.tar.xz
perl-RPM4-06969c88d338c6c00c42e9edfd5435436c520ccd.zip
explain
-rw-r--r--RPM4/src/Makefile.PL3
1 files changed, 3 insertions, 0 deletions
diff --git a/RPM4/src/Makefile.PL b/RPM4/src/Makefile.PL
index 009c45c..89dc752 100644
--- a/RPM4/src/Makefile.PL
+++ b/RPM4/src/Makefile.PL
@@ -25,8 +25,11 @@ foreach (qw(
$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");
$rpmv ||= $cfg{modversion};
+
+# Generate version-features flags depending on installed rpm version:
open(my $FH, "> rpmversion.h") or die "Can't open rpmversion.h";
print $FH "/* File generated by Makefile.PL\n";
print $FH ' * $Id$' . "\n";