update to 20240201

This commit is contained in:
eaglegai 2024-02-05 07:22:57 +00:00
parent 81f3c371a3
commit 4b72399a66
3 changed files with 8 additions and 5 deletions

Binary file not shown.

BIN
2024-02-01.tar.gz Normal file

Binary file not shown.

View File

@ -1,10 +1,10 @@
Name: re2
Version: 20230901
Release: 2
Version: 20240201
Release: 1
Summary: Provide backtracking RE engine
License: BSD
URL: http://github.com/google/re2/
Source0: https://github.com/google/re2/archive/2023-09-01.tar.gz
Source0: https://github.com/google/re2/archive/2024-02-01.tar.gz
Patch1: add-some-testcases-for-abnormal-branches.patch
BuildRequires: gcc-c++ abseil-cpp-devel
@ -21,7 +21,7 @@ This package contains C ++ header files and symbolic links to re2's shared libra
If you want to develop programs using re2, you need to install re2-devel.
%prep
%autosetup -n %{name}-2023-09-01 -p1
%autosetup -n %{name}-2024-02-01 -p1
%build
sed -i 's/RE2_LDFLAGS?=-pthread/RE2_LDFLAGS?=-pthread -Wl,--as-needed/g' Makefile
@ -43,7 +43,7 @@ export LD_LIBRARY_PATH=%{buildroot}/%{_libdir}:LD_LIBRARY_PATH
/sbin/ldconfig
%files
%doc AUTHORS CONTRIBUTORS README LICENSE
%doc README LICENSE
%{_libdir}/lib%{name}.so.*
%files devel
@ -52,6 +52,9 @@ export LD_LIBRARY_PATH=%{buildroot}/%{_libdir}:LD_LIBRARY_PATH
%exclude %{_libdir}/libre2.a
%changelog
* 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