%define oname parsexp Name: ocaml-%{oname} Version: 0.11.0 Release: %mkrel 1 Summary: S-expression parsing library License: Apache 2.0 Group: Development/OCaml URL: https://github.com/janestreet/%{oname} Source0: https://github.com/janestreet/%{oname}/archive/v%{version}.tar.gz BuildRequires: jbuilder BuildRequires: ocaml-compiler BuildRequires: ocaml-findlib BuildRequires: opam BuildRequires: ocaml-num BuildRequires: ocaml-sexplib0-devel %description This library provides generic parsers for parsing S-expressions from strings or other medium. The library is focused on performances but still provide full generic parsers that can be used with strings, bigstrings, lexing buffers, character streams or any other sources effortlessly. It provides three different class of parsers: - the normal parsers, producing [Sexp.t] or [Sexp.t list] values - the parsers with positions, building compact position sequences so that one can recover original positions in order to report properly located errors at little cost - the Concrete Syntax Tree parsers, produce values of type [Parsexp.Cst.t] which record the concrete layout of the s-expression syntax, including comments This library is portable and doesn't provide IO functions. To read s-expressions from files or other external sources, you should use parsexp_io. %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 %{oname}-%{version} %build jbuilder build --verbose -p %{oname} %_smp_mflags %check jbuilder runtest %install opam-installer --prefix=%{buildroot}%{_prefix} --libdir=%{buildroot}%{_libdir}/ocaml %{oname}.install rm -rf %{buildroot}/usr/doc # Makes *.cmxs executable such that they will be stripped. find %{buildroot} -name '*.cmxs' -exec chmod 0755 {} \; %files %license LICENSE.txt %dir %{_libdir}/ocaml/%{oname} %{_libdir}/ocaml/%{oname}/META %{_libdir}/ocaml/%{oname}/*.dune %{_libdir}/ocaml/%{oname}/*.a %{_libdir}/ocaml/%{oname}/*.cmi %{_libdir}/ocaml/%{oname}/*.cma %{_libdir}/ocaml/%{oname}/*.cmxa %{_libdir}/ocaml/%{oname}/*.cmxs %files devel %doc README.org CHANGES.md %{_libdir}/ocaml/%{oname}/opam %{_libdir}/ocaml/%{oname}/*.cmt %{_libdir}/ocaml/%{oname}/*.cmti %{_libdir}/ocaml/%{oname}/*.cmx %{_libdir}/ocaml/%{oname}/*.mli %{_libdir}/ocaml/%{oname}/*.ml %{_libdir}/ocaml/%{oname}/*.ml-gen %changelog * Tue Oct 23 2018 pterjan <pterjan> 0.11.0-1.mga7 + Revision: 1324484 - Add BuildRequires - imported package ocaml-parsexp