diff --git a/README.md b/README.md new file mode 100644 index 0000000..ebcbd49 --- /dev/null +++ b/README.md @@ -0,0 +1,13 @@ +# ocaml-bin-prot + +[`Bin_prot`](https://github.com/janestreet/bin_prot) 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. diff --git a/ocaml-bin-prot.spec b/ocaml-bin-prot.spec index 701e484..0959699 100644 --- a/ocaml-bin-prot.spec +++ b/ocaml-bin-prot.spec @@ -4,7 +4,7 @@ Name: ocaml-%{srcname} Version: 0.14.0 Epoch: 1 -Release: 11%{?dist} +Release: 12%{?dist} Summary: Read and write OCaml values in a type-safe binary protocol # The project as a whole is MIT, but code in the src subdirectory is BSD. @@ -55,12 +55,13 @@ for developing applications that use %{name}. %autosetup -n %{upname}-%{version} %build -dune build %{?_smp_mflags} +dune build %{?_smp_mflags} --verbose --profile release +dune build %{?_smp_mflags} @doc -# Relink with RPM_LD_FLAGS. -pushd _build/default/src -ocamlmklib -g -ldopt "$RPM_LD_FLAGS" -o bin_prot_stubs blit_stubs.o -popd +# Relink with Fedora linker flags +cd _build/default/src +ocamlmklib -g -ldopt "%{build_ldflags}" -o bin_prot_stubs blit_stubs.o +cd - %install dune install --destdir=%{buildroot} @@ -107,6 +108,9 @@ rm -fr %{buildroot}%{_prefix}/doc %{_libdir}/ocaml/%{upname}/*/*.mli %changelog +* Tue Nov 30 2021 Jerry James - 1:0.14.0-12 +- Rebuild for ocaml-sexplib0 0.15.0 + * Tue Oct 05 2021 Richard W.M. Jones - 1:0.14.0-11 - OCaml 4.13.1 build