diff --git a/cpp17.patch b/cpp17.patch new file mode 100644 index 0000000..c571e9e --- /dev/null +++ b/cpp17.patch @@ -0,0 +1,12 @@ +Index: pyre2-1.0.7/setup.py +=================================================================== +--- pyre2-1.0.7.orig/setup.py ++++ pyre2-1.0.7/setup.py +@@ -21,6 +21,6 @@ setup( + ext_modules = [Extension("_re2", + sources = ["_re2.cc"], + libraries = ["re2"], +- extra_compile_args=['-std=c++11'], ++ extra_compile_args=['-std=c++17'], + )], + ) diff --git a/python-fb-re2.changes b/python-fb-re2.changes index e0b79c5..c4942bb 100644 --- a/python-fb-re2.changes +++ b/python-fb-re2.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Aug 3 11:02:39 UTC 2023 - Daniel Garcia + +- Add cpp17.patch to build in newer version of absl + gh#facebook/pyre2#25 + ------------------------------------------------------------------- Wed May 19 09:09:13 UTC 2021 - pgajdos@suse.com diff --git a/python-fb-re2.spec b/python-fb-re2.spec index 4ad4fd0..217404e 100644 --- a/python-fb-re2.spec +++ b/python-fb-re2.spec @@ -1,7 +1,7 @@ # # spec file for package python-fb-re2 # -# Copyright (c) 2021 SUSE LLC +# 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 @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-fb-re2 Version: 1.0.7 Release: 0 @@ -25,6 +24,8 @@ License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/facebook/pyre2 Source: https://github.com/facebook/pyre2/archive/v%{version}.tar.gz +# PATCH-FIX-UPSTREAM cpp17.patch gh#facebook/pyre2#25 +Patch0: cpp17.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} @@ -38,7 +39,7 @@ BuildRequires: re2-devel Python wrapper for Google's RE2 %prep -%setup -q -n pyre2-%{version} +%autosetup -p1 -n pyre2-%{version} %build export CFLAGS="%{optflags}" @@ -54,6 +55,9 @@ export CFLAGS="%{optflags}" %files %{python_files} %doc README.rst %license LICENSE -%{python_sitearch}/* +%{python_sitearch}/_re2*.so +%{python_sitearch}/re2.py +%{python_sitearch}/fb_re2-%{version}*-info +%pycache_only %{python_sitearch}/__pycache__ %changelog