re2c/re2c.spec
Martin Pluskal 8f7be9960f - Update to version 4.0.1:
* Added missing doc sources to the distribution tarball (#503)
  * Reworked C/C++ examples to avoid using new configuration aliases until the world has updated to re2c 4.0, made them compatible with C.
  * A few build system changes: increased CMake minimum required version to 3.15, added missing dependencies on doc sources in Makefile.am.
  * Fixed typos in docs.
	* Added a generic technique for describing language backends based on the idea of syntax files (#450).
	* Added support for new languages: D, Haskell, Java, JavaScript, OCaml, Python, V, Zig.
	* Added new record API for all languages (enabled with --api record, re2c:api = record) and made it the default API for Haskell and OCaml.
	* Renamed former “default API” to “simple API”, implemented it for all backends except Haskell and OCaml, and enabled by default API for C, D, Java, JavaScript, Python, V and Zig.
	* Added new code generation model - recursive functions (enabled with --recursive-functions), primarily to be used for functional languages.

OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/re2c?expand=0&rev=49
2024-12-04 09:36:39 +00:00

87 lines
2.5 KiB
RPMSpec

#
# spec file for package re2c
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: re2c
Version: 4.0.1
Release: 0
Summary: Tool for generating C-based recognizers from regular expressions
License: SUSE-Public-Domain
URL: https://re2c.org/
Source: https://github.com/skvadrik/re2c/releases/download/%{version}/%{name}-%{version}.tar.xz
BuildRequires: bison
BuildRequires: gcc-c++
BuildRequires: python3-base >= 3.7
%description
re2c is a tool for writing fast and flexible lexers. Unlike other such
tools, it concentrates solely on generating efficient code for matching
regular expressions. This makes it suitable for a wide variety of
applications. The generated scanners approach hand-crafted ones in
terms of size and speed.
%prep
%autosetup
%build
%configure
%if 0%{?do_profiling}
%make_build CFLAGS="%{optflags} %{cflags_profile_generate}"
# do not run profiling in parallel for reproducible builds (boo#1040589 boo#1102408)
%make_build CFLAGS="%{optflags} %{cflags_profile_generate}" check
%make_build clean
%make_build CFLAGS="%{optflags} %{cflags_profile_feedback}"
%else
%make_build CFLAGS="%{optflags}"
%endif
%install
%make_install
%check
%make_build check
%files
%license README.md
%doc CHANGELOG
%doc examples/
%{_bindir}/re2c
%{_bindir}/re2go
%{_bindir}/re2rust
%{_bindir}/re2d
%{_bindir}/re2hs
%{_bindir}/re2js
%{_bindir}/re2ocaml
%{_bindir}/re2py
%{_bindir}/re2v
%{_bindir}/re2zig
%{_mandir}/man1/re2c.1%{?ext_man}
%{_mandir}/man1/re2go.1%{?ext_man}
%{_mandir}/man1/re2rust.1%{?ext_man}
%{_mandir}/man1/re2d.1%{?ext_man}
%{_mandir}/man1/re2hs.1%{?ext_man}
%{_mandir}/man1/re2js.1%{?ext_man}
%{_mandir}/man1/re2ocaml.1%{?ext_man}
%{_mandir}/man1/re2py.1%{?ext_man}
%{_mandir}/man1/re2v.1%{?ext_man}
%{_mandir}/man1/re2zig.1%{?ext_man}
%dir %{_datadir}/re2c
%dir %{_datadir}/re2c/stdlib
%{_datadir}/re2c/stdlib/*
%changelog