]> git.ipfire.org Git - pakfire.git/commitdiff
perl.macro: Add "perl_version"
authorStefan Schantl <stefan.schantl@ipfire.org>
Sun, 16 Oct 2016 19:58:11 +0000 (15:58 -0400)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 16 Oct 2016 20:17:26 +0000 (16:17 -0400)
This variable is used to store the current used perl version, which
will be used in various external perl modules to track API dependencies.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
macros/perl.macro

index b29e028e15f0d3aca8e26e1cd11c3032529c6613..aa8fa811e435f284be8ad483be9d8a99f21a764c 100644 (file)
@@ -7,6 +7,7 @@ perl_vendorarch = %(eval "$(%{perl} -V:installvendorarch)"; echo ${installvendor
 perl_vendorlib  = %(eval "$(%{perl} -V:installvendorlib)";  echo ${installvendorlib})
 perl_archlib    = %(eval "$(%{perl} -V:installarchlib)";    echo ${installarchlib})
 perl_privlib    = %(eval "$(%{perl} -V:installprivlib)";    echo ${installprivlib})
+perl_version    = %(eval "$(%{perl} -V:version)";           echo ${version})
 
 perl_all_paths  = {%{perl_vendorarch},%{perl_vendorlib},%{perl_archlib},%{perl_privlib}}