diff --git a/re2c-1.1.1.tar.gz b/re2c-1.1.1.tar.gz deleted file mode 100644 index ed89d72..0000000 --- a/re2c-1.1.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:856597337ea00b24ce91f549f79e6eece1b92ba5f8b63292cad66c14ac7451cf -size 5907416 diff --git a/re2c-1.2.1.tar.xz b/re2c-1.2.1.tar.xz new file mode 100644 index 0000000..af61cfe --- /dev/null +++ b/re2c-1.2.1.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1a4cd706b5b966aeffd78e3cf8b24239470ded30551e813610f9cd1a4e01b817 +size 2059304 diff --git a/re2c-nogenerationdatedefault.patch b/re2c-nogenerationdatedefault.patch deleted file mode 100644 index 90e7b47..0000000 --- a/re2c-nogenerationdatedefault.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- re2c-1.1.1.orig/src/conf/opt.h 2018-08-31 00:06:42.000000000 +0200 -+++ re2c-1.1.1/src/conf/opt.h 2019-03-11 01:05:35.827581766 +0100 -@@ -44,7 +44,7 @@ - CONSTOPT1 (target_t, target, TARGET_CODE) \ - CONSTOPT (std::string, output_file, "") \ - CONSTOPT (std::string, header_file, "") \ -- CONSTOPT (bool, bNoGenerationDate, false) \ -+ CONSTOPT (bool, bNoGenerationDate, true) \ - CONSTOPT (bool, version, true) \ - CONSTOPT (bool, cFlag, false) \ - CONSTOPT (bool, fFlag, false) \ diff --git a/re2c.changes b/re2c.changes index 994530f..a8b8617 100644 --- a/re2c.changes +++ b/re2c.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Wed Aug 14 15:37:39 UTC 2019 - Martin Pluskal + +- 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 + ------------------------------------------------------------------- Mon Mar 11 00:09:53 UTC 2019 - Chris Coutinho diff --git a/re2c.spec b/re2c.spec index a070470..1ca7075 100644 --- a/re2c.spec +++ b/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