6 Star 4 Fork 36

OpenHarmony/third_party_re2

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
re2.spec 1.93 KB
一键复制 编辑 原始数据 按行查看 历史
ganchuantao 提交于 2025-03-21 18:35 +08:00 . 回退re2
Name: re2
Version: 20211101
Release: 3
Summary: Provide backtracking RE engine
License: BSD
URL: http://github.com/google/re2/
Source0: https://github.com/google/re2/archive/2021-11-01.tar.gz
Patch0: backport-fix-64-to-32-bit-clang-conversion-warning.patch
Patch1: add-some-testcases-for-abnormal-branches.patch
BuildRequires: gcc-c++
%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}-2021-11-01 -p1
%build
%make_build CXXFLAGS="${CXXFLAGS:-%optflags} -pthread -std=c++11" \
LDFLAGS="${LDFLAGS:-%__global_ldflags} -pthread" \
includedir=%{_includedir} libdir=%{_libdir}
%install
%make_install includedir=%{_includedir} libdir=%{_libdir}
%check
make %{?_smp_mflags} shared-test
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
%doc AUTHORS CONTRIBUTORS README LICENSE
%{_libdir}/lib%{name}.so.*
%files devel
%{_includedir}/%{name}
%{_libdir}/{lib%{name}.so,pkgconfig/%{name}.pc}
%exclude %{_libdir}/libre2.a
%changelog
* 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
* Thu Dec 16 2021 yanglu <yanglu72@huawei.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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openharmony/third_party_re2.git
git@gitee.com:openharmony/third_party_re2.git
openharmony
third_party_re2
third_party_re2
master

搜索帮助