summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2017-11-01 17:38:36 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2017-11-06 11:20:40 +0100
commit47719544a26daa4c83225b9d53b95771d67c2e4b (patch)
tree254ac677fb25a050cbb8d33a963f7c074b2bbe5b
parent66504834514cdf96f5a366864982f0d2a0267ea2 (diff)
downloadperl-RPM4-47719544a26daa4c83225b9d53b95771d67c2e4b.tar
perl-RPM4-47719544a26daa4c83225b9d53b95771d67c2e4b.tar.gz
perl-RPM4-47719544a26daa4c83225b9d53b95771d67c2e4b.tar.bz2
perl-RPM4-47719544a26daa4c83225b9d53b95771d67c2e4b.tar.xz
perl-RPM4-47719544a26daa4c83225b9d53b95771d67c2e4b.zip
let rpm version to be known in cpan tester logs
in order to investigate some strange compilation failures
-rw-r--r--RPM4/src/Makefile.PL4
1 files changed, 3 insertions, 1 deletions
diff --git a/RPM4/src/Makefile.PL b/RPM4/src/Makefile.PL
index 0295f36..fd81e27 100644
--- a/RPM4/src/Makefile.PL
+++ b/RPM4/src/Makefile.PL
@@ -83,12 +83,14 @@ RPMCONSTTBL
$first . $second;
}
+my $v = $rpmv;
+$v =~ s/\./_/g;
WriteMakefile(
NAME => 'RPM4',
VERSION_FROM => '../lib/RPM4.pm',
OBJECT => "RPM4.o $obj",
INC => "-I$rpmheaderlocation",
LIBS => [ $cfg{libs} . " -lrpmsign -lrpmbuild $ldd" ],
- CCFLAGS => "$cfg{cflags} -Wall $fl",
+ CCFLAGS => "$cfg{cflags} -Wall $fl -DRPM$v",
depend => { "RPM4.xs" => join(" ", @rpmconstantfiles) },
);