I am trying to SCL-ize a set of spec files generated by cpanspec and
spec2scl consistently modifies the line
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`";
echo $version))
to be
%{?scl:scl enable %{scl} '}
Requires: %{?scl_prefix}perl(:MODULE_COMPAT_%(eval "`%{__perl}
-V:version`"; echo $version))
%{?scl:'}
But the preamble isn't a script so this should probably be changed to:
Requires: %{?scl_prefix}perl(:MODULE_COMPAT_%(eval
"`%{?scl:scl enable %{scl} '}%{__perl} -V:version%{?scl:'}`"; echo
$version))
but actually in a Perl SCL environment %{__perl} is defined as
"%_scl_root/usr/bin/perl" so the wrapping in "scl enable %{scl}" is
not
necessary, so the wrapper lines could just be dropped in the preamble.
Andrew