summaryrefslogtreecommitdiffstats
path: root/php-react-dns.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-react-dns.spec')
-rw-r--r--php-react-dns.spec23
1 files changed, 16 insertions, 7 deletions
diff --git a/php-react-dns.spec b/php-react-dns.spec
index 23dc79c..0d650b6 100644
--- a/php-react-dns.spec
+++ b/php-react-dns.spec
@@ -12,8 +12,8 @@
%global github_owner reactphp
%global github_name dns
-%global github_version 0.4.7
-%global github_commit e09ca286e3e18fea93317315dd7fc59d7963af8a
+%global github_version 0.4.8
+%global github_commit 86d3da64ebfbecddf6b940c6e69daa67c0f21a05
%global composer_vendor react
%global composer_project dns
@@ -68,7 +68,7 @@ BuildRequires: php-composer(react/socket) < %{react_socket_max_ver}
BuildRequires: php-composer(react/socket) >= %{react_socket_min_ver}
BuildRequires: php-composer(react/stream) < %{react_stream_max_ver}
BuildRequires: php-composer(react/stream) >= %{react_stream_min_ver}
-## phpcompatinfo (computed from version 0.4.7)
+## phpcompatinfo (computed from version 0.4.8)
BuildRequires: php-date
BuildRequires: php-pcre
BuildRequires: php-reflection
@@ -89,7 +89,7 @@ Requires: php-composer(react/socket) < %{react_socket_max_ver}
Requires: php-composer(react/socket) >= %{react_socket_min_ver}
Requires: php-composer(react/stream) < %{react_stream_max_ver}
Requires: php-composer(react/stream) >= %{react_stream_min_ver}
-# phpcompatinfo (computed from version 0.4.7)
+# phpcompatinfo (computed from version 0.4.8)
Requires: php-date
Requires: php-pcre
Requires: php-spl
@@ -155,12 +155,18 @@ sed 's/function testResolveGoogleResolves/function SKIP_testResolveGoogleResolve
: Upstream tests
RETURN_CODE=0
-for PHP_EXEC in php %{?rhel:php54 php55} php56 php70 php71; do
- if which $PHP_EXEC; then
- if $PHP_EXEC -r 'exit (PHP_VERSION_ID >= 70100 ? 0 : 1);' ; then
+for PHP_EXEC in php %{?rhel:php54 php55} php56 php70 php71 php72; do
+ if [ "php" = "$PHP_EXEC" ] || which $PHP_EXEC; then
+ if [ $($PHP_EXEC -r 'echo (PHP_VERSION_ID >= 70100 ? 1 : 0);') ]; then
: Skip tests known to fail
: See https://github.com/reactphp/dns/issues/55
: See https://github.com/reactphp/dns/pull/56
+
+ # Allow multiple runs of this conditional logic
+ [ -e tests/Query/ExecutorTest.php.dist ] && \
+ mv tests/Query/ExecutorTest.php.dist tests/Query/ExecutorTest.php
+ cp tests/Query/ExecutorTest.php tests/Query/ExecutorTest.php.dist
+
# These test functions do not start with "test" and instead are marked with "/** @test */"
for FUNC in \
resolveShouldRetryWithTcpIfResponseIsTruncated \
@@ -193,6 +199,9 @@ exit $RETURN_CODE
%changelog
+* Sat Apr 29 2017 Shawn Iwinski <shawn@iwin.ski> - 0.4.8-1
+- Update to 0.4.8 (RHBZ #1443522)
+
* Sun Apr 02 2017 Shawn Iwinski <shawn@iwin.ski> - 0.4.7-1
- Update to 0.4.7 (RHBZ #1421888)