From 1031292e08514fcb6e0b5271002707eb750f0eff Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Tue, 3 Feb 2009 09:15:57 +0000 Subject: Add new perl_convert_version macro to convert cpan version to rpm version --- build.macros.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.macros.in b/build.macros.in index 500020f..da63c12 100644 --- a/build.macros.in +++ b/build.macros.in @@ -222,6 +222,9 @@ GCONF_CONFIG_SOURCE=`%{_gconftool_bin} --get-default-source` %{_gconftool_bin} - # %{_mandir}/*/* # + +%perl_convert_version() %(perl -Mversion -E '$v=version->new(%{1})->normal; $v=~s/^v//; say $v') + # kept for compatibility, but should not be used, especially the ugly perl_archlib! %perl_sitearch %(eval "`perl -V:installsitearch`"; echo $installsitearch) %perl_archlib %(eval "`perl -V:installarchlib`"; echo $installarchlib) -- cgit v1.2.1