代码拉取完成,页面将自动刷新
Name: re2
Version: 20240702
Release: 1
Summary: Provide backtracking RE engine
License: BSD
URL: http://github.com/google/re2/
Source0: https://github.com/google/re2/archive/re2-2024-07-02.tar.gz
Patch1: add-some-testcases-for-abnormal-branches.patch
BuildRequires: gcc-c++ abseil-cpp-devel
%description
RE2 is a fast, safe, thread-friendly alternative to backtracking regular
expression engines like those used in PCRE, Perl, and Python. It is a C++ library.
%package devel
Summary: Provide re2 symbolic links with C ++ header files and libraries
Requires: %{name} = %{version}-%{release}
%description devel
This package contains C ++ header files and symbolic links to re2's shared libraries.
If you want to develop programs using re2, you need to install re2-devel.
%prep
%autosetup -n %{name}-2024-07-02 -p1
%build
sed -i 's/RE2_LDFLAGS?=-pthread/RE2_LDFLAGS?=-pthread -Wl,--as-needed/g' Makefile
%make_build CXXFLAGS="${CXXFLAGS:-%optflags} -pthread -std=c++17" \
LDFLAGS="${LDFLAGS:-%__global_ldflags} -pthread" \
includedir=%{_includedir} libdir=%{_libdir}
%install
%make_install includedir=%{_includedir} libdir=%{_libdir}
%check
export LD_LIBRARY_PATH=%{buildroot}/%{_libdir}:LD_LIBRARY_PATH
%ctest || true
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
%doc README LICENSE
%{_libdir}/lib%{name}.so.*
%files devel
%{_includedir}/%{name}
%{_libdir}/{lib%{name}.so,pkgconfig/%{name}.pc}
%exclude %{_libdir}/libre2.a
%changelog
* Mon Nov 04 2024 zhangxianjun <zhangxianjun@kylinos.cn> - 20240702-1
- update to 20240702
* Wed Feb 07 2024 gaihuiying <eaglegai@163.com> - 20240201-1
- update to 20240201
* Tue Jan 23 2024 gaihuiying <eaglegai@163.com> - 20230901-2
- add '-Wl, --as-needed' for re2 to link dynamic library
* Wed Oct 18 2023 wulei <wu_lei@hoperun.com> - 20230901-1
- Update to 20230901
* Wed Dec 14 2022 zhouyihang <zhouyihang3@h-partners.com> - 20211101-3
- add some testcases for abnormal branches
* Mon Oct 24 2022 gaihuiying <eaglegai@163.com> - 20211101-2
- fix 64 to 32 bit clang conversion warning
* Sat Mar 19 2022 xihaochen <xihaochen@h-partners.com> - 20211101-1
- upgrade to 20211101
* Thu Dec 3 2020 Guoshuai Sun <sunguoshuai@huawei.com> - 20200801-1
- upgrade to 20200801
* Fri Nov 29 2019 fengbing <fengbing7@huawei.com> - 20160401-8
- Package init
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。