summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2019-11-13 13:20:53 +0100
committerRemi Collet <remi@remirepo.net>2019-11-13 13:20:53 +0100
commit43ed06d42a05aaa08dd94795fade9f5e19a66344 (patch)
tree4c2eba1b10df01c00a5c03eeff6fdd6f7a62a28a
parent483ad872f756a71880fd4b5dc8674cce3811ee49 (diff)
use range dependencies
-rw-r--r--php-symfony3.spec234
1 files changed, 154 insertions, 80 deletions
diff --git a/php-symfony3.spec b/php-symfony3.spec
index 0d9cfb5..3bff174 100644
--- a/php-symfony3.spec
+++ b/php-symfony3.spec
@@ -105,6 +105,12 @@
%global php_version_id %(%{_bindir}/php -r "echo PHP_VERSION_ID;")
+%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
+%global with_range_dependencies 1
+%else
+%global with_range_dependencies 0
+%endif
+
%{!?phpdir: %global phpdir %{_datadir}/php}
%global symfony3_dir %{phpdir}/Symfony3
@@ -112,7 +118,7 @@
Name: php-%{composer_project}3
Version: %{github_version}
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Symfony PHP framework (version 3)
# MIT and CC-BY-SA:
@@ -129,6 +135,29 @@ BuildArch: noarch
BuildRequires: composer
## composer.json
BuildRequires: php(language) >= %{php_min_ver}
+%if %{with_range_dependencies}
+BuildRequires:(php-composer(cache/integration-tests) >= %{cache_integration_tests_min_ver} with php-composer(cache/integration-tests) < %{cache_integration_tests_max_ver})
+BuildRequires:(php-composer(doctrine/annotations) >= %{doctrine_annotations_min_ver} with php-composer(doctrine/annotations) < %{doctrine_annotations_max_ver})
+BuildRequires:(php-composer(doctrine/cache) >= %{doctrine_cache_min_ver} with php-composer(doctrine/cache) < %{doctrine_cache_max_ver})
+BuildRequires:(php-composer(doctrine/common) >= %{doctrine_common_min_ver} with php-composer(doctrine/common) < %{doctrine_common_max_ver})
+BuildRequires:(php-composer(doctrine/data-fixtures) >= %{doctrine_datafixtures_min_ver} with php-composer(doctrine/data-fixtures) < %{doctrine_datafixtures_max_ver})
+BuildRequires:(php-composer(doctrine/dbal) >= %{doctrine_dbal_min_ver} with php-composer(doctrine/dbal) < %{doctrine_dbal_max_ver})
+BuildRequires:(php-composer(doctrine/doctrine-bundle) >= %{doctrine_bundle_min_ver} with php-composer(doctrine/doctrine-bundle) < %{doctrine_bundle_max_ver})
+BuildRequires:(php-composer(doctrine/orm) >= %{doctrine_orm_min_ver} with php-composer(doctrine/orm) < %{doctrine_orm_max_ver})
+BuildRequires:(php-composer(egulias/email-validator) >= %{email_validator_min_ver} with php-composer(egulias/email-validator) < %{email_validator_max_ver})
+BuildRequires:(php-composer(fig/link-util) >= %{fig_link_util_min_ver} with php-composer(fig/link-util) < %{fig_link_util_max_ver})
+BuildRequires:(php-composer(monolog/monolog) >= %{monolog_min_ver} with php-composer(monolog/monolog) < %{monolog_max_ver})
+BuildRequires:(php-composer(ocramius/proxy-manager) >= %{proxy_manager_min_ver} with php-composer(ocramius/proxy-manager) < %{proxy_manager_max_ver})
+BuildRequires:(php-composer(phpdocumentor/reflection-docblock) >= %{phpdocumentor_reflection_docblock_min_ver} with php-composer(phpdocumentor/reflection-docblock) < %{phpdocumentor_reflection_docblock_max_ver})
+BuildRequires:(php-composer(psr/cache) >= %{psr_cache_min_ver} with php-composer(psr/cache) < %{psr_cache_max_ver})
+BuildRequires:(php-composer(psr/container) >= %{psr_container_min_ver} with php-composer(psr/container) < %{psr_container_max_ver})
+BuildRequires:(php-composer(psr/link) >= %{psr_link_min_ver} with php-composer(psr/link) < %{psr_link_max_ver})
+BuildRequires:(php-composer(psr/log) >= %{psr_log_min_ver} with php-composer(psr/log) < %{psr_log_max_ver})
+BuildRequires:(php-composer(psr/simple-cache) >= %{psr_simple_cache_min_ver} with php-composer(psr/simple-cache) < %{psr_simple_cache_max_ver})
+BuildRequires:(php-composer(symfony/polyfill) >= %{symfony_polyfill_min_ver} with php-composer(symfony/polyfill) < %{symfony_polyfill_max_ver})
+BuildRequires:(php-composer(symfony/security-acl) >= %{symfony_security_acl_min_ver} with php-composer(symfony/security-acl) < %{symfony_security_acl_max_ver})
+BuildRequires:(php-composer(twig/twig) >= %{twig_min_ver} with php-composer(twig/twig) < %{twig_max_ver})
+%else
BuildRequires: php-composer(cache/integration-tests) < %{cache_integration_tests_max_ver}
BuildRequires: php-composer(cache/integration-tests) >= %{cache_integration_tests_min_ver}
BuildRequires: php-composer(doctrine/annotations) < %{doctrine_annotations_max_ver}
@@ -155,8 +184,6 @@ BuildRequires: php-composer(ocramius/proxy-manager) < %{proxy_manager_max_ver}
BuildRequires: php-composer(ocramius/proxy-manager) >= %{proxy_manager_min_ver}
BuildRequires: php-composer(phpdocumentor/reflection-docblock) < %{phpdocumentor_reflection_docblock_max_ver}
BuildRequires: php-composer(phpdocumentor/reflection-docblock) >= %{phpdocumentor_reflection_docblock_min_ver}
-BuildConflicts: php-composer(phpdocumentor/reflection-docblock) = 3.2.0
-BuildRequires: phpunit7
BuildRequires: php-composer(psr/cache) < %{psr_cache_max_ver}
BuildRequires: php-composer(psr/cache) >= %{psr_cache_min_ver}
BuildRequires: php-composer(psr/container) < %{psr_container_max_ver}
@@ -173,6 +200,8 @@ BuildRequires: php-composer(symfony/security-acl) < %{symfony_security_acl_max_
BuildRequires: php-composer(symfony/security-acl) >= %{symfony_security_acl_min_ver}
BuildRequires: php-composer(twig/twig) < %{twig_max_ver}
BuildRequires: php-composer(twig/twig) >= %{twig_min_ver}
+%endif
+BuildRequires: phpunit7
## phpcompatinfo (computed from version 3.3.6)
BuildRequires: php-ctype
BuildRequires: php-curl
@@ -291,16 +320,18 @@ Summary: Symfony Doctrine Bridge (version 3)
Requires: %{name}-common = %{version}-%{release}
# composer.json
-Requires: php-composer(doctrine/common) >= %{doctrine_common_min_ver}
-Requires: php-composer(doctrine/common) < %{doctrine_common_max_ver}
+%if %{with_range_dependencies}
+Requires:(php-composer(doctrine/common) >= %{doctrine_common_min_ver} with php-composer(doctrine/common) < %{doctrine_common_max_ver})
# composer.json: optional
-%if 0%{?fedora} || 0%{?rhel} >= 8
Suggests: php-composer(%{composer_vendor}/form)
Suggests: php-composer(%{composer_vendor}/validator)
Suggests: php-composer(%{composer_vendor}/property-info)
Suggests: php-composer(doctrine/data-fixtures)
Suggests: php-composer(doctrine/dbal)
Suggests: php-composer(doctrine/orm)
+%else
+Requires: php-composer(doctrine/common) >= %{doctrine_common_min_ver}
+Requires: php-composer(doctrine/common) < %{doctrine_common_max_ver}
%endif
# phpcompatinfo (computed from version 3.3.6)
Requires: php-ctype
@@ -333,16 +364,18 @@ Autoloader: %{symfony3_dir}/Bridge/Doctrine/autoload.php
Summary: Symfony Monolog Bridge (version 3)
Requires: %{name}-common = %{version}-%{release}
-# composer.json
-Requires: php-composer(monolog/monolog) >= %{monolog_min_ver}
-Requires: php-composer(monolog/monolog) < %{monolog_max_ver}
Requires: php-composer(%{composer_vendor}/http-kernel) = %{version}
+%if %{with_range_dependencies}
+Requires:(php-composer(monolog/monolog) >= %{monolog_min_ver} with php-composer(monolog/monolog) < %{monolog_max_ver})
# composer.json: optional
-%if 0%{?fedora} || 0%{?rhel} >= 8
Suggests: php-composer(%{composer_vendor}/console)
Suggests: php-composer(%{composer_vendor}/event-dispatcher)
Suggests: php-composer(%{composer_vendor}/symfony/security-core)
Suggests: php-composer(%{composer_vendor}/var-dumper)
+%else
+# composer.json
+Requires: php-composer(monolog/monolog) >= %{monolog_min_ver}
+Requires: php-composer(monolog/monolog) < %{monolog_max_ver}
%endif
# phpcompatinfo (computed from version 3.3.6)
@@ -368,7 +401,7 @@ Summary: Symfony PHPUnit Bridge (version 3)
Requires: %{name}-common = %{version}-%{release}
# composer.json: optional
-%if 0%{?fedora} || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
Suggests: php-composer(%{composer_vendor}/debug)
%endif
# phpcompatinfo (computed from version 3.3.6)
@@ -398,8 +431,12 @@ Summary: Symfony ProxyManager Bridge (version 3)
# composer.json
Requires: php-composer(%{composer_vendor}/dependency-injection) = %{version}
+%if %{with_range_dependencies}
+Requires:(php-composer(ocramius/proxy-manager) >= %{proxy_manager_min_ver} with php-composer(ocramius/proxy-manager) < %{proxy_manager_max_ver})
+%else
Requires: php-composer(ocramius/proxy-manager) >= %{proxy_manager_min_ver}
Requires: php-composer(ocramius/proxy-manager) < %{proxy_manager_max_ver}
+%endif
# phpcompatinfo (computed from version 3.3.6)
Requires: php-reflection
Requires: php-spl
@@ -422,10 +459,9 @@ Summary: Symfony Twig Bridge (version 3)
Requires: %{name}-common = %{version}-%{release}
# composer.json
-Requires: php-composer(twig/twig) >= %{twig_min_ver}
-Requires: php-composer(twig/twig) < %{twig_max_ver}
+%if %{with_range_dependencies}
+Requires: (php-composer(twig/twig) >= %{twig_min_ver} with php-composer(twig/twig) < %{twig_max_ver})
# composer.json: optional
-%if 0%{?fedora} || 0%{?rhel} >= 8
Suggests: php-composer(%{composer_vendor}/asset)
Suggests: php-composer(%{composer_vendor}/expression-language)
Suggests: php-composer(%{composer_vendor}/finder)
@@ -440,6 +476,9 @@ Suggests: php-composer(%{composer_vendor}/var-dumper)
Suggests: php-composer(%{composer_vendor}/web-link)
Suggests: php-composer(%{composer_vendor}/workflow)
Suggests: php-composer(%{composer_vendor}/yaml)
+%else
+Requires: php-composer(twig/twig) >= %{twig_min_ver}
+Requires: php-composer(twig/twig) < %{twig_max_ver}
%endif
# phpcompatinfo (computed from version 3.3.6)
Requires: php-hash
@@ -468,7 +507,7 @@ Requires: php-composer(%{composer_vendor}/http-kernel) = %{version}
Requires: php-composer(%{composer_vendor}/twig-bridge) = %{version}
Requires: php-composer(%{composer_vendor}/var-dumper) = %{version}
# composer.json: optional
-%if 0%{?fedora} || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
Suggests: php-composer(%{composer_vendor}/config)
Suggests: php-composer(%{composer_vendor}/dependency-injection)
%endif
@@ -503,7 +542,7 @@ Requires: php-composer(%{composer_vendor}/http-kernel) = %{version}
Requires: php-composer(%{composer_vendor}/routing) = %{version}
Requires: php-xml
# composer.json: optional
-%if 0%{?fedora} || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
Suggests: php-composer(%{composer_vendor}/console)
Suggests: php-composer(%{composer_vendor}/form)
Suggests: php-composer(%{composer_vendor}/property-info)
@@ -511,6 +550,7 @@ Suggests: php-composer(%{composer_vendor}/serializer)
Suggests: php-composer(%{composer_vendor}/validator)
Suggests: php-composer(%{composer_vendor}/web-link)
Suggests: php-composer(%{composer_vendor}/yaml)
+Suggests: php-pecl(apcu)
%endif
# phpcompatinfo (computed from version 3.3.6)
Requires: php-date
@@ -524,9 +564,6 @@ Requires: php-pcre
Requires: php-reflection
Requires: php-spl
Requires: php-tokenizer
-%if 0%{?fedora} || 0%{?rhel} >= 8
-Suggests: php-pecl(apcu)
-%endif
# Composer
Provides: php-composer(%{composer_vendor}/framework-bundle) = %{version}
@@ -552,13 +589,14 @@ Summary: Symfony Security Bundle (version 3)
Requires: php-xml
Requires: php-composer(%{composer_vendor}/dependency-injection) = %{version}
Requires: php-composer(%{composer_vendor}/http-kernel) = %{version}
-Requires: php-composer(%{composer_vendor}/polyfill-php70) < %{symfony_polyfill_max_ver}
-Requires: php-composer(%{composer_vendor}/polyfill-php70) >= %{symfony_polyfill_min_ver}
Requires: php-composer(%{composer_vendor}/config) = %{version}
Requires: php-composer(%{composer_vendor}/security) = %{version}
-# composer.json: optional
-%if 0%{?fedora} || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
+Requires: (php-composer(symfony/polyfill-php70) >= %{symfony_polyfill_min_ver} with php-composer(symfony/polyfill-php70) < %{symfony_polyfill_max_ver})
Suggests: php-composer(%{composer_vendor}/security-acl)
+%else
+Requires: php-composer(%{composer_vendor}/polyfill-php70) < %{symfony_polyfill_max_ver}
+Requires: php-composer(%{composer_vendor}/polyfill-php70) >= %{symfony_polyfill_min_ver}
%endif
# phpcompatinfo (computed from version 3.3.6)
Requires: php-pcre
@@ -584,8 +622,12 @@ Requires: php-composer(%{composer_vendor}/debug) = %{version}
Requires: php-composer(%{composer_vendor}/http-foundation) = %{version}
Requires: php-composer(%{composer_vendor}/http-kernel) = %{version}
Requires: php-composer(%{composer_vendor}/twig-bridge) = %{version}
+%if %{with_range_dependencies}
+Requires:(php-composer(twig/twig) >= %{twig_min_ver} with php-composer(twig/twig) < %{twig_max_ver})
+%else
Requires: php-composer(twig/twig) < %{twig_max_ver}
Requires: php-composer(twig/twig) >= %{twig_min_ver}
+%endif
# phpcompatinfo (computed from version 3.3.6)
Requires: php-ctype
Requires: php-reflection
@@ -617,8 +659,12 @@ Requires: php-composer(%{composer_vendor}/polyfill-php70) >= %{symfony_polyfill_
Requires: php-composer(%{composer_vendor}/routing) = %{version}
Requires: php-composer(%{composer_vendor}/twig-bridge) = %{version}
Requires: php-composer(%{composer_vendor}/var-dumper) = %{version}
+%if %{with_range_dependencies}
+Requires:(php-composer(twig/twig) >= %{twig_min_ver} with php-composer(twig/twig) < %{twig_max_ver})
+%else
Requires: php-composer(twig/twig) < %{twig_max_ver}
Requires: php-composer(twig/twig) >= %{twig_min_ver}
+%endif
# phpcompatinfo (computed from version 3.3.6)
Requires: php-pcre
Requires: php-spl
@@ -652,7 +698,7 @@ Requires: php-composer(%{composer_vendor}/process) = %{version}
Requires: php-ctype
Requires: php-posix
Requires: php-spl
-%if 0%{?fedora} || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
Suggests: php-pcntl
# composer.json: optional
Suggests: php-composer(%{composer_vendor}/monolog-bridge)
@@ -676,7 +722,7 @@ URL: http://symfony.com/doc/%{symfony3_doc_ver}/components/asset.html
Requires: %{name}-common = %{version}-%{release}
# composer.json: optional
-%if 0%{?fedora} || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
Suggests: php-composer(%{composer_vendor}/http-foundation)
%endif
# phpcompatinfo (computed from version 3.3.6)
@@ -702,7 +748,7 @@ URL: http://symfony.com/doc/%{symfony3_doc_ver}/components/browser_kit.htm
# composer.json
Requires: php-composer(%{composer_vendor}/dom-crawler) = %{version}
# composer.json: optional
-%if 0%{?fedora} || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
Suggests: php-composer(%{composer_vendor}/process)
%endif
# phpcompatinfo (computed from version 3.3.6)
@@ -730,12 +776,22 @@ URL: http://symfony.com/doc/%{symfony3_doc_ver}/components/cache.html
Requires: %{name}-common = %{version}-%{release}
# composer.json
+%if %{with_range_dependencies}
+Requires: (php-composer(psr/cache) >= %{psr_cache_min_ver} with php-composer(psr/cache) < %{psr_cache_max_ver})
+Requires: (php-composer(psr/log) >= %{psr_log_min_ver} with php-composer(psr/log) < %{psr_log_max_ver})
+Requires: (php-composer(psr/simple-cache) >= %{psr_simple_cache_min_ver} with php-composer(psr/simple-cache) < %{psr_simple_cache_max_ver})
+Suggests: php-pecl(apcu)
+Suggests: php-pecl(memcached)
+Suggests: php-pecl(opcache)
+Suggests: php-pecl(redis)
+%else
Requires: php-composer(psr/cache) < %{psr_cache_max_ver}
Requires: php-composer(psr/cache) >= %{psr_cache_min_ver}
Requires: php-composer(psr/log) < %{psr_log_max_ver}
Requires: php-composer(psr/log) >= %{psr_log_min_ver}
Requires: php-composer(psr/simple-cache) < %{psr_simple_cache_max_ver}
Requires: php-composer(psr/simple-cache) >= %{psr_simple_cache_min_ver}
+%endif
# phpcompatinfo (computed from version 3.3.6)
Requires: php-date
Requires: php-hash
@@ -743,12 +799,6 @@ Requires: php-pcre
Requires: php-pdo
Requires: php-reflection
Requires: php-spl
-%if 0%{?fedora} || 0%{?rhel} >= 8
-Suggests: php-pecl(apcu)
-Suggests: php-pecl(memcached)
-Suggests: php-pecl(opcache)
-Suggests: php-pecl(redis)
-%endif
# Composer
Provides: php-composer(%{composer_vendor}/cache) = %{version}
@@ -778,7 +828,7 @@ Requires: php-pcre
Requires: php-reflection
Requires: php-spl
Requires: php-tokenizer
-%if 0%{?fedora} || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
Suggests: php-pecl(apcu)
Suggests: php-xcache
%endif
@@ -820,7 +870,7 @@ URL: http://symfony.com/doc/%{symfony3_doc_ver}/components/config.html
# composer.json
Requires: php-composer(%{composer_vendor}/filesystem) = %{version}
# composer.json: optional
-%if 0%{?fedora} || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
Suggests: php-composer(%{composer_vendor}/yaml)
%endif
# phpcompatinfo (computed from version 3.3.6)
@@ -853,7 +903,7 @@ URL: http://symfony.com/doc/%{symfony3_doc_ver}/components/console.html
# composer.json
Requires: php-composer(%{composer_vendor}/debug) = %{version}
# composer.json: optional
-%if 0%{?fedora} || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
Suggests: php-composer(%{composer_vendor}/event-dispatcher)
Suggests: php-composer(%{composer_vendor}/lock)
Suggests: php-composer(%{composer_vendor}/process)
@@ -912,16 +962,18 @@ URL: http://symfony.com/doc/%{symfony3_doc_ver}/components/debug.html
Requires: %{name}-common = %{version}-%{release}
# composer.json
+%if %{with_range_dependencies}
+Requires: (php-composer(psr/log) >= %{psr_log_min_ver} with php-composer(psr/log) < %{psr_log_max_ver})
+Suggests: php-pecl(Xdebug)
+%else
Requires: php-composer(psr/log) >= %{psr_log_min_ver}
Requires: php-composer(psr/log) < %{psr_log_max_ver}
+%endif
# phpcompatinfo (computed from version 3.3.6)
Requires: php-json
Requires: php-pcre
Requires: php-reflection
Requires: php-spl
-%if 0%{?fedora} || 0%{?rhel} >= 8
-Suggests: php-pecl(Xdebug)
-%endif
# Composer
Provides: php-composer(%{composer_vendor}/debug) = %{version}
@@ -940,15 +992,17 @@ URL: http://symfony.com/doc/%{symfony3_doc_ver}/components/dependency_inje
Requires: %{name}-common = %{version}-%{release}
# composer.json
-Requires: php-composer(psr/container) >= %{psr_container_min_ver}
-Requires: php-composer(psr/container) < %{psr_container_max_ver}
+%if %{with_range_dependencies}
+Requires: (php-composer(psr/container) >= %{psr_container_min_ver} with php-composer(psr/container) < %{psr_container_max_ver})
# composer.json: optional
-%if 0%{?fedora} || 0%{?rhel} >= 8
Suggests: php-composer(%{composer_vendor}/config)
Suggests: php-composer(%{composer_vendor}/expression-language)
Suggests: php-composer(%{composer_vendor}/finder)
Suggests: php-composer(%{composer_vendor}/proxy-manager-bridge)
Suggests: php-composer(%{composer_vendor}/yaml)
+%else
+Requires: php-composer(psr/container) >= %{psr_container_min_ver}
+Requires: php-composer(psr/container) < %{psr_container_max_ver}
%endif
# phpcompatinfo (computed from version 3.3.6)
Requires: php-dom
@@ -977,7 +1031,7 @@ URL: http://symfony.com/doc/%{symfony3_doc_ver}/components/dom_crawler.htm
Requires: %{name}-common = %{version}-%{release}
# composer.json: optional
-%if 0%{?fedora} || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
Suggests: php-composer(%{composer_vendor}/css-selector)
%endif
# phpcompatinfo (computed from version 3.3.6)
@@ -1025,7 +1079,7 @@ URL: http://symfony.com/doc/%{symfony3_doc_ver}/components/event_dispatche
Requires: %{name}-common = %{version}-%{release}
# composer.json: optional
-%if 0%{?fedora} || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
Suggests: php-composer(%{composer_vendor}/dependency-injection)
Suggests: php-composer(%{composer_vendor}/http-kernel)
%endif
@@ -1126,7 +1180,7 @@ Requires: php-composer(%{composer_vendor}/intl) = %{version}
Requires: php-composer(%{composer_vendor}/options-resolver) = %{version}
Requires: php-composer(%{composer_vendor}/property-access) = %{version}
# composer.json: optional
-%if 0%{?fedora} || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
Suggests: php-composer(%{composer_vendor}/framework-bundle)
Suggests: php-composer(%{composer_vendor}/security-csrf)
Suggests: php-composer(%{composer_vendor}/twig-bridge)
@@ -1159,8 +1213,13 @@ Summary: Symfony HttpFoundation Component (version 3)
URL: http://symfony.com/doc/%{symfony3_doc_ver}/components/http_foundation.html
Requires: %{name}-common = %{version}-%{release}
+%if %{with_range_dependencies}
+Requires: (php-composer(%{composer_vendor}/polyfill-php70) >= %{symfony_polyfill_min_ver} with php-composer(%{composer_vendor}/polyfill-php70) < %{symfony_polyfill_max_ver})
+Suggests: php-pecl(mongo)
+%else
Requires: php-composer(%{composer_vendor}/polyfill-php70) < %{symfony_polyfill_max_ver}
Requires: php-composer(%{composer_vendor}/polyfill-php70) >= %{symfony_polyfill_min_ver}
+%endif
# phpcompatinfo (computed from version 3.3.6)
Requires: php-date
Requires: php-fileinfo
@@ -1173,9 +1232,6 @@ Requires: php-pdo
Requires: php-session
Requires: php-sockets
Requires: php-spl
-%if 0%{?fedora} || 0%{?rhel} >= 8
-Suggests: php-pecl(mongo)
-%endif
# Composer
Provides: php-composer(%{composer_vendor}/http-foundation) = %{version}
@@ -1204,12 +1260,10 @@ URL: http://symfony.com/doc/%{symfony3_doc_ver}/components/http_kernel.htm
Requires: php-composer(%{composer_vendor}/debug) = %{version}
Requires: php-composer(%{composer_vendor}/event-dispatcher) = %{version}
Requires: php-composer(%{composer_vendor}/http-foundation) = %{version}
-Requires: php-composer(%{composer_vendor}/polyfill-php56) < %{symfony_polyfill_max_ver}
-Requires: php-composer(%{composer_vendor}/polyfill-php56) >= %{symfony_polyfill_min_ver}
-Requires: php-composer(psr/log) >= %{psr_log_min_ver}
-Requires: php-composer(psr/log) < %{psr_log_max_ver}
+%if %{with_range_dependencies}
+Requires: (php-composer(%{composer_vendor}/polyfill-php56) >= %{symfony_polyfill_min_ver} with php-composer(%{composer_vendor}/polyfill-php56) < %{symfony_polyfill_max_ver})
+Requires: (php-composer(psr/log) >= %{psr_log_min_ver} with php-composer(psr/log) < %{psr_log_max_ver})
# composer.json: optional
-%if 0%{?fedora} || 0%{?rhel} >= 8
Suggests: php-composer(%{composer_vendor}/browser-kit)
Suggests: php-composer(%{composer_vendor}/class-loader)
Suggests: php-composer(%{composer_vendor}/config)
@@ -1217,6 +1271,14 @@ Suggests: php-composer(%{composer_vendor}/console)
Suggests: php-composer(%{composer_vendor}/dependency-injection)
Suggests: php-composer(%{composer_vendor}/finder)
Suggests: php-composer(%{composer_vendor}/var-dumper)
+Suggests: php-pecl(apcu)
+Suggests: php-pecl(opcache)
+Suggests: php-pecl(Xdebug)
+%else
+Requires: php-composer(%{composer_vendor}/polyfill-php56) < %{symfony_polyfill_max_ver}
+Requires: php-composer(%{composer_vendor}/polyfill-php56) >= %{symfony_polyfill_min_ver}
+Requires: php-composer(psr/log) >= %{psr_log_min_ver}
+Requires: php-composer(psr/log) < %{psr_log_max_ver}
%endif
# phpcompatinfo (computed from version 3.3.6)
Requires: php-ctype
@@ -1228,11 +1290,6 @@ Requires: php-reflection
Requires: php-session
Requires: php-spl
Requires: php-tokenizer
-%if 0%{?fedora} || 0%{?rhel} >= 8
-Suggests: php-pecl(apcu)
-Suggests: php-pecl(opcache)
-Suggests: php-pecl(Xdebug)
-%endif
# Composer
Provides: php-composer(%{composer_vendor}/http-kernel) = %{version}
@@ -1309,8 +1366,12 @@ URL: http://symfony.com/doc/%{symfony3_doc_ver}/components/ldap.html
Requires: %{name}-common = %{version}-%{release}
# composer.json
Requires: php-composer(%{composer_vendor}/options-resolver) = %{version}
+%if %{with_range_dependencies}
+Requires: (php-composer(%{composer_vendor}/polyfill-php56) >= %{symfony_polyfill_min_ver} with php-composer(%{composer_vendor}/polyfill-php56) < %{symfony_polyfill_max_ver})
+%else
Requires: php-composer(%{composer_vendor}/polyfill-php56) < %{symfony_polyfill_max_ver}
Requires: php-composer(%{composer_vendor}/polyfill-php56) >= %{symfony_polyfill_min_ver}
+%endif
Requires: php-ldap
# phpcompatinfo (computed from version 3.3.6)
Requires: php-spl
@@ -1332,17 +1393,19 @@ License: MIT
Requires: %{name}-common = %{version}-%{release}
# composer.json
+%if %{with_range_dependencies}
+Requires:(php-composer(psr/log) >= %{psr_log_min_ver} with php-composer(psr/log) < %{psr_log_max_ver})
+Suggests: php-pecl(memcached)
+Suggests: php-sysvsem
+%else
Requires: php-composer(psr/log) < %{psr_log_max_ver}
Requires: php-composer(psr/log) >= %{psr_log_min_ver}
+%endif
# phpcompatinfo for version 3.4.5
Requires: php-hash
Requires: php-pcre
Requires: php-posix
Requires: php-spl
-%if 0%{?fedora} || 0%{?rhel} >= 8
-Suggests: php-pecl(memcached)
-Suggests: php-sysvsem
-%endif
# Composer
Provides: php-composer(%{composer_vendor}/lock) = %{version}
@@ -1404,11 +1467,13 @@ URL: http://symfony.com/doc/%{symfony3_doc_ver}/components/property_access
# composer.json
Requires: php-composer(%{composer_vendor}/inflector) = %{version}
-Requires: php-composer(%{composer_vendor}/polyfill-php70) < %{symfony_polyfill_max_ver}
-Requires: php-composer(%{composer_vendor}/polyfill-php70) >= %{symfony_polyfill_min_ver}
+%if %{with_range_dependencies}
+Requires: (php-composer(%{composer_vendor}/polyfill-php70) >= %{symfony_polyfill_min_ver} with php-composer(%{composer_vendor}/polyfill-php70) < %{symfony_polyfill_max_ver})
# composer.json: optional
-%if 0%{?fedora} || 0%{?rhel} >= 8
Suggests: php-composer(psr/cache-implementation)
+%else
+Requires: php-composer(%{composer_vendor}/polyfill-php70) < %{symfony_polyfill_max_ver}
+Requires: php-composer(%{composer_vendor}/polyfill-php70) >= %{symfony_polyfill_min_ver}
%endif
# phpcompatinfo (computed from version 3.3.6)
Requires: php-pcre
@@ -1434,7 +1499,7 @@ URL: http://symfony.com/doc/%{symfony3_doc_ver}/components/property_info.h
# composer.json
Requires: php-composer(%{composer_vendor}/inflector) = %{version}
# composer.json: optional
-%if 0%{?fedora} || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
Suggests: php-composer(%{composer_vendor}/doctrine-bridge)
Suggests: php-composer(%{composer_vendor}/serializer)
Suggests: php-composer(psr/cache-implementation)
@@ -1465,7 +1530,7 @@ URL: http://symfony.com/doc/%{symfony3_doc_ver}/components/routing.html
Requires: %{name}-common = %{version}-%{release}
# composer.json: optional
-%if 0%{?fedora} || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
Suggests: php-composer(%{composer_vendor}/config)
Suggests: php-composer(%{composer_vendor}/yaml)
Suggests: php-composer(%{composer_vendor}/expression-language)
@@ -1497,18 +1562,21 @@ URL: http://symfony.com/doc/%{symfony3_doc_ver}/components/security.html
Requires: php-composer(%{composer_vendor}/event-dispatcher) = %{version}
Requires: php-composer(%{composer_vendor}/http-foundation) = %{version}
Requires: php-composer(%{composer_vendor}/http-kernel) = %{version}
-Requires: php-composer(%{composer_vendor}/polyfill-php56) < %{symfony_polyfill_max_ver}
-Requires: php-composer(%{composer_vendor}/polyfill-php56) >= %{symfony_polyfill_min_ver}
-Requires: php-composer(%{composer_vendor}/polyfill-php70) < %{symfony_polyfill_max_ver}
-Requires: php-composer(%{composer_vendor}/polyfill-php70) >= %{symfony_polyfill_min_ver}
Requires: php-composer(%{composer_vendor}/property-access) = %{version}
+%if %{with_range_dependencies}
+Requires: (php-composer(%{composer_vendor}/polyfill-php56) >= %{symfony_polyfill_min_ver} with php-composer(%{composer_vendor}/polyfill-php56) < %{symfony_polyfill_max_ver})
+Requires: (php-composer(%{composer_vendor}/polyfill-php70) >= %{symfony_polyfill_min_ver} with php-composer(%{composer_vendor}/polyfill-php70) < %{symfony_polyfill_max_ver})
# composer.json: optional
-%if 0%{?fedora} || 0%{?rhel} >= 8
Suggests: php-composer(%{composer_vendor}/expression-language)
Suggests: php-composer(%{composer_vendor}/form)
Suggests: php-composer(%{composer_vendor}/ldap)
Suggests: php-composer(%{composer_vendor}/routing)
Suggests: php-composer(%{composer_vendor}/validator)
+%else
+Requires: php-composer(%{composer_vendor}/polyfill-php56) < %{symfony_polyfill_max_ver}
+Requires: php-composer(%{composer_vendor}/polyfill-php56) >= %{symfony_polyfill_min_ver}
+Requires: php-composer(%{composer_vendor}/polyfill-php70) < %{symfony_polyfill_max_ver}
+Requires: php-composer(%{composer_vendor}/polyfill-php70) >= %{symfony_polyfill_min_ver}
%endif
# phpcompatinfo (computed from version 3.3.6)
Requires: php-ctype
@@ -1551,7 +1619,7 @@ URL: http://symfony.com/doc/%{symfony3_doc_ver}/components/serializer.html
Requires: %{name}-common = %{version}-%{release}
# composer.json: optional
-%if 0%{?fedora} || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
Suggests: php-composer(%{composer_vendor}/config)
Suggests: php-composer(%{composer_vendor}/http-foundation)
Suggests: php-composer(%{composer_vendor}/property-access)
@@ -1610,7 +1678,7 @@ URL: http://symfony.com/doc/%{symfony3_doc_ver}/components/templating.html
Requires: %{name}-common = %{version}-%{release}
# composer.json: optional
-%if 0%{?fedora} || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
Suggests: php-composer(psr/log)
%endif
# phpcompatinfo (computed from version 3.3.6)
@@ -1642,7 +1710,7 @@ URL: http://symfony.com/doc/%{symfony3_doc_ver}/components/translation.htm
Requires: %{name}-common = %{version}-%{release}
# composer.json: optional
-%if 0%{?fedora} || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
Suggests: php-composer(%{composer_vendor}/config)
Suggests: php-composer(%{composer_vendor}/yaml)
Suggests: php-composer(psr/log)
@@ -1676,7 +1744,7 @@ URL: http://symfony.com/doc/%{symfony3_doc_ver}/components/validator.html
# composer.json
Requires: php-composer(%{composer_vendor}/translation) = %{version}
# composer.json: optional
-%if 0%{?fedora} || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
Suggests: php-composer(%{composer_vendor}/config)
Suggests: php-composer(%{composer_vendor}/expression-language)
Suggests: php-composer(%{composer_vendor}/http-foundation)
@@ -1733,7 +1801,7 @@ Requires: php-posix
Requires: php-reflection
Requires: php-spl
Requires: php-xml
-%if 0%{?fedora} || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
Suggests: php-intl
Suggests: php-mysql
Suggests: php-pecl(amqp)
@@ -1765,14 +1833,17 @@ Autoloader: %{symfony3_dir}/Component/VarDumper/autoload.php
Summary: Symfony WebLink Component (version 3)
Requires: %{name}-common = %{version}-%{release}
+%if %{with_range_dependencies}
# composer.json
+Requires: (php-composer(fig/link-util) >= %{fig_link_util_min_ver} with php-composer(fig/link-util) < %{fig_link_util_max_ver})
+Requires: (php-composer(psr/link) >= %{psr_link_min_ver} with php-composer(psr/link) < %{psr_link_max_ver})
+# composer.json: optional
+Suggests: php-composer(%{composer_vendor}/http-kernel)
+%else
Requires: php-composer(fig/link-util) < %{fig_link_util_max_ver}
Requires: php-composer(fig/link-util) >= %{fig_link_util_min_ver}
Requires: php-composer(psr/link) < %{psr_link_max_ver}
Requires: php-composer(psr/link) >= %{psr_link_min_ver}
-# composer.json: optional
-%if 0%{?fedora} || 0%{?rhel} >= 8
-Suggests: php-composer(%{composer_vendor}/http-kernel)
%endif
# phpcompatinfo (computed from version 3.3.6)
# <none>
@@ -1816,7 +1887,7 @@ URL: http://symfony.com/doc/%{symfony3_doc_ver}/components/yaml.html
Requires: %{name}-common = %{version}-%{release}
# composer.json: optional
-%if 0%{?fedora} || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
Suggests: php-composer(%{composer_vendor}/console)
%endif
# phpcompatinfo (computed from version 3.3.6)
@@ -2806,6 +2877,9 @@ exit $RET
# ##############################################################################
%changelog
+* Wed Nov 13 2019 Remi Collet <remi@remirepo.net> - 3.4.35-2
+- use range dependencies
+
* Wed Nov 13 2019 Remi Collet <remi@remirepo.net> - 3.4.35-1
- update to 3.4.35