From 8b92511d14a18b1690774596c00a949bbeae5c03 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 4 Dec 2017 16:32:48 +0100 Subject: cleanup --- php-zendframework-zend-filter.spec | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'php-zendframework-zend-filter.spec') diff --git a/php-zendframework-zend-filter.spec b/php-zendframework-zend-filter.spec index 75f898c..a652e89 100644 --- a/php-zendframework-zend-filter.spec +++ b/php-zendframework-zend-filter.spec @@ -31,7 +31,6 @@ URL: https://zendframework.github.io/%{gh_project}/ Source0: %{gh_commit}/%{name}-%{version}-%{gh_short}.tgz Source1: makesrc.sh -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch # Tests %if %{with_tests} @@ -116,8 +115,6 @@ mv LICENSE.md LICENSE %install -rm -rf %{buildroot} - mkdir -p %{buildroot}%{php_home}/Zend/ cp -pr src %{buildroot}%{php_home}/Zend/%{library} @@ -137,15 +134,13 @@ Zend\Loader\AutoloaderFactory::factory(array( require_once '%{php_home}/Zend/autoload.php'; EOF -# PHP 7.2: idn_to_ascii(): INTL_IDNA_VARIANT_2003 is deprecated +# Need investigation +rm test/Compress/SnappyTest.php + ret=0 for cmd in "php %{phpunit}" "php56 %{_bindir}/phpunit" "php70 %{_bindir}/phpunit6" "php71 %{_bindir}/phpunit6" "php72 %{_bindir}/phpunit6"; do if which $cmd; then set $cmd - if [ $1 == php72 ]; then - sed -e '/error_reporting/s/. E_STRICT/- E_DEPRECATED/' -i test/bootstrap.php - sed -e 's/colors=/convertErrorsToExceptions="false" colors=/' phpunit.xml.dist > phpunit.xml - fi $1 $2 || ret=1 fi done @@ -155,12 +150,7 @@ exit $ret %endif -%clean -rm -rf %{buildroot} - - %files -%defattr(-,root,root,-) %{!?_licensedir:%global license %%doc} %license LICENSE %doc *.md -- cgit