----- Original Message -----
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.
This has been fixed by [1]. In the newest spec2scl, evaluating the above line gives
Requires: %{?scl_prefix}perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`";
echo $version))
which should be exactly what you need. This is a part of update that I just pushed to
stable on F18 and EPEL6. So you will be able to install via yum soon (if you're using
python's easy_install or pip to install newest scl, you can of course install from
there, too).
Andrew
--
Regards,
Bohuslav "Slavek" Kabrda.
[1]
https://bitbucket.org/bkabrda/spec2scl/commits/4fb75bd5abd674efc5f4677eb5...