From 7539ec3aa4af4bccfa61c2edd10def1643fec358e4f01044730ec135b7021116 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 10 Nov 2021 20:34:06 +0000 Subject: [PATCH 1/2] Accepting request 930180 from home:danidoni:branches:devel:tools:compiler - update 2.2: - Added named blocks and block lists in directives. - Added local blocks ``/*!local:re2c ... */``. - Added in-block ``!include`` directive. - Added in-block ``!use`` directive. - Allowed reusable blocks without ``-r --reusable`` option. - Allowed customizing the generated code with configurations for directives ``max:re2c``, ``maxnmatch:re2c``, ``stags:re2c``, ``mtags:re2c`` and ``types:re2c`` (see directive descriptions for details). - Forbid arbitrary text at the end of ``max:re2c`` directive. This may break backwards compatibility, although it is unlikely that this was used by anyone. The change was necessary in order to allow customization of the generated code with configurations. - Deprecated configurations ``flags:i``, ``flags:no-debug-info`` in favour of the global options ``-i``, ``--no-debug-info``. - Reimplemented re2c test runner in Python (thanks to `Serghei Iakovlev `_). Improved integration with GitHub Actions. - Changes in the experimental libre2c library: added new algorithms that construct t-string or extract submatch on all repetitions; added TDFA benchmark written in Java by Angelo Borsotti. - Updated documentation. - Add python >= 3.7 dependency required by new tests. - Upstream added some tests written in python. The tests failed locally because the module dataclasses from python >= 3.7 were missing. On OBS the builds failed due to a timeout when trying to run those python tests. OBS-URL: https://build.opensuse.org/request/show/930180 OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/re2c?expand=0&rev=43 --- re2c-2.1.1.tar.xz | 3 --- re2c-2.2.tar.xz | 3 +++ re2c.changes | 30 ++++++++++++++++++++++++++++++ re2c.spec | 3 ++- 4 files changed, 35 insertions(+), 4 deletions(-) delete mode 100644 re2c-2.1.1.tar.xz create mode 100644 re2c-2.2.tar.xz diff --git a/re2c-2.1.1.tar.xz b/re2c-2.1.1.tar.xz deleted file mode 100644 index e6b935e..0000000 --- a/re2c-2.1.1.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:036ee264fafd5423141ebd628890775aa9447a4c4068a6307385d7366fe711f8 -size 1340740 diff --git a/re2c-2.2.tar.xz b/re2c-2.2.tar.xz new file mode 100644 index 0000000..9d01971 --- /dev/null +++ b/re2c-2.2.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0fc45e4130a8a555d68e230d1795de0216dfe99096b61b28e67c86dfd7d86bda +size 1460740 diff --git a/re2c.changes b/re2c.changes index df443c8..7f7e52a 100644 --- a/re2c.changes +++ b/re2c.changes @@ -1,3 +1,33 @@ +------------------------------------------------------------------- +Mon Nov 8 11:58:25 UTC 2021 - Daniel Donisa + +- update 2.2: + - Added named blocks and block lists in directives. + - Added local blocks ``/*!local:re2c ... */``. + - Added in-block ``!include`` directive. + - Added in-block ``!use`` directive. + - Allowed reusable blocks without ``-r --reusable`` option. + - Allowed customizing the generated code with configurations for directives + ``max:re2c``, ``maxnmatch:re2c``, ``stags:re2c``, ``mtags:re2c`` and + ``types:re2c`` (see directive descriptions for details). + - Forbid arbitrary text at the end of ``max:re2c`` directive. This may break + backwards compatibility, although it is unlikely that this was used by anyone. + The change was necessary in order to allow customization of the generated code + with configurations. + - Deprecated configurations ``flags:i``, ``flags:no-debug-info`` in favour of + the global options ``-i``, ``--no-debug-info``. + - Reimplemented re2c test runner in Python (thanks to + `Serghei Iakovlev `_). Improved integration + with GitHub Actions. + - Changes in the experimental libre2c library: added new algorithms that + construct t-string or extract submatch on all repetitions; added TDFA + benchmark written in Java by Angelo Borsotti. + - Updated documentation. +- Add python >= 3.7 dependency required by new tests. + - Upstream added some tests written in python. The tests failed locally + because the module dataclasses from python >= 3.7 were missing. On OBS + the builds failed due to a timeout when trying to run those python tests. + ------------------------------------------------------------------- Sun May 9 17:24:35 UTC 2021 - Dirk Müller diff --git a/re2c.spec b/re2c.spec index f381913..6ee770d 100644 --- a/re2c.spec +++ b/re2c.spec @@ -17,7 +17,7 @@ Name: re2c -Version: 2.1.1 +Version: 2.2 Release: 0 Summary: Tool for generating C-based recognizers from regular expressions License: SUSE-Public-Domain @@ -26,6 +26,7 @@ URL: https://re2c.org/ Source: https://github.com/skvadrik/re2c/releases/download/%{version}/%{name}-%{version}.tar.xz BuildRequires: bison BuildRequires: gcc-c++ +BuildRequires: python3 >= 3.7 %description re2c is a tool for writing fast and flexible lexers. Unlike other such From f5b8f8851413115f4adcc936eded9b957e5b6663f804865db388fcd321bc9e80 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 12 Nov 2021 17:13:00 +0000 Subject: [PATCH 2/2] Accepting request 931157 from home:dimstar:Factory - BuildRequire python3-base instead of full python3: allow to be slimmer. OBS-URL: https://build.opensuse.org/request/show/931157 OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/re2c?expand=0&rev=44 --- re2c.changes | 6 ++++++ re2c.spec | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/re2c.changes b/re2c.changes index 7f7e52a..6b2f448 100644 --- a/re2c.changes +++ b/re2c.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Nov 12 13:59:22 UTC 2021 - Dominique Leuenberger + +- BuildRequire python3-base instead of full python3: allow to be + slimmer. + ------------------------------------------------------------------- Mon Nov 8 11:58:25 UTC 2021 - Daniel Donisa diff --git a/re2c.spec b/re2c.spec index 6ee770d..7a067d4 100644 --- a/re2c.spec +++ b/re2c.spec @@ -26,7 +26,7 @@ URL: https://re2c.org/ Source: https://github.com/skvadrik/re2c/releases/download/%{version}/%{name}-%{version}.tar.xz BuildRequires: bison BuildRequires: gcc-c++ -BuildRequires: python3 >= 3.7 +BuildRequires: python3-base >= 3.7 %description re2c is a tool for writing fast and flexible lexers. Unlike other such