OCaml and static linking (was old thread: Re: [Fedora-packaging] Issues with Ocaml and Static Linking)

Richard W.M. Jones rjones at redhat.com
Mon Jun 11 20:19:26 UTC 2007


Jason L Tibbitts III wrote:
>>>>>> "RWMJ" == Richard W M Jones <rjones at redhat.com> writes:
> 
> RWMJ> With the four packages I did so far, I ended up with %if %opt
> RWMJ> conditionals in the %files section. 
> 
> That seems distasteful for some reason.  Here are all of the %files
> sections:
> 
>   %files
>   %defattr(-,root,root,-)
>   %doc CHANGES README TODO
>   %{_libdir}/ocaml/calendar/*.cma
>   %{_libdir}/ocaml/calendar/*.cmi
> 
>   %files devel
>   %defattr(-,root,root,-)
>   %doc CHANGES README TODO
>   %{_libdir}/ocaml/calendar/META
>   %if %opt
>   %{_libdir}/ocaml/calendar/*.a
>   %{_libdir}/ocaml/calendar/*.cmxa
>   %endif
>   %{_libdir}/ocaml/calendar/*.mli
> 
> First, what owns the directory %{_libdir}/ocaml/calendar?
> 
> I'm not sure if it's less distasteful have the conditional or just do
> 
>   %{_libdir}/ocaml/calendar/*
>   %exclude %{_libdir}/ocaml/calendar/*.cm[ai]
> 
> or if that even works the way I'm hoping it does.

Does this look better?

http://www.annexia.org/tmp/ocaml/ocaml-calendar.spec

Rich.

-- 
Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom.  Registered in
England and Wales under Company Registration No. 03798903
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/fedora-packaging/attachments/20070611/ee065329/attachment.bin>


More information about the Fedora-packaging mailing list