From: Elan Ruusamäe Date: Sat, 28 Oct 2017 20:22:22 +0000 (+0300) Subject: tests require pcre X-Git-Tag: auto/th/php-pecl-timecop-1.2.8-1~2 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=710385ce4ac7656670c617a8c2063088875ba849;p=packages%2Fphp-pecl-timecop.git tests require pcre 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. --- diff --git a/php-pecl-timecop.spec b/php-pecl-timecop.spec index 3838c52..466ea9b 100644 --- a/php-pecl-timecop.spec +++ b/php-pecl-timecop.spec @@ -17,6 +17,9 @@ URL: https://pecl.php.net/package/timecop/ 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)