|
|
0e48291 |
# OCaml packages not built on i686 since OCaml 5 / Fedora 39.
|
|
|
0e48291 |
ExcludeArch: %{ix86}
|
|
|
0e48291 |
|
|
|
ef17e87 |
%ifnarch %{ocaml_native_compiler}
|
|
|
ef17e87 |
%global debug_package %{nil}
|
|
|
ef17e87 |
%endif
|
|
|
ef17e87 |
|
|
|
6a2c7e8 |
Name: ocaml-markup
|
|
|
2571013 |
Version: 1.0.3
|
|
|
be5bea0 |
Release: 11%{?dist}
|
|
|
ef17e87 |
Summary: Error-recovering streaming HTML5 and XML parsers for OCaml
|
|
|
ef17e87 |
|
|
|
ef17e87 |
License: MIT
|
|
|
2571013 |
URL: https://aantron.github.io/markup.ml/
|
|
|
6a2c7e8 |
Source0: https://github.com/aantron/markup.ml/archive/%{version}/markup-%{version}.tar.gz
|
|
|
ef17e87 |
|
|
|
2571013 |
BuildRequires: ocaml >= 4.03.0
|
|
|
2571013 |
BuildRequires: ocaml-bisect-ppx-devel >= 2.5.0
|
|
|
4e970e3 |
BuildRequires: ocaml-dune >= 2.7.0
|
|
|
ef17e87 |
BuildRequires: ocaml-lwt-devel
|
|
|
ef17e87 |
BuildRequires: ocaml-ounit-devel
|
|
|
ef17e87 |
BuildRequires: ocaml-uutf-devel >= 1.0.0
|
|
|
ef17e87 |
|
|
|
ef17e87 |
%description
|
|
|
ef17e87 |
Markup.ml is a pair of parsers implementing the HTML5 and XML
|
|
|
ef17e87 |
specifications, including error recovery. Usage is simple, because each
|
|
|
ef17e87 |
parser is a function from byte streams to parsing signal streams.
|
|
|
ef17e87 |
|
|
|
ef17e87 |
In addition to being error-correcting, the parsers are:
|
|
|
ef17e87 |
- **streaming**: parsing partial input and emitting signals while more
|
|
|
ef17e87 |
input is still being received;
|
|
|
ef17e87 |
- **lazy**: not parsing input unless you have requested the next parsing
|
|
|
ef17e87 |
signal, so you can easily stop parsing part-way through a document;
|
|
|
ef17e87 |
- **non-blocking**: they can be used with Lwt, but still provide a
|
|
|
ef17e87 |
straightforward synchronous interface for simple usage; and
|
|
|
ef17e87 |
- **one-pass**: memory consumption is limited since the parsers don't
|
|
|
ef17e87 |
build up a document representation, nor buffer input beyond a small
|
|
|
ef17e87 |
amount of lookahead.
|
|
|
ef17e87 |
|
|
|
ef17e87 |
The parsers detect character encodings automatically, and emit everything
|
|
|
ef17e87 |
in UTF-8. The HTML parser understands SVG and MathML, in addition to
|
|
|
ef17e87 |
HTML5.
|
|
|
ef17e87 |
|
|
|
ef17e87 |
%package devel
|
|
|
ef17e87 |
Summary: Development files for %{name}
|
|
|
ef17e87 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
5931d99 |
Requires: ocaml-uutf-devel%{?_isa}
|
|
|
ef17e87 |
|
|
|
ef17e87 |
%description devel
|
|
|
ef17e87 |
The %{name}-devel package contains libraries and signature files for
|
|
|
ef17e87 |
developing applications that use %{name}.
|
|
|
ef17e87 |
|
|
|
ef17e87 |
%package lwt
|
|
|
ef17e87 |
Summary: Adapter between ocaml-markup and ocaml-lwt
|
|
|
ef17e87 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
ef17e87 |
|
|
|
ef17e87 |
%description lwt
|
|
|
ef17e87 |
This package contains an adapter between Markup.ml and Lwt.
|
|
|
ef17e87 |
|
|
|
ef17e87 |
%package lwt-devel
|
|
|
ef17e87 |
Summary: Development files for %{name}-lwt
|
|
|
ef17e87 |
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
|
|
ef17e87 |
Requires: %{name}-lwt%{?_isa} = %{version}-%{release}
|
|
|
ef17e87 |
Requires: ocaml-lwt-devel%{?_isa}
|
|
|
ef17e87 |
|
|
|
ef17e87 |
%description lwt-devel
|
|
|
ef17e87 |
The %{name}-lwt-devel package contains libraries and signature files for
|
|
|
ef17e87 |
developing applications that use %{name}-lwt.
|
|
|
ef17e87 |
|
|
|
ef17e87 |
%prep
|
|
|
6a2c7e8 |
%autosetup -n markup.ml-%{version} -p1
|
|
|
ef17e87 |
|
|
|
ef17e87 |
# The uchar package is a forward compatibility package for OCaml versions prior
|
|
|
ef17e87 |
# to 4.03. We have a later OCaml in Fedora; uchar is in the standard library.
|
|
|
ef17e87 |
# Nothing in this package directly refers to uchar (only indirectly via uutf),
|
|
|
ef17e87 |
# so just remove the reference to it.
|
|
|
ef17e87 |
sed -i '/uchar/d' markup.opam
|
|
|
ef17e87 |
|
|
|
ef17e87 |
%build
|
|
|
6a2c7e8 |
%dune_build
|
|
|
ef17e87 |
|
|
|
ef17e87 |
%install
|
|
|
6a2c7e8 |
%dune_install -s
|
|
|
ef17e87 |
|
|
|
ef17e87 |
%check
|
|
|
6a2c7e8 |
%dune_check
|
|
|
ef17e87 |
|
|
|
6a2c7e8 |
%files -f .ofiles-markup
|
|
|
ef17e87 |
%doc README.md
|
|
|
ef17e87 |
%license LICENSE.md
|
|
|
ef17e87 |
|
|
|
6a2c7e8 |
%files devel -f .ofiles-markup-devel
|
|
|
ef17e87 |
|
|
|
6a2c7e8 |
%files lwt -f .ofiles-markup-lwt
|
|
|
6a2c7e8 |
|
|
|
6a2c7e8 |
%files lwt-devel -f .ofiles-markup-lwt-devel
|
|
|
ef17e87 |
|
|
|
ef17e87 |
%changelog
|
|
|
be5bea0 |
* Tue Dec 12 2023 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-11
|
|
|
be5bea0 |
- OCaml 5.1.1 rebuild for Fedora 40
|
|
|
be5bea0 |
|
|
|
51cc0c4 |
* Thu Oct 05 2023 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-10
|
|
|
51cc0c4 |
- OCaml 5.1 rebuild for Fedora 40
|
|
|
51cc0c4 |
|
|
|
e90c227 |
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-9
|
|
|
e90c227 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
e90c227 |
|
|
|
b3de4a3 |
* Tue Jul 11 2023 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-8
|
|
|
b3de4a3 |
- OCaml 5.0 rebuild for Fedora 39
|
|
|
b3de4a3 |
|
|
|
0dec0a7 |
* Mon Jul 10 2023 Jerry James <loganjerry@gmail.com> - 1.0.3-7
|
|
|
0dec0a7 |
- OCaml 5.0.0 rebuild
|
|
|
0dec0a7 |
|
|
|
5609aa9 |
* Tue Jan 24 2023 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-6
|
|
|
5609aa9 |
- Rebuild OCaml packages for F38
|
|
|
5609aa9 |
|
|
|
d5d60e6 |
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-5
|
|
|
d5d60e6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
d5d60e6 |
|
|
|
6b3a157 |
* Thu Aug 18 2022 Jerry James <loganjerry@gmail.com> - 1.0.3-4
|
|
|
6b3a157 |
- Rebuild for ocaml-lwt 5.6.1
|
|
|
6b3a157 |
|
|
|
38830ae |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-3
|
|
|
38830ae |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
38830ae |
|
|
|
6a2c7e8 |
* Wed Jul 20 2022 Jerry James <loganjerry@gmail.com> - 1.0.3-2
|
|
|
6a2c7e8 |
- Use new OCaml macros
|
|
|
6a2c7e8 |
|
|
|
60e5148 |
* Sun Jun 19 2022 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-2
|
|
|
60e5148 |
- OCaml 4.14.0 rebuild
|
|
|
60e5148 |
|
|
|
2571013 |
* Wed Apr 27 2022 Jerry James <loganjerry@gmail.com> - 1.0.3-1
|
|
|
2571013 |
- Version 1.0.3
|
|
|
2571013 |
- Drop upstreamed patch for OCaml 4.13.1 compatibility
|
|
|
2571013 |
|
|
|
9fd3fb7 |
* Mon Feb 28 2022 Jerry James <loganjerry@gmail.com> - 1.0.2-7
|
|
|
9fd3fb7 |
- Rebuild for ocaml-uutf 1.0.3
|
|
|
9fd3fb7 |
|
|
|
de5145c |
* Fri Feb 04 2022 Richard W.M. Jones <rjones@redhat.com> - 1.0.2-6
|
|
|
de5145c |
- OCaml 4.13.1 rebuild to remove package notes
|
|
|
de5145c |
|
|
|
9b24ac0 |
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-5
|
|
|
9b24ac0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
9b24ac0 |
|
|
|
e00c3de |
* Mon Jan 3 2022 Jerry James <loganjerry@gmail.com> - 1.0.2-4
|
|
|
4425909 |
- Rebuild for changed ocaml-lwt hashes
|
|
|
4425909 |
|
|
|
cb4cc86 |
* Tue Oct 05 2021 Richard W.M. Jones <rjones@redhat.com> - 1.0.2-3
|
|
|
cb4cc86 |
- OCaml 4.13.1 build
|
|
|
cb4cc86 |
|
|
|
ae8953e |
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-2
|
|
|
ae8953e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
ae8953e |
|
|
|
e327e45 |
* Mon Jul 5 2021 Jerry James <loganjerry@gmail.com> - 1.0.2-1
|
|
|
e327e45 |
- Version 1.0.2
|
|
|
e327e45 |
|
|
|
25a2045 |
* Tue Jun 22 2021 Jerry James <loganjerry@gmail.com> - 1.0.1-1
|
|
|
25a2045 |
- Version 1.0.1
|
|
|
25a2045 |
|
|
|
6ae87fd |
* Thu Jun 3 2021 Richard W.M. Jones <rjones@redhat.com> - 1.0.0-6
|
|
|
6ae87fd |
- Rebuild for new ocaml-lwt.
|
|
|
6ae87fd |
|
|
|
8123031 |
* Mon Mar 1 21:30:59 GMT 2021 Richard W.M. Jones <rjones@redhat.com> - 1.0.0-5
|
|
|
8123031 |
- OCaml 4.12.0 build
|
|
|
8123031 |
|
|
|
0524d94 |
* Mon Feb 22 2021 Jerry James <loganjerry@gmail.com> - 1.0.0-4
|
|
|
0524d94 |
- Rebuild for ocaml-lwt 5.4.0
|
|
|
0524d94 |
|
|
|
34e5b41 |
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-3
|
|
|
34e5b41 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
34e5b41 |
|
|
|
4e970e3 |
* Wed Dec 2 2020 Jerry James <loganjerry@gmail.com> - 1.0.0-2
|
|
|
4e970e3 |
- Upstream re-released version 1.0.0
|
|
|
4e970e3 |
|
|
|
a3920f4 |
* Fri Oct 23 2020 Jerry James <loganjerry@gmail.com> - 1.0.0-1
|
|
|
a3920f4 |
- Version 1.0.0
|
|
|
a3920f4 |
|
|
|
b95622f |
* Tue Sep 01 2020 Richard W.M. Jones <rjones@redhat.com> - 0.8.2-12
|
|
|
b95622f |
- OCaml 4.11.1 rebuild
|
|
|
b95622f |
|
|
|
239e0ae |
* Fri Aug 21 2020 Richard W.M. Jones <rjones@redhat.com> - 0.8.2-11
|
|
|
239e0ae |
- OCaml 4.11.0 rebuild
|
|
|
239e0ae |
|
|
|
bbcf873 |
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.2-10
|
|
|
bbcf873 |
- Second attempt - Rebuilt for
|
|
|
bbcf873 |
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
bbcf873 |
|
|
|
bdd96aa |
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.2-9
|
|
|
bdd96aa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
bdd96aa |
|
|
|
7c2bff1 |
* Tue May 05 2020 Richard W.M. Jones <rjones@redhat.com> - 0.8.2-8
|
|
|
7c2bff1 |
- OCaml 4.11.0+dev2-2020-04-22 rebuild
|
|
|
7c2bff1 |
|
|
|
65ab108 |
* Tue Apr 21 2020 Richard W.M. Jones <rjones@redhat.com> - 0.8.2-7
|
|
|
65ab108 |
- OCaml 4.11.0 pre-release attempt 2
|
|
|
65ab108 |
|
|
|
6a8d590 |
* Sat Apr 04 2020 Richard W.M. Jones <rjones@redhat.com> - 0.8.2-6
|
|
|
6a8d590 |
- Update all OCaml dependencies for RPM 4.16.
|
|
|
6a8d590 |
|
|
|
90cecc5 |
* Wed Feb 26 2020 Richard W.M. Jones <rjones@redhat.com> - 0.8.2-5
|
|
|
90cecc5 |
- OCaml 4.10.0 final.
|
|
|
90cecc5 |
|
|
|
7261ed5 |
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.2-4
|
|
|
7261ed5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
7261ed5 |
|
|
|
ab5cb9b |
* Wed Jan 22 2020 Jerry James <loganjerry@gmail.com> - 0.8.2-3
|
|
|
ab5cb9b |
- OCaml 4.10.0+beta1 rebuild.
|
|
|
ab5cb9b |
|
|
|
5931d99 |
* Thu Jan 16 2020 Jerry James <loganjerry@gmail.com> - 0.8.2-2
|
|
|
5931d99 |
- Add ocaml-uutf-devel R to -devel
|
|
|
5931d99 |
- Add ocaml-bisect-ppx-devel R to -lwt-devel
|
|
|
5931d99 |
- Build in parallel
|
|
|
5931d99 |
|
|
|
ef17e87 |
* Fri Jan 10 2020 Jerry James <loganjerry@gmail.com> - 0.8.2-1
|
|
|
ef17e87 |
- Initial RPM
|