Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP6:Update
re2-10
re2-10.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File re2-10.spec of Package re2-10
# # spec file for package re2-10 # # 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-10 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}/re2-%{longver}.tar.gz BuildRequires: cmake >= 3.10.2 BuildRequires: pkgconfig BuildRequires: pkgconfig(icu-uc) %if 0%{?suse_version} < 1550 BuildRequires: gcc12-c++ %else BuildRequires: gcc-c++ %endif %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} Conflicts: re2-devel %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 re2-%{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 %ldconfig_scriptlets -n %{libname} %files -n %{libname} %license LICENSE %doc AUTHORS CONTRIBUTORS README %{_libdir}/libre2.so.10* %files devel %license LICENSE %{_includedir}/re2 %{_libdir}/libre2.so %{_libdir}/pkgconfig/re2.pc %{_libdir}/cmake/re2 %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor