183 строки
6.8 KiB
Plaintext
183 строки
6.8 KiB
Plaintext
%global longver 2019-08-01
|
|
%global shortver %(echo %{longver}|sed 's|-||g')
|
|
Summary: C++ fast alternative to backtracking RE engines
|
|
Name: re2
|
|
Version: %{shortver}
|
|
Release: 10%{?dist}
|
|
License: BSD
|
|
Vendor: Microsoft Corporation
|
|
Distribution: Mariner
|
|
URL: https://github.com/google/%{name}/
|
|
Source0: https://github.com/google/%{name}/archive/%{longver}.tar.gz#/%{name}-%{longver}.tar.gz
|
|
# downstream patch to change soname .0 => .0a
|
|
# This is in response to symbol changes in recent release per
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1672014#c10
|
|
# TODO: poke upstream on their policy/intentions regarding maintaining
|
|
# stable ABI, or at least get them to bump soname appropriately so we
|
|
# won't have to handle it ourselves downsream via this patch indefinitely.
|
|
Patch1: re2-soname.patch
|
|
BuildRequires: gcc
|
|
BuildRequires: make
|
|
|
|
%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 devel
|
|
Summary: C++ header files and library symbolic links for %{name}
|
|
Requires: %{name} = %{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
|
|
%setup -q -n %{name}-%{longver}
|
|
|
|
%patch1 -p1 -b .soname
|
|
|
|
%build
|
|
# The -pthread flag issue has been submitted upstream:
|
|
# http://groups.google.com/forum/?fromgroups=#!topic/re2-dev/bkUDtO5l6Lo
|
|
# The RPM macro for the linker flags does not exist on EPEL
|
|
%{!?__global_ldflags: %global __global_ldflags -Wl,-z,relro}
|
|
CXXFLAGS="${CXXFLAGS:-%{optflags}} -pthread"
|
|
LDFLAGS="${LDFLAGS:-%{__global_ldflags}} -pthread"
|
|
|
|
%make_build \
|
|
CXXFLAGS="$CXXFLAGS"\
|
|
LDFLAGS="$LDFLAGS" \
|
|
includedir=%{_includedir}\
|
|
libdir=%{_libdir}
|
|
|
|
%install
|
|
%make_install \
|
|
INSTALL="install -p"\
|
|
includedir=%{_includedir}\
|
|
libdir=%{_libdir}
|
|
|
|
# Suppress the static library
|
|
rm -fv %{buildroot}%{_libdir}/libre2.a
|
|
|
|
%check
|
|
%make_build shared-test
|
|
|
|
%post -p /sbin/ldconfig
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%files
|
|
%license LICENSE
|
|
%doc AUTHORS CONTRIBUTORS README
|
|
%{_libdir}/libre2.so.0a*
|
|
|
|
%files devel
|
|
%{_includedir}/re2/
|
|
%{_libdir}/libre2.so
|
|
%{_libdir}/pkgconfig/re2.pc
|
|
|
|
%changelog
|
|
* Fri Apr 29 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 20190801-10
|
|
- Fixing source URL.
|
|
|
|
* Thu Jun 03 2021 Suresh Babu Chalamalasetty <schalam@microsoft.com> - 1:20190801-9
|
|
- Initial CBL-Mariner import from Fedora 35 (license: MIT)
|
|
- License verified
|
|
|
|
* Tue Mar 30 2021 Jonathan Wakely <jwakely@redhat.com> - 1:20190801-8
|
|
- Rebuilt for removed libstdc++ symbol (#1937698)
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:20190801-7
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
* Wed Aug 26 2020 Jeff Law <law@redhat.com> - 1:20190801-6
|
|
- No longer force C++11
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:20190801-5
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:20190801-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
* Wed Aug 14 2019 Rex Dieter <rdieter@fedoraproject.org> - 1:20190801-3
|
|
- -devel: use epoch in versioned dep
|
|
|
|
* Wed Aug 14 2019 Rex Dieter <rdieter@fedoraproject.org> - 1:20190801-2
|
|
- bump soname
|
|
- tighten %%files, track soname explicitly
|
|
- use %%make_build %%make_install macros
|
|
- Epoch:1 for upgrade path (from f29)
|
|
|
|
* Sat Aug 03 2019 Lukas Vrabec <lvrabec@redhat.com> - 20190801-1
|
|
- update to 20190801
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 20160401-9
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 20160401-8
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 20160401-7
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 20160401-6
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 20160401-5
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 20160401-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 20160401-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
* Fri Apr 29 2016 Tom Callaway <spot@fedoraproject.org> - 20160401-2
|
|
- hardcode -std=c++11 for older compilers
|
|
|
|
* Fri Apr 29 2016 Tom Callaway <spot@fedoraproject.org> - 20160401-1
|
|
- update to 20160401
|
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 20131024-6
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20131024-5
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
* Wed Apr 15 2015 Petr Pisar <ppisar@redhat.com> - 20131024-4
|
|
- Rebuild owing to C++ ABI change in GCC-5 (bug #1195351)
|
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20131024-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20131024-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
* Mon Nov 11 2013 Tom Callaway <spot@fedoraproject.org> - 20131024-1
|
|
- update to 20131024
|
|
- fix symbols export to stop test from failing
|
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20130115-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
* Sun Feb 17 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> 20130115-2
|
|
- Took into account the feedback from review request (#868578).
|
|
|
|
* Sun Feb 10 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> 20130115-1
|
|
- The download source comes now directly from the project.
|
|
|
|
* Thu Oct 25 2012 Denis Arnaud <denis.arnaud_fedora@m4x.org> 0.0.0-2
|
|
- Took into account review request (#868578) feedback.
|
|
|
|
* Sat Oct 20 2012 Denis Arnaud <denis.arnaud_fedora@m4x.org> 0.0.0-1
|
|
- RPM release for Fedora 18
|