spec2scl issues

Andrew Ford A.Ford at ford-mason.co.uk
Fri Jan 4 14:11:19 UTC 2013


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fedorahosted.org/pipermail/softwarecollections/attachments/20130104/2240b1e9/attachment.html>


More information about the softwarecollections mailing list