2020-01-14 15:29:52 +00:00
|
|
|
%ifnarch %{ocaml_native_compiler}
|
|
|
|
%global debug_package %{nil}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%global srcname parsexp
|
|
|
|
|
|
|
|
Name: ocaml-%{srcname}
|
|
|
|
Version: 0.13.0
|
2020-05-04 23:49:28 +00:00
|
|
|
Release: 8%{?dist}
|
2020-01-14 15:29:52 +00:00
|
|
|
Summary: S-expression parsing library
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
URL: https://github.com/janestreet/parsexp
|
|
|
|
Source0: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz
|
|
|
|
|
|
|
|
BuildRequires: ocaml >= 4.04.2
|
|
|
|
BuildRequires: ocaml-base-devel >= 0.13
|
|
|
|
BuildRequires: ocaml-dune >= 1.5.1
|
|
|
|
BuildRequires: ocaml-findlib
|
|
|
|
BuildRequires: ocaml-sexplib0-devel >= 0.13
|
|
|
|
|
|
|
|
%description
|
|
|
|
This library provides generic parsers for parsing S-expressions from
|
|
|
|
strings or other media.
|
|
|
|
|
|
|
|
The library is focused on performance but still provides full generic
|
|
|
|
parsers that can be used effortlessly with strings, bigstrings, lexing
|
|
|
|
buffers, character streams or any other source.
|
|
|
|
|
|
|
|
It provides three different classes 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 properly report
|
|
|
|
error locations at little cost; and
|
|
|
|
- the Concrete Syntax Tree parsers, producing 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 I/O functions. To read
|
|
|
|
s-expressions from files or other external sources, you should use
|
|
|
|
parsexp_io.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2020-01-16 19:10:09 +00:00
|
|
|
Requires: ocaml-base-devel%{?_isa}
|
2020-01-14 15:29:52 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and signature files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{srcname}-%{version}
|
|
|
|
|
|
|
|
%build
|
2020-01-16 19:10:09 +00:00
|
|
|
dune build %{?_smp_mflags}
|
2020-01-14 15:29:52 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
dune install --destdir=%{buildroot}
|
|
|
|
|
|
|
|
# We install the documentation with the doc macro
|
|
|
|
rm -fr %{buildroot}%{_prefix}/doc
|
|
|
|
|
|
|
|
%ifarch %{ocaml_native_compiler}
|
|
|
|
# Add missing executable bits
|
|
|
|
find %{buildroot}%{_libdir}/ocaml -name \*.cmxs -exec chmod 0755 {} \+
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%check
|
|
|
|
dune runtest
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc CHANGES.md README.org
|
|
|
|
%license LICENSE.md
|
|
|
|
%dir %{_libdir}/ocaml/%{srcname}/
|
|
|
|
%{_libdir}/ocaml/%{srcname}/META
|
|
|
|
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cma
|
|
|
|
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmi
|
|
|
|
%ifarch %{ocaml_native_compiler}
|
|
|
|
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmxs
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_libdir}/ocaml/%{srcname}/dune-package
|
|
|
|
%{_libdir}/ocaml/%{srcname}/opam
|
|
|
|
%ifarch %{ocaml_native_compiler}
|
|
|
|
%{_libdir}/ocaml/%{srcname}/%{srcname}*.a
|
|
|
|
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmx
|
|
|
|
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmxa
|
|
|
|
%endif
|
|
|
|
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmt
|
|
|
|
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmti
|
|
|
|
%{_libdir}/ocaml/%{srcname}/*.ml
|
|
|
|
%{_libdir}/ocaml/%{srcname}/*.mli
|
|
|
|
|
|
|
|
%changelog
|
2020-05-04 23:49:28 +00:00
|
|
|
* Mon May 04 2020 Richard W.M. Jones <rjones@redhat.com> - 0.13.0-8
|
|
|
|
- OCaml 4.11.0+dev2-2020-04-22 rebuild
|
|
|
|
|
2020-04-21 19:14:28 +00:00
|
|
|
* Tue Apr 21 2020 Richard W.M. Jones <rjones@redhat.com> - 0.13.0-7
|
|
|
|
- OCaml 4.11.0 pre-release attempt 2
|
|
|
|
|
2020-04-03 15:30:29 +00:00
|
|
|
* Fri Apr 03 2020 Richard W.M. Jones <rjones@redhat.com> - 0.13.0-6
|
|
|
|
- Update all OCaml dependencies for RPM 4.16.
|
|
|
|
|
2020-02-26 16:49:56 +00:00
|
|
|
* Wed Feb 26 2020 Richard W.M. Jones <rjones@redhat.com> - 0.13.0-5
|
|
|
|
- OCaml 4.10.0 final.
|
|
|
|
|
2020-01-29 19:42:23 +00:00
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2020-01-19 21:11:21 +00:00
|
|
|
* Sun Jan 19 2020 Richard W.M. Jones <rjones@redhat.com> - 0.13.0-3
|
|
|
|
- OCaml 4.10.0+beta1 rebuild.
|
|
|
|
|
2020-01-16 19:10:09 +00:00
|
|
|
* Thu Jan 16 2020 Jerry James <loganjerry@gmail.com> - 0.13.0-2
|
|
|
|
- Change -devel subpackage Requires to ocaml-base-devel
|
|
|
|
- Build in parallel
|
|
|
|
|
2020-01-14 15:29:52 +00:00
|
|
|
* Fri Jan 10 2020 Jerry James <loganjerry@gmail.com> - 0.13.0-1
|
|
|
|
- Initial RPM
|