diff options
Diffstat (limited to 'php.spec')
-rw-r--r-- | php.spec | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -221,7 +221,7 @@ BuildRequires: pkgconfig(libedit) %if %{with libpcre} BuildRequires: pkgconfig(libpcre2-8) >= 10.30 %else -Provides: bundled(pcre2) = 10.32 +Provides: bundled(pcre2) = 10.35 %endif %if %{with libxcrypt} BuildRequires: pkgconfig(libxcrypt) @@ -368,6 +368,12 @@ Summary: Common files for PHP # fileinfo is licensed under PHP version 3.0 # regex, libmagic are licensed under BSD License: PHP and BSD + +%if %{with libpcre} +%global pcre2_buildver %(pkg-config --silence-errors --modversion libpcre2-8 2>/dev/null || echo 10.30) +Requires: pcre2%{?_isa} >= %{pcre2_buildver} +%endif + # ABI/API check - Arch specific Provides: %{?scl_prefix}php(api) = %{apiver}-%{__isa_bits} Provides: %{?scl_prefix}php(zend-abi) = %{zendver}-%{__isa_bits} |