Name: ocaml-ancient Version: 0.9.0 Release: %mkrel 1 Summary: OCaml library for large memory structures and sharing License: LGPL + OCaml linking exception Group: Development/OCaml URL: http://git.annexia.org/?p=ocaml-ancient.git Source0: %{name}-%{version}.tgz Patch0: ocaml-ancient-0.9.0-fixgendoc.patch BuildRequires: ocaml-compiler BuildRequires: ocaml-findlib %description Ancient is an OCaml module that allows you to use in-memory data structures which are larger than available memory and so are kept in swap. If you try this in normal OCaml code, you'll find that the machine quickly descends into thrashing as the garbage collector repeatedly iterates over swapped memory structures. This module lets you break that limitation. Of course the module doesn't work by magic. If your program tries to access these large structures, they still need to be swapped back in, but it is suitable for large, sparsely accessed structures. Secondly, this module allows you to share those structures between processes. In this mode, the structures are backed by a disk file, and any process that has read/write access to that disk file can map that file in and see the structures. Developers should read the README.txt file included with the ocaml-ancient-devel package carefully. %package devel Summary: Development files for %{name} Group: Development/OCaml Requires: %{name} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and signature files for developing applications that use %{name}. %prep %setup -q -n %{name}-%{version} %patch0 -p1 %build pushd mmalloc %configure %make popd OCAML_VERSION_MAJOR=`ocaml ocaml_version.ml major` OCAML_VERSION_MINOR=`ocaml ocaml_version.ml minor` make ancient.cma ancient.cmxa META \ CFLAGS="-g -fPIC -Wall -Werror -I%{_libdir}/ocaml \ -DOCAML_VERSION_MAJOR=$OCAML_VERSION_MAJOR \ -DOCAML_VERSION_MINOR=$OCAML_VERSION_MINOR" make doc %install rm -rf %{buildroot} make install \ DESTDIR=%{buildroot} \ OCAMLLIBDIR=%{_libdir}/ocaml cp dllancient.so ancient.cmx mmalloc/libmmalloc.a \ %{buildroot}%{_libdir}/ocaml/ancient/ %files %doc README.txt %dir %{_libdir}/ocaml/ancient %{_libdir}/ocaml/ancient/META %{_libdir}/ocaml/ancient/ancient.cmi %{_libdir}/ocaml/ancient/ancient.cma %{_libdir}/ocaml/ancient/dllancient.so %files devel %doc html/ %{_libdir}/ocaml/ancient/ancient.a %{_libdir}/ocaml/ancient/ancient.cmx %{_libdir}/ocaml/ancient/ancient.cmxa %{_libdir}/ocaml/ancient/ancient.mli %{_libdir}/ocaml/ancient/libancient.a %{_libdir}/ocaml/ancient/libmmalloc.a %changelog * Tue Feb 26 2013 blue_prawn <blue_prawn> 0.9.0-1.mga3 + Revision: 400421 - build requires findlib - imported package ocaml-ancient