- Update to version 1.2.1:
* Lots of changes, see provided CHANGELOG - Drop no longer needed re2c-nogenerationdatedefault.patch - Enable profile guided optimization during build OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/re2c?expand=0&rev=33
This commit is contained in:
committed by
Git OBS Bridge
parent
4fb8e5dd77
commit
22bf414e08
23
re2c.spec
23
re2c.spec
@@ -17,14 +17,13 @@
|
||||
|
||||
|
||||
Name: re2c
|
||||
Version: 1.1.1
|
||||
Version: 1.2.1
|
||||
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/re2c/releases/download/%{version}/%{name}-%{version}.tar.gz
|
||||
Patch0: re2c-nogenerationdatedefault.patch
|
||||
Source: https://github.com/skvadrik/re2c/releases/download/%{version}/%{name}-%{version}.tar.xz
|
||||
BuildRequires: bison
|
||||
BuildRequires: gcc-c++
|
||||
|
||||
@@ -36,11 +35,19 @@ applications. The generated scanners approach hand-crafted ones in
|
||||
terms of size and speed.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
%autosetup
|
||||
|
||||
%build
|
||||
%configure
|
||||
make %{?_smp_mflags} V=1
|
||||
%if 0%{?do_profiling}
|
||||
make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_generate}" V=1
|
||||
# do not run profiling in parallel for reproducible builds (boo#1040589 boo#1102408)
|
||||
make CFLAGS="%{optflags} %{cflags_profile_generate}" check
|
||||
make %{?_smp_mflags} clean
|
||||
make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_feedback}" V=1
|
||||
%else
|
||||
make %{?_smp_mflags} CFLAGS="%{optflags}"
|
||||
%endif
|
||||
|
||||
%install
|
||||
%make_install
|
||||
@@ -49,11 +56,13 @@ make %{?_smp_mflags} V=1
|
||||
make check %{?_smp_mflags}
|
||||
|
||||
%files
|
||||
%license README
|
||||
%doc doc/*.ps doc/sample.bib
|
||||
%license README.md
|
||||
%doc CHANGELOG
|
||||
%doc examples/
|
||||
%{_bindir}/re2c
|
||||
%{_mandir}/man1/re2c.1%{?ext_man}
|
||||
%dir %{_datadir}/re2c
|
||||
%dir %{_datadir}/re2c/stdlib
|
||||
%{_datadir}/re2c/stdlib/unicode_categories.re
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user