diff --git a/.gitignore b/.gitignore index f92d44d..9e96f5d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /php-masterminds-html5-2.1.1-28490e9e0caea10f5ca09ab68f88d1f26e80ff9d.tar.gz /php-masterminds-html5-2.1.2-8f782e0f01a6e33a319bdc8f6de9cfd6569979a4.tar.gz /php-masterminds-html5-2.2.2-7866e93dcf0245de22378414e0c2c7350abc45af.tar.gz +/php-masterminds-html5-2.3.0-2c37c6c520b995b761674de3be8455a381679067.tar.gz diff --git a/php-masterminds-html5.spec b/php-masterminds-html5.spec index 0d47f66..d9d4b18 100644 --- a/php-masterminds-html5.spec +++ b/php-masterminds-html5.spec @@ -1,7 +1,7 @@ # # Fedora spec file for php-masterminds-html5 # -# Copyright (c) 2015-2016 Shawn Iwinski +# Copyright (c) 2015-2017 Shawn Iwinski # # License: MIT # http://opensource.org/licenses/MIT @@ -11,8 +11,8 @@ %global github_owner Masterminds %global github_name html5-php -%global github_version 2.2.2 -%global github_commit 7866e93dcf0245de22378414e0c2c7350abc45af +%global github_version 2.3.0 +%global github_commit 2c37c6c520b995b761674de3be8455a381679067 %global composer_vendor masterminds %global composer_project html5 @@ -27,7 +27,7 @@ Name: php-%{composer_vendor}-%{composer_project} Version: %{github_version} -Release: 3%{?dist} +Release: 1%{?dist} Summary: An HTML5 parser and serializer Group: Development/Libraries @@ -43,7 +43,7 @@ BuildRequires: %{_bindir}/phpab ## composer.json BuildRequires: %{_bindir}/phpunit BuildRequires: php(language) >= %{php_min_ver} -## phpcompatinfo (computed from version 2.2.2) +## phpcompatinfo (computed from version 2.3.0) BuildRequires: php-ctype BuildRequires: php-dom BuildRequires: php-iconv @@ -57,7 +57,7 @@ BuildRequires: php-xml # composer.json Requires: php(language) >= %{php_min_ver} -# phpcompatinfo (computed from version 2.2.2) +# phpcompatinfo (computed from version 2.3.0) Requires: php-ctype Requires: php-dom Requires: php-iconv @@ -119,8 +119,15 @@ require '%{buildroot}%{phpdir}/Masterminds/HTML5/autoload.php'; require __DIR__ . '/../test/autoload.php'; AUTOLOAD -: Run tests -%{_bindir}/phpunit -v +: Upstream tests +RETURN_CODE=0 +PHPUNIT=$(which phpunit) +for PHP_EXEC in "" %{?rhel:php54 php55} php56 php70 php71 php72; do + if [ -z "$PHP_EXEC" ] || which $PHP_EXEC; then + $PHP_EXEC $PHPUNIT --verbose || RETURN_CODE=1 + fi +done +exit $RETURN_CODE %else : Tests skipped %endif @@ -134,6 +141,10 @@ AUTOLOAD %changelog +* Fri Sep 08 2017 Shawn Iwinski - 2.3.0-1 +- Update to 2.3.0 (RHBZ #1488271) +- Test with SCLs if available + * Thu Jul 27 2017 Fedora Release Engineering - 2.2.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild diff --git a/sources b/sources index c9ae8ff..afb2aa1 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -538a37d3b8410ef019474022c9e75c0b php-masterminds-html5-2.2.2-7866e93dcf0245de22378414e0c2c7350abc45af.tar.gz +SHA512 (php-masterminds-html5-2.3.0-2c37c6c520b995b761674de3be8455a381679067.tar.gz) = 29ceee25763bfaa428b44736d6516bbf563539f66a4523ddb37147ff57989ea41d34d470352451fecee9a2c4a86b05942ffe6b693df87cea13152beb4452ec05