Re: OCaml and static linking (was old thread: Re: Issues with Ocaml and Static Linking)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jason L Tibbitts III wrote:
"RWMJ" == Richard W M Jones <rjones@xxxxxxxxxx> 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

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

--
Fedora-packaging mailing list
Fedora-packaging@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-packaging

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux