summaryrefslogtreecommitdiffstats
path: root/php-zendframework-zend-validator.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2017-08-04 10:11:22 +0200
committerRemi Collet <remi@remirepo.net>2017-08-04 10:11:22 +0200
commit5b70506cf318282378a5b2c750d36df16f7c43e5 (patch)
treea137eda2a5dfc09866328a25656e7f04e07f0219 /php-zendframework-zend-validator.spec
parentae9953adda99a5db86f7bd110e54fe0f4581f52b (diff)
v2.9.2
Diffstat (limited to 'php-zendframework-zend-validator.spec')
-rw-r--r--php-zendframework-zend-validator.spec37
1 files changed, 20 insertions, 17 deletions
diff --git a/php-zendframework-zend-validator.spec b/php-zendframework-zend-validator.spec
index 4aa6521..2c0d8ab 100644
--- a/php-zendframework-zend-validator.spec
+++ b/php-zendframework-zend-validator.spec
@@ -7,7 +7,7 @@
# Please, preserve the changelog entries
#
%global bootstrap 0
-%global gh_commit b71641582297eab52753b72cd4eb45a5ded4485c
+%global gh_commit a58dbe8463b93de0d650e296d56cb7da4a129ff3
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner zendframework
%global gh_project zend-validator
@@ -20,7 +20,7 @@
%endif
Name: php-%{gh_owner}-%{gh_project}
-Version: 2.9.0
+Version: 2.9.2
Release: 1%{?dist}
Summary: Zend Framework %{library} component
@@ -30,7 +30,9 @@ URL: https://zendframework.github.io/%{gh_project}/
Source0: %{gh_commit}/%{name}-%{version}-%{gh_short}.tgz
Source1: makesrc.sh
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+# https://github.com/zendframework/zend-validator/pull/190
+Patch0: %{name}-pr190.patch
+
BuildArch: noarch
# Tests
%if %{with_tests}
@@ -131,6 +133,7 @@ Documentation: https://zendframework.github.io/%{gh_project}/
%prep
%setup -q -n %{gh_project}-%{gh_commit}
+%patch0 -p1
mv LICENSE.md LICENSE
@@ -161,28 +164,20 @@ Zend\Loader\AutoloaderFactory::factory(array(
require_once '%{php_home}/Zend/autoload.php';
EOF
-# remirepo:7
ret=0
-if which php56; then
- php56 %{_bindir}/phpunit || ret=1
-fi
-if which php71; then
- php71 %{_bindir}/phpunit6 || ret=1
-fi
-%{phpunit} --verbose
-# remirepo:1
+for cmdarg in "php %{phpunit}" "php56 %{_bindir}/phpunit" php70 php71 php72; do
+ if which $cmdarg; then
+ set $cmdarg
+ $1 ${2:-%{_bindir}/phpunit6} --verbose || ret=1
+ fi
+done
exit $ret
%else
: Test suite disabled
%endif
-%clean
-rm -rf %{buildroot}
-
-
%files
-%defattr(-,root,root,-)
%{!?_licensedir:%global license %%doc}
%license LICENSE
%doc *.md
@@ -191,6 +186,14 @@ rm -rf %{buildroot}
%changelog
+* Fri Aug 4 2017 Remi Collet <remi@remirepo.net> - 2.9.2-1
+- Update to 2.9.2
+- add patch for PHP 7.2 from
+ https://github.com/zendframework/zend-validator/pull/190
+
+* Mon May 22 2017 Remi Collet <remi@remirepo.net> - 2.9.1-1
+- Update to 2.9.1
+
* Fri Mar 17 2017 Remi Collet <remi@remirepo.net> - 2.9.0-1
- Update to 2.9.0
- raise dependency on PHP 5.6