2007-05-10 04:41:48 +02:00
|
|
|
#
|
2013-08-03 06:11:29 +02:00
|
|
|
# spec file for package re2c
|
2007-05-10 04:41:48 +02:00
|
|
|
#
|
2021-05-10 10:05:59 +02:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2007-05-10 04:41:48 +02:00
|
|
|
#
|
2009-06-18 17:39:12 +02:00
|
|
|
# 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.
|
|
|
|
|
2019-03-11 09:39:22 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-05-10 04:41:48 +02:00
|
|
|
#
|
|
|
|
|
2008-03-19 01:57:55 +01:00
|
|
|
|
2007-05-10 04:41:48 +02:00
|
|
|
Name: re2c
|
2021-11-10 21:34:06 +01:00
|
|
|
Version: 2.2
|
2013-08-03 06:11:29 +02:00
|
|
|
Release: 0
|
2007-05-10 04:41:48 +02:00
|
|
|
Summary: Tool for generating C-based recognizers from regular expressions
|
2013-08-03 06:11:29 +02:00
|
|
|
License: SUSE-Public-Domain
|
|
|
|
Group: Development/Libraries/C and C++
|
2020-02-05 09:55:22 +01:00
|
|
|
URL: https://re2c.org/
|
2019-08-14 18:02:13 +02:00
|
|
|
Source: https://github.com/skvadrik/re2c/releases/download/%{version}/%{name}-%{version}.tar.xz
|
2016-01-30 22:54:15 +01:00
|
|
|
BuildRequires: bison
|
2014-05-12 17:04:11 +02:00
|
|
|
BuildRequires: gcc-c++
|
2021-11-12 18:13:00 +01:00
|
|
|
BuildRequires: python3-base >= 3.7
|
2007-05-10 04:41:48 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
re2c is a tool for writing fast and flexible lexers. Unlike other such
|
|
|
|
tools, it concentrates solely on generating efficient code for matching
|
2011-09-09 22:20:16 +02:00
|
|
|
regular expressions. This makes it suitable for a wide variety of
|
2007-05-10 04:41:48 +02:00
|
|
|
applications. The generated scanners approach hand-crafted ones in
|
|
|
|
terms of size and speed.
|
|
|
|
|
|
|
|
%prep
|
2019-08-14 18:02:13 +02:00
|
|
|
%autosetup
|
2007-05-10 04:41:48 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure
|
2019-08-14 18:02:13 +02:00
|
|
|
%if 0%{?do_profiling}
|
2020-02-05 09:55:22 +01:00
|
|
|
%make_build CFLAGS="%{optflags} %{cflags_profile_generate}"
|
2019-08-14 18:02:13 +02:00
|
|
|
# do not run profiling in parallel for reproducible builds (boo#1040589 boo#1102408)
|
2020-02-05 09:55:22 +01:00
|
|
|
%make_build CFLAGS="%{optflags} %{cflags_profile_generate}" check
|
|
|
|
%make_build clean
|
|
|
|
%make_build CFLAGS="%{optflags} %{cflags_profile_feedback}"
|
2019-08-14 18:02:13 +02:00
|
|
|
%else
|
2020-02-05 09:55:22 +01:00
|
|
|
%make_build CFLAGS="%{optflags}"
|
2019-08-14 18:02:13 +02:00
|
|
|
%endif
|
2008-03-19 01:57:55 +01:00
|
|
|
|
2007-05-10 04:41:48 +02:00
|
|
|
%install
|
2017-09-04 14:07:19 +02:00
|
|
|
%make_install
|
2007-05-10 04:41:48 +02:00
|
|
|
|
2018-03-15 11:11:50 +01:00
|
|
|
%check
|
|
|
|
make check %{?_smp_mflags}
|
|
|
|
|
2007-05-10 04:41:48 +02:00
|
|
|
%files
|
2019-08-14 18:02:13 +02:00
|
|
|
%license README.md
|
2018-03-15 11:11:50 +01:00
|
|
|
%doc CHANGELOG
|
2016-01-08 12:18:32 +01:00
|
|
|
%doc examples/
|
2017-09-04 14:07:19 +02:00
|
|
|
%{_bindir}/re2c
|
2020-08-13 11:20:25 +02:00
|
|
|
%{_bindir}/re2go
|
2018-03-15 11:11:50 +01:00
|
|
|
%{_mandir}/man1/re2c.1%{?ext_man}
|
2020-08-13 11:20:25 +02:00
|
|
|
%{_mandir}/man1/re2go.1.gz
|
2019-08-14 18:02:13 +02:00
|
|
|
%dir %{_datadir}/re2c
|
|
|
|
%dir %{_datadir}/re2c/stdlib
|
|
|
|
%{_datadir}/re2c/stdlib/unicode_categories.re
|
2007-05-10 04:41:48 +02:00
|
|
|
|
|
|
|
%changelog
|