%define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0) %define debug_package %{nil} Name: ocaml-bin-prot Version: 1.0.5 Release: 2%{?dist} Summary: Read and write OCaml values in a type-safe binary protocol Group: Development/Libraries License: LGPLv2+ with exceptions and BSD URL: http://ocaml.janestcapital.com/?q=node/13 Source0: http://janestcapital.com/ocaml/bin-prot-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: ocaml >= 3.10.0 BuildRequires: ocaml-findlib-devel BuildRequires: ocaml-ocamldoc BuildRequires: ocaml-camlp4-devel BuildRequires: ocaml-ounit-devel BuildRequires: ocaml-type-conv >= 1.5.0 BuildRequires: chrpath BuildRequires: dos2unix %define _use_internal_dependency_generator 0 %define __find_requires /usr/lib/rpm/ocaml-find-requires.sh %define __find_provides /usr/lib/rpm/ocaml-find-provides.sh %description This library contains functionality for reading and writing OCaml values in a type-safe binary protocol. These functions are extremely efficient and provide users with a convenient and safe way of performing I/O on any extensionally defined data type. This means that functions, objects, and values whose type is bound through a polymorphic record field are not supported, but everything else is. As of now, there is no support for cyclic or shared values. Cyclic values will lead to non-termination whereas shared values, besides requiring significantly more space when encoded, may lead to a substantial increase in memory footprint when they are read back in. Currently only little endian (2) computer architectures are supported. Some architectures may potentially also suffer from data alignment issues with this library. Only Intel architectures are currently well-tested. Both 32bit and 64bit architectures are fully supported. %package devel Summary: Development files for %{name} Group: Development/Libraries 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 bin-prot-%{version} dos2unix LICENSE.Tywith %build make cat > README.Fedora < - 1.0.5-2 - Remove ExclusiveArch, but add a Fedora README file warning about shortcomings on non-x86 architectures. - Added missing dependency ocaml-type-conv. - Move *.ml file to devel package. * Sat May 3 2008 Richard W.M. Jones - 1.0.5-1 - Initial RPM release.