re2c/re2c.spec
Cristian Rodríguez a5abf0ff06 Accepting request 185695 from home:elvigia:branches:devel:tools:compiler
- version 0.13.6
* allow Yacc-style %{code brackets}%
* allow C++ // comments
* Fixed inplace configuration in -e mode
* Fixed Wrong start_label in -c mode.
* Fixed Unescaped backslash in file name of #line directive

OBS-URL: https://build.opensuse.org/request/show/185695
OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/re2c?expand=0&rev=7
2013-08-03 04:11:29 +00:00

76 lines
2.0 KiB
RPMSpec

#
# spec file for package re2c
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: re2c
BuildRequires: gcc-c++
Version: 0.13.6
Release: 0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: http://re2c.org/
Source: %{name}-%{version}.tar.gz
Summary: Tool for generating C-based recognizers from regular expressions
License: SUSE-Public-Domain
Group: Development/Libraries/C and C++
%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.
Authors:
--------
Dan Nuffer
%prep
%setup -q
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} %{?_smp_mflags} re2c
#regenerate file scanner.cc
%{__rm} -f scanner.cc
./re2c -g scanner.re > scanner.cc
%{__rm} -f re2c scanner.o
%{__make} %{?_smp_mflags}
%check
%{__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