Fix the regular expression used to pick up the PCRE2 version the upstream bundles

Upstream changed the URL from which they download the PCRE2 tarball

--

Related: #2092370
This commit is contained in:
Michal Schorm 2022-01-13 12:47:09 +01:00
parent 02a712fe8d
commit 0354b9890a
1 changed files with 1 additions and 1 deletions

View File

@ -788,7 +788,7 @@ sed 's/mariadb-server-galera/%{name}-server-galera/' %{SOURCE72} > selinux/%{nam
# Get version of PCRE, that upstream use
pcre_version=`grep -e "ftp.pcre.org/pub/pcre/pcre2" cmake/pcre.cmake | sed -r "s;[^0123456789]*2-([[:digit:]]+\.[[:digit:]]+)\.[^0123456789]*;\1;"`
pcre_version=`grep -e "https://github.com/PhilipHazel/pcre2/releases/download" cmake/pcre.cmake | sed -r "s;.*pcre2-([[:digit:]]+\.[[:digit:]]+).*;\1;" `
# Check if the PCRE version in macro 'pcre_bundled_version', used in Provides: bundled(...), is the same version as upstream actually bundles
%if %{without unbundled_pcre}