commit 1ca4773b386d3dad4c14970bdd599008350c393e3060eefe71b0f703f3b58df1 Author: Adrian Schröter Date: Sat May 4 00:01:30 2024 +0200 Sync from SUSE:SLFO:Main re2 revision 19a385210e7f6a385a8bcfd285909ca1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/baselibs.conf b/baselibs.conf new file mode 100644 index 0000000..ba3e149 --- /dev/null +++ b/baselibs.conf @@ -0,0 +1 @@ +libre2-10 diff --git a/re2-2023-03-01.tar.gz b/re2-2023-03-01.tar.gz new file mode 100644 index 0000000..f6edb48 --- /dev/null +++ b/re2-2023-03-01.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7a9a4824958586980926a300b4717202485c4b4115ac031822e29aa4ef207e48 +size 383282 diff --git a/re2.changes b/re2.changes new file mode 100644 index 0000000..1639d04 --- /dev/null +++ b/re2.changes @@ -0,0 +1,382 @@ +------------------------------------------------------------------- +Thu Mar 9 15:40:13 UTC 2023 - Callum Farmer + +- Require GCC 12 on Leap due to code containing speed ups which + require newer standards +- Allow tests to fail - they fail too often + +------------------------------------------------------------------- +Tue Mar 7 11:47:59 UTC 2023 - Andreas Stieger + +- update to 2023-03-01: + * changes for other platforms + +------------------------------------------------------------------- +Sat Feb 4 16:59:53 UTC 2023 - Andreas Stieger + +- update to 2023-02-01: + * improved support for ICU +- build with ICU + +------------------------------------------------------------------- +Sun Dec 4 10:53:24 UTC 2022 - Andreas Stieger + +- update to 2022-12-01: + * Update to Unicode 15.0.0 data + * cmake install now installs the pkg-config file + +------------------------------------------------------------------- +Wed Jun 1 19:38:17 UTC 2022 - Andreas Stieger + +- update to 2022-06-01: + * switch to cxx_std_11 and other developer visible fixes + +------------------------------------------------------------------- +Sun May 1 20:13:09 UTC 2022 - Callum Farmer + +- Use Release config so O3 is used + +------------------------------------------------------------------- +Thu Apr 28 20:59:00 UTC 2022 - Callum Farmer + +- Avoid sporadic failures by setting until-pass on CTest + +------------------------------------------------------------------- +Wed Apr 27 11:43:13 UTC 2022 - Callum Farmer + +- Disable tests on ARMv6 + +------------------------------------------------------------------- +Tue Apr 26 07:55:47 UTC 2022 - Callum Farmer + +- Disable tests on ZSystems and RISCV + +------------------------------------------------------------------- +Sun Apr 24 18:16:08 UTC 2022 - Stefan Brüns + +- Switch build to CMake, otherwise CMake config is not installed. + Required for Apache ORC and arrow, and google-or-tools. + (https://github.com/google/re2/issues/304) +- Run some real tests via CTest + +------------------------------------------------------------------- +Fri Apr 1 17:55:09 UTC 2022 - Andreas Stieger + +- Update to 2022-04-01: + * Improve performance slightly + * Prog::Fangout() is no longer experimental + +------------------------------------------------------------------- +Fri Feb 4 11:54:32 UTC 2022 - Callum Farmer + +- Update to 2022-02-01: + * Address a `-Wunused-but-set-variable' warning from Clang 13.x + * Don't specify the -std flag in Makefile or re2.pc + * Remove a redundant map access + +------------------------------------------------------------------- +Sun Dec 5 15:08:50 UTC 2021 - Callum Farmer + +- Use newer libs and GCC on Leap 15.3 & 15.4 + +------------------------------------------------------------------- +Fri Nov 5 09:35:28 UTC 2021 - Callum Farmer + +- Update to 2021-11-01: + * Update Unicode data to 14.0.0 + * Address a `-Wshadow' warning + +------------------------------------------------------------------- +Wed Sep 1 20:43:28 UTC 2021 - Callum Farmer + +- Update to 2021-09-01: + * Permit Unicode characters beyond ASCII in capture names + +------------------------------------------------------------------- +Fri Aug 6 20:21:06 UTC 2021 - Andreas Stieger + +- update to 2021-08-01: + * case-insensitive prefix acceleration + +------------------------------------------------------------------- +Sat Jun 12 10:03:10 UTC 2021 - Andreas Stieger + +- update to 2021-06-01: + * Fix (|a)* matching more text than (|a)+ + * build system tweaks and developer visible fixes + +------------------------------------------------------------------- +Thu Apr 15 06:54:51 UTC 2021 - Andreas Stieger + +- Update to 2021-04-01: + * Make cached benchmarks actually use cached objects + * Address some -Wmissing-field-initializers warnings + * Make it easier to swap in a scalable reaer-writer mutex + * In the shared library, set compatibility version and + current version + +------------------------------------------------------------------- +Thu Feb 4 09:53:32 UTC 2021 - Callum Farmer + +- Update to version 2021-02-02: + * Address `-Wnull-dereference' warnings from GCC 10.x. + +------------------------------------------------------------------- +Thu Nov 5 21:10:33 UTC 2020 - Callum Farmer + +- Update to version 2020-11-01: + * Refactoring and fixes + +------------------------------------------------------------------- +Sat Oct 10 20:54:42 UTC 2020 - Andreas Stieger + +- update to 2020-10-01: + * build system updates and compiler warnings fixes + +------------------------------------------------------------------- +Tue Aug 11 13:10:17 UTC 2020 - Martin Pluskal + +- Update to version 2020-08-01: + * Various internal changes + +------------------------------------------------------------------- +Sun Jun 7 06:43:53 UTC 2020 - Martin Pluskal + +- Update to version 2020-06-01: + * Various internal changes + +------------------------------------------------------------------- +Fri May 29 09:33:23 UTC 2020 - Martin Pluskal + +- Enable PGO during build + +------------------------------------------------------------------- +Wed May 20 13:23:47 UTC 2020 - Martin Pluskal + +- Update to version 2020-05-03: + * Internal fixes and optimisations + * Remove deprecated APIs, SONAME change +- Build tests with optflags +- Disable tests for 32 bit architectures + +------------------------------------------------------------------- +Sun Apr 5 08:22:33 UTC 2020 - Andreas Stieger + +- Updat to version 2020-04-01: + * Update Unicode data to 13.0.0 + * Include the pattern length in "DFA out of memory" errorrs + +------------------------------------------------------------------- +Fri Mar 20 07:30:23 UTC 2020 - Martin Pluskal + +- Update to version 2020-03-03: + * various developer visible changes + +------------------------------------------------------------------- +Thu Feb 13 13:23:29 UTC 2020 - Martin Pluskal + +- Small spec file update + +------------------------------------------------------------------- +Wed Jan 8 08:37:25 UTC 2020 - Tomáš Chvátal + +- Update to 2020-01-01: + * various developer visible changes + +------------------------------------------------------------------- +Fri Dec 6 18:59:20 UTC 2019 - Andreas Stieger + +- update to 2019-12-01: + * fix latent bugs and undefined behavior + +------------------------------------------------------------------- +Sat Nov 16 08:56:37 UTC 2019 - Andreas Stieger + +- update to 2019-11-01: + * new benchmark API + +------------------------------------------------------------------- +Thu Sep 12 01:16:44 UTC 2019 - Andreas Stieger + +- update to 2019-09-01: + * build system fixes + +------------------------------------------------------------------- +Fri Aug 2 10:01:06 UTC 2019 - Andreas Stieger + +- Update to 2019-08-01: + * Update Unicode data to 12.1.0 + * Various developer visible changes + +------------------------------------------------------------------- +Mon Jul 22 15:22:25 UTC 2019 - Martin Pluskal + +- Fix download url + +------------------------------------------------------------------- +Wed Jul 17 17:27:10 UTC 2019 - Andreas Stieger + +- Update to 2019-07-01: + * developer visible changes + +------------------------------------------------------------------- +Wed Mar 13 16:04:27 UTC 2019 - Tomáš Chvátal + +- Update to 2019-03-01: + * developer visible changes only + +------------------------------------------------------------------- +Fri Jan 4 11:42:56 UTC 2019 - astieger@suse.com + +- update to 2019-01-01: + * developer visible changes, performance tweaks and bug fixes + +------------------------------------------------------------------- +Wed Oct 17 09:01:20 UTC 2018 - Martin Pluskal + +- update to 2018-10-01: + * developer visible changes only + +------------------------------------------------------------------- +Wed Sep 5 12:04:00 UTC 2018 - astieger@suse.com + +- update to 2018-09-01: + * developer visible changes only + +------------------------------------------------------------------- +Thu Aug 23 12:46:51 UTC 2018 - astieger@suse.com + +- update to 2018-08-01: + * Fix the "DFA out of memory" error for the reverse Prog + +------------------------------------------------------------------- +Fri Jul 20 12:53:33 UTC 2018 - mpluskal@suse.com + +- Simplify spec file a bit + +------------------------------------------------------------------- +Fri Jul 20 11:57:00 UTC 2018 - astieger@suse.com + +- update to 2018-07-01: + * Fix a "DFA out of memory" error + * Update Unicode data to 11.0.0 + * Fix `-Wclass-memaccess' warnings and fallthrough macros + * Use the standard first-byte analysis for the DFA too + +------------------------------------------------------------------- +Fri Apr 6 12:26:44 UTC 2018 - mpluskal@suse.com + +- Update to version 2018-04-01 + * developer visible changes only + +------------------------------------------------------------------- +Wed Mar 21 08:10:46 UTC 2018 - astieger@suse.com + +- update to 2018-03-01: + * no longer linking against librd and libm + * other developer visible changes + +------------------------------------------------------------------- +Fri Feb 2 10:26:54 UTC 2018 - astieger@suse.com + +- update to 2018-02-01: + * developer visible changes only + +------------------------------------------------------------------- +Wed Jan 3 16:14:03 UTC 2018 - mpluskal@suse.com + +- Update to version 2018-01-01 + * No upstream changelog available + +------------------------------------------------------------------- +Wed Jan 3 12:27:06 UTC 2018 - dimstar@opensuse.org + +- Add baselibs.conf: create libre2-0-32bit, dependency to + libqt5-qtwebengine-32bit. + +------------------------------------------------------------------- +Mon Dec 18 14:19:37 UTC 2017 - mpluskal@suse.com + +- Update to version 2017-12-01 + * No upstream changelog available + +------------------------------------------------------------------- +Fri Nov 3 08:50:46 UTC 2017 - mpluskal@suse.com + +- Update to version 2017-11-01 + * No upstream changelog available + +------------------------------------------------------------------- +Mon Sep 4 12:11:07 UTC 2017 - mpluskal@suse.com + +- Update to version 2017-07-01 + * No upstream changelog available + +------------------------------------------------------------------- +Sat Jul 29 10:04:51 UTC 2017 - mpluskal@suse.com + +- Update to version 2017-07-01 + * No upstream changelog available + +------------------------------------------------------------------- +Sun Jun 11 09:55:00 UTC 2017 - mpluskal@suse.com + +- Update to version 2017-06-01 + * No upstream changelog available + +------------------------------------------------------------------- +Fri May 19 08:42:56 UTC 2017 - vsistek@suse.com + +- Update to version 2017-05-01 + * No upstream changelog available + +------------------------------------------------------------------- +Thu Apr 13 14:07:55 UTC 2017 - mpluskal@suse.com + +- Update to version 2017-04-01 + * No upstream changelog available + +------------------------------------------------------------------- +Thu Mar 16 11:38:30 UTC 2017 - mpluskal@suse.com + +- Update to version 2017-03-01 + * No upstream changelog available + +------------------------------------------------------------------- +Sat Jan 14 10:21:10 UTC 2017 - mpluskal@suse.com + +- Update to version 2017-01-01 + * No upstream changelog available + +------------------------------------------------------------------- +Sat Dec 3 12:10:17 UTC 2016 - mpluskal@suse.com + +- Update to version 2016-11-01: + * No upstream changelog available +- Drop no longer needed re2-gcc61.patch + +------------------------------------------------------------------- +Sat Oct 22 22:14:31 UTC 2016 - jengelh@inai.de + +- Fixup group and avoid rm indirection + +------------------------------------------------------------------- +Thu Sep 8 07:53:14 UTC 2016 - mpluskal@suse.com + +- Drop releasenumber + +------------------------------------------------------------------- +Wed Sep 7 12:17:14 UTC 2016 - tchvatal@suse.com + +- Version update to 2016-09-01 version + * Various changes based on google needs, long changelog in upstream + github repo +- Rebase spec on Fedora package +- Add patch to build with gcc 6.1: + * re2-gcc61.patch + +------------------------------------------------------------------- +Fri Dec 21 12:44:23 UTC 2012 - aplanas@novell.com + +- Initial package version. + diff --git a/re2.spec b/re2.spec new file mode 100644 index 0000000..126dbdf --- /dev/null +++ b/re2.spec @@ -0,0 +1,118 @@ +# +# spec file for package re2 +# +# Copyright (c) 2023 SUSE LLC +# +# 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 https://bugs.opensuse.org/ +# + + +%global longver 2023-03-01 +%global shortver %(echo %{longver}|sed 's|-||g') +%define libname libre2-10 +Name: re2 +Version: %{shortver} +Release: 0 +Summary: C++ fast alternative to backtracking RE engines +License: BSD-3-Clause +Group: Development/Libraries/C and C++ +URL: https://github.com/google/re2 +Source0: %{url}/archive/%{longver}/%{name}-%{longver}.tar.gz +Source99: baselibs.conf +%if 0%{?suse_version} < 1550 +BuildRequires: gcc12-c++ +%else +BuildRequires: gcc-c++ +%endif +BuildRequires: cmake >= 3.10.2 +BuildRequires: pkgconfig +BuildRequires: pkgconfig(icu-uc) + +%description +RE2 is a C++ library providing a fast, safe, thread-friendly alternative to +backtracking regular expression engines like those used in PCRE, Perl, and +Python. + +Backtracking engines are typically full of features and convenient syntactic +sugar but can be forced into taking exponential amounts of time on even small +inputs. + +In contrast, RE2 uses automata theory to guarantee that regular expression +searches run in time linear in the size of the input, at the expense of some +missing features (e.g. back references and generalized assertions). + +%package -n %{libname} +Summary: C++ fast alternative to backtracking RE engines +Group: System/Libraries + +%description -n %{libname} +RE2 is a C++ library providing a fast, safe, thread-friendly alternative to +backtracking regular expression engines like those used in PCRE, Perl, and +Python. + +Backtracking engines are typically full of features and convenient syntactic +sugar but can be forced into taking exponential amounts of time on even small +inputs. + +In contrast, RE2 uses automata theory to guarantee that regular expression +searches run in time linear in the size of the input, at the expense of some +missing features (e.g. back references and generalized assertions). + +%package devel +Summary: C++ header files and library symbolic links for %{name} +Group: Development/Libraries/C and C++ +Requires: %{libname} = %{version} + +%description devel +This package contains the C++ header files and symbolic links to the shared +libraries for %{name}. If you would like to develop programs using %{name}, +you will need to install %{name}-devel. + +%prep +%autosetup -n %{name}-%{longver} + +%build +%if 0%{?suse_version} < 1550 +export CXX=g++-12 +%endif +%cmake \ + -DCMAKE_BUILD_TYPE=Release \ + -DRE2_USE_ICU=ON \ + %{nil} +%cmake_build + +%install +%cmake_install + +%check +%if 0%{?suse_version} < 1550 +export CXX=g++-12 +%endif +export LD_LIBRARY_PATH=%{buildroot}/%{_libdir}:LD_LIBRARY_PATH +%ctest || true + +%post -n %{libname} -p /sbin/ldconfig +%postun -n %{libname} -p /sbin/ldconfig + +%files -n %{libname} +%license LICENSE +%doc AUTHORS CONTRIBUTORS README +%{_libdir}/lib%{name}.so.* + +%files devel +%license LICENSE +%{_includedir}/%{name} +%{_libdir}/lib%{name}.so +%{_libdir}/pkgconfig/%{name}.pc +%{_libdir}/cmake/%{name} + +%changelog