- Add cpp17.patch to build in newer version of absl
gh#facebook/pyre2#25 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fb-re2?expand=0&rev=7
This commit is contained in:
parent
68d93a82a8
commit
bb1c9e6c63
12
cpp17.patch
Normal file
12
cpp17.patch
Normal file
@ -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'],
|
||||||
|
)],
|
||||||
|
)
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 3 11:02:39 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
- 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
|
Wed May 19 09:09:13 UTC 2021 - pgajdos@suse.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-fb-re2
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# 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
|
Name: python-fb-re2
|
||||||
Version: 1.0.7
|
Version: 1.0.7
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -25,6 +24,8 @@ License: BSD-3-Clause
|
|||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/facebook/pyre2
|
URL: https://github.com/facebook/pyre2
|
||||||
Source: https://github.com/facebook/pyre2/archive/v%{version}.tar.gz
|
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 devel}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
@ -38,7 +39,7 @@ BuildRequires: re2-devel
|
|||||||
Python wrapper for Google's RE2
|
Python wrapper for Google's RE2
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n pyre2-%{version}
|
%autosetup -p1 -n pyre2-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags}"
|
export CFLAGS="%{optflags}"
|
||||||
@ -54,6 +55,9 @@ export CFLAGS="%{optflags}"
|
|||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python_sitearch}/*
|
%{python_sitearch}/_re2*.so
|
||||||
|
%{python_sitearch}/re2.py
|
||||||
|
%{python_sitearch}/fb_re2-%{version}*-info
|
||||||
|
%pycache_only %{python_sitearch}/__pycache__
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user