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
|
|
|
#
|
2010-11-26 16:55:43 +01:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
# 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
|
2010-11-26 16:55:43 +01:00
|
|
|
Release: 32
|
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
|
2010-11-26 16:55:36 +01:00
|
|
|
%{__make} %{?_smp_mflags} re2c
|
2007-05-10 04:41:48 +02:00
|
|
|
#regenerate file scanner.cc
|
|
|
|
%{__rm} -f scanner.cc
|
2010-11-26 16:55:36 +01:00
|
|
|
./re2c -g scanner.re > scanner.cc
|
2007-05-10 04:41:48 +02:00
|
|
|
%{__rm} -f re2c scanner.o
|
2010-11-26 16:55:36 +01:00
|
|
|
%{__make} %{?_smp_mflags}
|
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
|