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
|
|
|
#
|
2017-09-04 14:07:19 +02:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
2007-05-10 04:41:48 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2008-03-19 01:57:55 +01:00
|
|
|
|
2007-05-10 04:41:48 +02:00
|
|
|
Name: re2c
|
2017-11-09 16:22:22 +01:00
|
|
|
Version: 1.0.3
|
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++
|
2014-05-12 17:04:11 +02:00
|
|
|
Url: http://re2c.org/
|
2016-01-30 22:54:15 +01:00
|
|
|
Source: https://github.com/skvadrik/re2c/releases/download/%{version}/%{name}-%{version}.tar.gz
|
2016-01-08 12:18:32 +01:00
|
|
|
Patch0: re2c-nogenerationdatedefault.patch
|
2016-01-30 22:54:15 +01:00
|
|
|
BuildRequires: bison
|
2014-05-12 17:04:11 +02:00
|
|
|
BuildRequires: gcc-c++
|
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
|
2008-03-19 01:57:55 +01:00
|
|
|
%setup -q
|
2015-02-05 14:55:45 +01:00
|
|
|
%patch0 -p1
|
2007-05-10 04:41:48 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure
|
2016-01-30 22:54:15 +01:00
|
|
|
make %{?_smp_mflags} V=1
|
2008-03-19 01:57:55 +01:00
|
|
|
|
|
|
|
%check
|
2014-12-12 14:02:26 +01:00
|
|
|
make check %{?_smp_mflags}
|
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
|
|
|
|
|
|
|
%files
|
|
|
|
%doc doc/*.ps doc/sample.bib
|
|
|
|
%doc README CHANGELOG
|
2016-01-08 12:18:32 +01:00
|
|
|
%doc examples/
|
2017-09-04 14:07:19 +02:00
|
|
|
%{_bindir}/re2c
|
|
|
|
%{_mandir}/man1/re2c.1%{ext_man}
|
2007-05-10 04:41:48 +02:00
|
|
|
|
|
|
|
%changelog
|