[php-pear-Net-URL-Mapper] set error_reporting during tests
Remi Collet
remi at fedoraproject.org
Sat Jan 18 13:24:12 UTC 2014
commit d864f6b94d35eaf5eb493e88f07e8667b3e272ab
Author: Remi Collet <remi at fedoraproject.org>
Date: Sat Jan 18 14:24:24 2014 +0100
set error_reporting during tests
php-pear-Net-URL-Mapper.spec | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/php-pear-Net-URL-Mapper.spec b/php-pear-Net-URL-Mapper.spec
index 2b20e5b..b5e1dd0 100644
--- a/php-pear-Net-URL-Mapper.spec
+++ b/php-pear-Net-URL-Mapper.spec
@@ -1,10 +1,10 @@
%{!?pear_metadir: %global pear_metadir %{pear_phpdir}}
-%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
+%{!?__pear: %global __pear %{_bindir}/pear}
%global pear_name Net_URL_Mapper
Name: php-pear-Net-URL-Mapper
Version: 0.9.1
-Release: 11%{?dist}
+Release: 12%{?dist}
Summary: Simple and flexible way to build nice URLs for web applications
Group: Development/Languages
@@ -18,7 +18,7 @@ Patch1: Net_URL_Mapper-git.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
-BuildRequires: php-pear >= 1:1.4.9-1.2
+BuildRequires: php-pear
# for tests
BuildRequires: php-pear(pear.phpunit.de/PHPUnit)
BuildRequires: php-pear(Net_URL) >= 1.0.14
@@ -86,10 +86,12 @@ fi
%check
+# error_reporting = E_ALL & ~E_STRICT & ~E_DEPRECATED = 22527
cd %{pear_name}-%{version}
phpunit \
+ -d error_reporting=22527 \
-d date.timezone=UTC \
- -d include_path=.:$RPM_BUILD_ROOT%{pear_phpdir}:%{pear_phpdir} \
+ --include-path=$RPM_BUILD_ROOT%{pear_phpdir} \
tests
@@ -106,6 +108,9 @@ phpunit \
%changelog
+* Sat Jan 18 2014 Remi Collet <remi at fedoraproject.org> - 0.9.1-12
+- set error_reporting during test
+
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.9.1-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
More information about the scm-commits
mailing list