spec2scl issues
Bohuslav Kabrda
bkabrda at redhat.com
Mon Jan 7 06:35:30 UTC 2013
----- 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/4fb75bd5abd674efc5f4677eb5752d63d01c2827
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fedorahosted.org/pipermail/softwarecollections/attachments/20130107/f159d203/attachment.html>
More information about the softwarecollections
mailing list