e047d579ca
* Syntax expansion and various updates * See CHANGELOG for in-depth details - Rebase patch to apply: * re2c-nogenerationdatedefault.patch OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/re2c?expand=0&rev=20
61 lines
1.8 KiB
RPMSpec
61 lines
1.8 KiB
RPMSpec
#
|
|
# spec file for package re2c
|
|
#
|
|
# Copyright (c) 2016 SUSE LINUX 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
|
|
Version: 0.15.3
|
|
Release: 0
|
|
Summary: Tool for generating C-based recognizers from regular expressions
|
|
License: SUSE-Public-Domain
|
|
Group: Development/Libraries/C and C++
|
|
Url: http://re2c.org/
|
|
Source: https://github.com/skvadrik/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz
|
|
Patch0: re2c-nogenerationdatedefault.patch
|
|
BuildRequires: gcc-c++
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%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.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0 -p1
|
|
|
|
%build
|
|
%configure
|
|
make %{?_smp_mflags}
|
|
|
|
%check
|
|
make check %{?_smp_mflags}
|
|
|
|
%install
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%{_bindir}/re2c
|
|
%{_mandir}/man1/re2c.1*
|
|
%doc doc/*.ps doc/sample.bib
|
|
%doc README CHANGELOG
|
|
%doc examples/
|
|
|
|
%changelog
|