81 lines
1.9 KiB
RPMSpec
81 lines
1.9 KiB
RPMSpec
|
#
|
||
|
# spec file for package re2c (Version 0.12.0)
|
||
|
#
|
||
|
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||
|
# 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
|
||
|
|
||
|
Name: re2c
|
||
|
Version: 0.12.0
|
||
|
Release: 1
|
||
|
#
|
||
|
License: Public Domain, Freeware
|
||
|
Group: Development/Libraries/C and C++
|
||
|
#
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
BuildRequires: gcc-c++
|
||
|
#
|
||
|
URL: http://re2c.org/
|
||
|
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
|
||
|
%setup
|
||
|
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}
|
||
|
%{__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
|
||
|
* Fri May 04 2007 - dmueller@suse.de
|
||
|
- update to version 0.12.0
|
||
|
* Sun Apr 01 2007 - mrueckert@suse.de
|
||
|
- update to version 0.11.3
|
||
|
* Sun Mar 04 2007 - mrueckert@suse.de
|
||
|
- update to version 0.11.2
|
||
|
* Tue Feb 20 2007 - mrueckert@suse.de
|
||
|
- This version fixes a warning in the generated code that some
|
||
|
compilers issue. No other changes have been made.
|