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
|
|
|
#
|
2014-05-12 17:04:11 +02:00
|
|
|
# Copyright (c) 2014 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/
|
|
|
|
#
|
|
|
|
|
2008-03-19 01:57:55 +01:00
|
|
|
|
2007-05-10 04:41:48 +02:00
|
|
|
Name: re2c
|
2013-08-03 06:11:29 +02:00
|
|
|
Version: 0.13.6
|
|
|
|
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/
|
|
|
|
Source: %{name}-%{version}.tar.gz
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
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
|
2014-05-12 17:04:11 +02:00
|
|
|
find lessons examples -type f -print0 \
|
2007-05-10 04:41:48 +02:00
|
|
|
| xargs -r0 chmod -v a-x
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure
|
2014-05-12 17:04:11 +02:00
|
|
|
make %{?_smp_mflags} re2c
|
2007-05-10 04:41:48 +02:00
|
|
|
#regenerate file scanner.cc
|
2014-05-12 17:04:11 +02:00
|
|
|
rm -f scanner.cc
|
2010-11-26 16:55:36 +01:00
|
|
|
./re2c -g scanner.re > scanner.cc
|
2014-05-12 17:04:11 +02:00
|
|
|
rm -f re2c scanner.o
|
|
|
|
make %{?_smp_mflags}
|
2008-03-19 01:57:55 +01:00
|
|
|
|
|
|
|
%check
|
2014-05-12 17:04:11 +02:00
|
|
|
make test %{?_smp_mflags}
|
2007-05-10 04:41:48 +02:00
|
|
|
|
|
|
|
%install
|
2014-05-12 17:04:11 +02:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
2007-05-10 04:41:48 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_bindir}/re2c
|
|
|
|
%{_mandir}/man1/re2c.1*
|
|
|
|
%doc doc/*.ps doc/sample.bib
|
|
|
|
%doc README CHANGELOG
|
|
|
|
%doc lessons/ examples/
|
|
|
|
|
|
|
|
%changelog
|