From da68100826e410d0e5d88a8cb8f08dfa77725bc1 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 7 Sep 2020 09:56:23 +0200 Subject: add dependency on webmozart/assert --- phpdoc.spec | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/phpdoc.spec b/phpdoc.spec index 2da513a..682c395 100644 --- a/phpdoc.spec +++ b/phpdoc.spec @@ -91,6 +91,9 @@ # NOTE: Max version to restrict to one major version %global zetacomponents_document_min_ver 1.3.1 %global zetacomponents_document_max_ver 2.0 +# "webmozart/assert": "^1.2", +%global webmozart_assert_min_ver 1.2 +%global webmozart_assert_max_ver 2 # Build using "--without tests" to disable tests %global with_tests 0%{!?_without_tests:1} @@ -106,7 +109,7 @@ Name: phpdoc Version: %{github_version} -Release: 1%{?github_release}%{?dist} +Release: 2%{?github_release}%{?dist} Summary: Documentation generator for PHP # License breakdown: @@ -259,6 +262,7 @@ BuildRequires: (php-autoloader(zendframework/zend-serializer) < %{zendframework_ BuildRequires: (php-autoloader(zendframework/zend-servicemanager) < %{zendframework_servicemanager_max_ver} with php-autoloader(zendframework/zend-servicemanager) >= %{zendframework_servicemanager_min_ver}) BuildRequires: (php-autoloader(zendframework/zend-stdlib) < %{zendframework_stdlib_max_ver} with php-autoloader(zendframework/zend-stdlib) >= %{zendframework_stdlib_min_ver}) BuildRequires: (php-composer(zetacomponents/document) < %{zetacomponents_document_max_ver} with php-composer(zetacomponents/document) >= %{zetacomponents_document_min_ver}) +BuildRequires: (php-composer(webmozart/assert) < %{webmozart_assert_max_ver} with php-composer(webmozart/assert) >= %{webmozart_assert_min_ver}) %else BuildRequires: php-composer(cilex/cilex) < %{cilex_max_ver} BuildRequires: php-composer(cilex/cilex) >= %{cilex_min_ver} @@ -304,6 +308,8 @@ BuildRequires: php-composer(zendframework/zend-stdlib) < %{zendframework_stdlib BuildRequires: php-composer(zendframework/zend-stdlib) >= %{zendframework_stdlib_min_ver} BuildRequires: php-composer(zetacomponents/document) < %{zetacomponents_document_max_ver} BuildRequires: php-composer(zetacomponents/document) >= %{zetacomponents_document_min_ver} +BuildRequires: php-composer(webmozart/assert) < %{webmozart_assert_max_ver} +BuildRequires: php-composer(webmozart/assert) >= %{webmozart_assert_min_ver} %endif ## phpcompatinfo (computed from version 2.9.1) BuildRequires: php-date @@ -350,6 +356,7 @@ Requires: (php-autoloader(zendframework/zend-serializer) < %{zendframework_ Requires: (php-autoloader(zendframework/zend-servicemanager) < %{zendframework_servicemanager_max_ver} with php-autoloader(zendframework/zend-servicemanager) >= %{zendframework_servicemanager_min_ver}) Requires: (php-autoloader(zendframework/zend-stdlib) < %{zendframework_stdlib_max_ver} with php-autoloader(zendframework/zend-stdlib) >= %{zendframework_stdlib_min_ver}) Requires: (php-composer(zetacomponents/document) < %{zetacomponents_document_max_ver} with php-composer(zetacomponents/document) >= %{zetacomponents_document_min_ver}) +Requires: (php-composer(webmozart/assert) < %{webmozart_assert_max_ver} with php-composer(webmozart/assert) >= %{webmozart_assert_min_ver}) %else Requires: php-composer(cilex/cilex) < %{cilex_max_ver} Requires: php-composer(cilex/cilex) >= %{cilex_min_ver} @@ -390,6 +397,8 @@ Requires: php-composer(zendframework/zend-stdlib) < %{zendframework_stdlib Requires: php-composer(zendframework/zend-stdlib) >= %{zendframework_stdlib_min_ver} Requires: php-composer(zetacomponents/document) < %{zetacomponents_document_max_ver} Requires: php-composer(zetacomponents/document) >= %{zetacomponents_document_min_ver} +Requires: php-composer(webmozart/assert) < %{webmozart_assert_max_ver} +Requires: php-composer(webmozart/assert) >= %{webmozart_assert_min_ver} %endif # phpcompatinfo (computed from version 2.9.1) Requires: php-date @@ -636,6 +645,7 @@ require_once '%{phpdir}/Fedora/Autoloader/autoload.php'; '%{phpdir}/Zend/Stdlib/autoload.php', '%{phpdir}/Zend/autoload.php', ], + '%{phpdir}/Webmozart/Assert/autoload.php', )); AUTOLOAD @@ -761,7 +771,10 @@ exit $RETURN_CODE %changelog -* Sat Aug 29 2020 Remi Collet - 2.9.1 +* Mon Sep 7 2020 Remi Collet - 2.9.1-2 +- add dependency on webmozart/assert + +* Sat Aug 29 2020 Remi Collet - 2.9.1-1 - update to 2.9.1 - fix zend-cache autoloader -- cgit