2007-05-10 04:41:48 +02:00
|
|
|
#
|
2008-06-30 19:19:37 +02:00
|
|
|
# spec file for package re2c (Version 0.13.5)
|
2007-05-10 04:41:48 +02:00
|
|
|
#
|
2008-02-08 20:33:55 +01:00
|
|
|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-05-10 04:41:48 +02:00
|
|
|
# This file and all modifications and additions to the pristine
|
|
|
|
# package are under the same license as the package itself.
|
|
|
|
#
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-03-19 01:57:55 +01:00
|
|
|
|
2007-05-10 04:41:48 +02:00
|
|
|
Name: re2c
|
2007-06-25 22:45:29 +02:00
|
|
|
BuildRequires: gcc-c++
|
2008-06-30 19:19:37 +02:00
|
|
|
Version: 0.13.5
|
2008-02-08 20:33:55 +01:00
|
|
|
Release: 1
|
2007-05-10 04:41:48 +02:00
|
|
|
License: Public Domain, Freeware
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2008-02-08 20:33:55 +01:00
|
|
|
Url: http://re2c.org/
|
2007-05-10 04:41:48 +02:00
|
|
|
Source: %{name}-%{version}.tar.bz2
|
|
|
|
Summary: Tool for generating C-based recognizers from regular expressions
|
|
|
|
|
|
|
|
%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 make it suitable for a wide variety of
|
|
|
|
applications. The generated scanners approach hand-crafted ones in
|
|
|
|
terms of size and speed.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Dan Nuffer
|
|
|
|
|
|
|
|
%prep
|
2008-03-19 01:57:55 +01:00
|
|
|
%setup -q
|
2007-05-10 04:41:48 +02:00
|
|
|
find -type d -name .svn -print0 | xargs -r0 rm -rf
|
|
|
|
find CHANGELOG lessons examples -type f -print0 \
|
|
|
|
| xargs -r0 chmod -v a-x
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure
|
|
|
|
%{__make} re2c
|
|
|
|
#regenerate file scanner.cc
|
|
|
|
%{__rm} -f scanner.cc
|
|
|
|
./re2c scanner.re > scanner.cc
|
|
|
|
%{__rm} -f re2c scanner.o
|
|
|
|
%{__make}
|
2008-03-19 01:57:55 +01:00
|
|
|
|
|
|
|
%check
|
2007-05-10 04:41:48 +02:00
|
|
|
%{__make} test
|
|
|
|
|
|
|
|
%install
|
|
|
|
%makeinstall
|
|
|
|
|
|
|
|
%clean
|
|
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_bindir}/re2c
|
|
|
|
%{_mandir}/man1/re2c.1*
|
|
|
|
%doc doc/*.ps doc/sample.bib
|
|
|
|
%doc README CHANGELOG
|
|
|
|
%doc lessons/ examples/
|
|
|
|
|
|
|
|
%changelog
|
2008-06-30 19:19:37 +02:00
|
|
|
* Thu Jun 26 2008 mmarek@suse.cz
|
|
|
|
- updated to version 0.13.5
|
|
|
|
* Fixed sf#1952896 Segfault in re2c::Scanner::scan.
|
|
|
|
* Fixed sf#1952842 Regression.
|
2008-04-09 00:48:35 +02:00
|
|
|
* Mon Apr 07 2008 mmarek@suse.cz
|
|
|
|
- updated to version 0.13.4
|
|
|
|
* Added transparent handling of #line directives in input files.
|
|
|
|
* Added re2c:yyfill:check inplace configuration.
|
|
|
|
* Added re2c:define:YYSETSTATE:naked inplace configuration.
|
|
|
|
* Added re2c:flags:w and re2c:flags:u inplace configurations.
|
|
|
|
* Added the ability to add rules in 'use:re2c' blocks.
|
|
|
|
* Changed -r flag to accept only 'rules:re2c' and 'use:re2c'
|
|
|
|
blocks.
|
2008-03-19 01:57:55 +01:00
|
|
|
* Mon Mar 17 2008 crrodriguez@suse.de
|
|
|
|
- update to version 0.13.3 , required for new PHP language parser
|
|
|
|
* Added -r flag to allow reuse of scanner definitions.
|
|
|
|
* Added -F flag to support flex syntax in rules.
|
|
|
|
* Fixed SEGV in scanner that occurs with very large blocks.
|
|
|
|
* Fixed issue with unused yybm.
|
|
|
|
* Partial support for flex syntax.
|
|
|
|
* Changed to allow /* comments with -c switch.
|
|
|
|
* Added flag -D/--emit-dot.
|
2008-02-08 20:33:55 +01:00
|
|
|
* Mon Feb 04 2008 mmarek@suse.cz
|
|
|
|
- updated to version 0.13.1
|
|
|
|
* build fixes for non-linux platforms only
|
|
|
|
* Mon Jun 25 2007 dmueller@suse.de
|
2007-06-25 22:45:29 +02:00
|
|
|
- add gcc-c++ buildrequires
|
2008-02-08 20:33:55 +01:00
|
|
|
* Mon Jun 25 2007 dmueller@suse.de
|
2007-06-25 17:53:49 +02:00
|
|
|
- update to versoin 0.13.0:
|
|
|
|
* Fixed issue with short form of switches and parameter if not first switch.
|
|
|
|
* Fixed #1708378 segfault in actions.cc.
|
|
|
|
* Added -c and -t to generate scanners with (f)lex-like condition support.
|
2008-02-08 20:33:55 +01:00
|
|
|
* Fri May 04 2007 dmueller@suse.de
|
2007-05-10 04:41:48 +02:00
|
|
|
- update to version 0.12.0
|
2008-04-09 00:48:35 +02:00
|
|
|
* Mon Apr 02 2007 mrueckert@suse.de
|
2007-05-10 04:41:48 +02:00
|
|
|
- update to version 0.11.3
|
2008-02-08 20:33:55 +01:00
|
|
|
* Sun Mar 04 2007 mrueckert@suse.de
|
2007-05-10 04:41:48 +02:00
|
|
|
- update to version 0.11.2
|
2008-02-08 20:33:55 +01:00
|
|
|
* Tue Feb 20 2007 mrueckert@suse.de
|
2007-05-10 04:41:48 +02:00
|
|
|
- This version fixes a warning in the generated code that some
|
|
|
|
compilers issue. No other changes have been made.
|