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
|
|
|
#
|
2015-02-05 14:55:45 +01:00
|
|
|
# Copyright (c) 2015 SUSE LINUX 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
|
2015-10-05 16:36:51 +02:00
|
|
|
Version: 0.14.3
|
2013-08-03 06:11:29 +02:00
|
|
|
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/
|
2015-10-05 16:36:51 +02:00
|
|
|
Source: http://sourceforge.net/projects/re2c/files/re2c/%{version}/re2c-%{version}.tar.gz
|
2014-05-12 17:04:11 +02:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2015-02-05 14:55:45 +01:00
|
|
|
Patch0: re2c-nogenerationdatedefault.patch
|
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
|
2015-02-05 14:55:45 +01:00
|
|
|
%patch0 -p1
|
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-12-12 14:02:26 +01:00
|
|
|
make check %{?_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
|