The test-suite requires that you have pcre extension enabled.
To enable this extension either compile your PHP with --with-pcre-regex
or if you've compiled pcre as a shared module load it via php.ini.
BuildRequires: %{php_name}-cli
BuildRequires: %{php_name}-devel
BuildRequires: rpmbuild(macros) >= 1.666
+%if %{with tests}
+BuildRequires: %{php_name}-pcre
+%endif
%{?requires_php_extension}
Provides: php(%{modname}) = %{version}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)