.gear/ocaml-re.spec | 90 ++++++++++++++++++++++ .gear/rules | 3 + .../tags/a3e026c05a01355cc664188eafdcd17a98048cd8 | 12 +++ .gear/tags/list | 1 + lib/core.ml | 6 ++ 5 files changed, 112 insertions(+) diff --git a/.gear/ocaml-re.spec b/.gear/ocaml-re.spec new file mode 100644 index 0000000..39af7c4 --- /dev/null +++ b/.gear/ocaml-re.spec @@ -0,0 +1,90 @@ +%def_without check +Name: ocaml-re +Version: 1.10.3 +Release: alt2 +Summary: A regular expression library for OCaml +License: LGPLv2.1 with OCaml-LGPL-linking-exception +Url: https://github.com/ocaml/ocaml-re +Source0: ocaml-re-%version.tar +Patch0: %name-%version-alt.patch +Group: Development/ML +BuildRequires: ocaml +BuildRequires: dune +%if_with check +BuildRequires: ocaml-ounit-devel +%endif + +%description +A pure OCaml regular expression library. Supports Perl-style regular +expressions, Posix extended regular expressions, Emacs-style regular +expressions, and shell-style file globbing. It is also possible to +build regular expressions by combining simpler regular expressions. +There is also a subset of the PCRE interface available in the Re.pcre +library. + +%package devel +Summary: Development files for %name +Requires: %name = %EVR +Group: Development/ML + +%description devel +The %name-devel package contains libraries and signature files for +developing applications that use %name. + +%prep +%setup +%patch0 -p1 + +%build +%dune_build -p re + +%install +%dune_install + +%check +sed -si 's,oUnit,ounit2,' lib_test/fort_unit/dune +%dune_check -p re + +%files -f ocaml-files.runtime +%doc CHANGES.md README.md + +%files devel -f ocaml-files.devel + +%changelog +* Tue Nov 02 2021 Anton Farygin 1.10.3-alt2 +- disabled tests for bootstrap ocaml-4.13 + +* Mon Oct 04 2021 Anton Farygin 1.10.3-alt1 +- 1.10.3 + +* Thu May 20 2021 Anton Farygin 1.9.0-alt3 +- simplified specfile with rpm-build-ocaml 1.4 + +* Thu Sep 10 2020 Anton Farygin 1.9.0-alt2 +- built as release (dune build -p) against incomplete dependencies + in devel packages + +* Thu Aug 08 2019 Anton Farygin 1.9.0-alt1 +- 1.9.0 + +* Sun Jan 20 2019 Anton Farygin 1.8.0-alt5 +- fixed built with dune-1.6.4 + +* Mon Oct 29 2018 Anton Farygin 1.8.0-alt4 +- fixed install section with dune-1.4.0 + +* Fri Oct 26 2018 Anton Farygin 1.8.0-alt3 +- all development stuff were moved to the devel package + +* Thu Oct 18 2018 Anton Farygin 1.8.0-alt2 +- rebuilt with ocaml-4.07.1 + +* Sat Aug 11 2018 Anton Farygin 1.8.0-alt1 +- 1.8.0 + +* Sat May 19 2018 Anton Farygin 1.7.1-alt2 +- rebuilt for ocaml 4.06.1 + +* Tue May 15 2018 Anton Farygin 1.7.1-alt1 +- first build for ALT, based on RH spec + diff --git a/.gear/rules b/.gear/rules new file mode 100644 index 0000000..7bec7f9 --- /dev/null +++ b/.gear/rules @@ -0,0 +1,3 @@ +spec: .gear/ocaml-re.spec +tar: @version@:. +diff: @version@:. . name=@name@-@version@-alt.patch diff --git a/.gear/tags/a3e026c05a01355cc664188eafdcd17a98048cd8 b/.gear/tags/a3e026c05a01355cc664188eafdcd17a98048cd8 new file mode 100644 index 0000000..24db7a1 --- /dev/null +++ b/.gear/tags/a3e026c05a01355cc664188eafdcd17a98048cd8 @@ -0,0 +1,12 @@ +object c5d5df80e128c3d7646b7d8b1322012c5fcc35f3 +type commit +tag 1.10.3 +tagger Rudi Grinberg 1631561302 -0600 + +Release 1.10.3 + +CHANGES: + +* Glob: change optional argument `?backslash_escapes` to `?match_backslashes`. + The interpretation of backslashes in the glob pattern remains unchanged with + the new option, but forward slashes match backslashes when activated (#199) diff --git a/.gear/tags/list b/.gear/tags/list new file mode 100644 index 0000000..5ecf56d --- /dev/null +++ b/.gear/tags/list @@ -0,0 +1 @@ +a3e026c05a01355cc664188eafdcd17a98048cd8 1.10.3 diff --git a/lib/core.ml b/lib/core.ml index 1a89b22..9a09816 100644 --- a/lib/core.ml +++ b/lib/core.ml @@ -1177,6 +1177,7 @@ let witness t = | End_of_str -> "" in witness (handle_case false t) +type 'a seq = 'a Seq.t module Seq = Rseq module List = Rlist module Group = Group @@ -1194,6 +1195,11 @@ let matches_gen = Gen.matches let split_gen = Gen.split let split_full_gen = Gen.split_full +let all_seq = Seq.all +let matches_seq = Seq.matches +let split_seq = Seq.split +let split_full_seq = Seq.split_full + type substrings = Group.t