diff --git a/openresty-pcre.spec b/openresty-pcre.spec index e481c39e6fee1cfccfa931c87b57cf6fd281fa11..10ce29aa5363d23779688ebba62ca822584cdd24 100644 --- a/openresty-pcre.spec +++ b/openresty-pcre.spec @@ -1,6 +1,6 @@ Name: openresty-pcre Version: 8.44 -Release: 1%{?dist} +Release: 2 Summary: Perl-compatible regular expression library for OpenResty Group: System Environment/Libraries @@ -56,6 +56,10 @@ This is the clang AddressSanitizer version. %prep %setup -q -n pcre-%{version} +%ifarch loongarch64 +%_update_config_guess +%_update_config_sub +%endif %patch99 -p1 @@ -67,7 +71,9 @@ export CC="ccache gcc -fdiagnostics-color=always" --prefix=%{pcre_prefix} \ --libdir=%{pcre_prefix}/lib \ --disable-cpp \ +%ifnarch loongarch64 --enable-jit \ +%endif --enable-utf \ --enable-unicode-properties @@ -80,7 +86,9 @@ export CC="ccache gcc -fdiagnostics-color=always" --prefix=%{pcre_prefix_asan} \ --libdir=%{pcre_prefix_asan}/lib \ --disable-cpp \ +%ifnarch loongarch64 --enable-jit \ +%endif --enable-utf \ --enable-unicode-properties @@ -131,5 +139,8 @@ rm -rf %{buildroot} %{pcre_prefix_asan}/include/*.h %changelog +* Thu Jan 5 2023 Wenlong Zhang - 8.44-2 +- add loongarch support for openresty-pcre + * Thu Jul 22 2021 Fu Changjie 8.42-1 - Package init with openresty-pcre 8.42, without disable asan