summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--php-symfony4.spec96
1 files changed, 50 insertions, 46 deletions
diff --git a/php-symfony4.spec b/php-symfony4.spec
index 056a6c9..40343ce 100644
--- a/php-symfony4.spec
+++ b/php-symfony4.spec
@@ -128,6 +128,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 symfony4_dir %{phpdir}/Symfony4
@@ -156,7 +162,7 @@ BuildArch: noarch
BuildRequires: composer
## composer.json
BuildRequires: php(language) >= %{php_min_ver}
-%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
+%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})
@@ -372,7 +378,7 @@ License: MIT
Requires: %{name}-common = %{version}-%{release}
# composer.json
-%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
Requires:(php-composer(doctrine/event-manager) >= %{doctrine_event_manager_min_ver} with php-composer(doctrine/event-manager) < %{doctrine_event_manager_max_ver})
Requires:(php-composer(doctrine/persistence) >= %{doctrine_persistence_min_ver} with php-composer(doctrine/persistence) < %{doctrine_persistence_max_ver})
Requires:(php-composer(%{composer_vendor}/service-contracts) >= %{symfony_contracts_min_ver} with php-composer(%{composer_vendor}/service-contracts) < %{symfony_contracts_max_ver})
@@ -423,7 +429,7 @@ License: MIT
Requires: %{name}-common = %{version}-%{release}
# composer.json
Requires: php-composer(%{composer_vendor}/http-kernel) = %{version}
-%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
Requires:(php-composer(monolog/monolog) >= %{monolog_min_ver} with php-composer(monolog/monolog) < %{monolog_max_ver})
Requires:(php-composer(%{composer_vendor}/service-contracts) >= %{symfony_contracts_min_ver} with php-composer(%{composer_vendor}/service-contracts) < %{symfony_contracts_max_ver})
# composer.json: optional
@@ -461,7 +467,7 @@ License: MIT
Requires: %{name}-common = %{version}-%{release}
# composer.json: optional
-%if 0%{?fedora} >= 26 || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
Suggests: php-composer(%{composer_vendor}/debug)
%endif
# phpcompatinfo for version 4.0.0-beta1
@@ -492,7 +498,7 @@ License: MIT
# composer.json
Requires: php-composer(%{composer_vendor}/dependency-injection) = %{version}
-%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
+%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}
@@ -523,7 +529,7 @@ License: MIT
Requires: %{name}-common = %{version}-%{release}
# composer.json
-%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
Requires:(php-composer(twig/twig) >= %{twig_min_ver} with php-composer(twig/twig) < %{twig_max_ver})
Requires:(php-composer(%{composer_vendor}/translation-contracts) >= %{symfony_contracts_min_ver} with php-composer(%{composer_vendor}/translation-contracts) < %{symfony_contracts_max_ver})
# composer.json: optional
@@ -578,7 +584,7 @@ Requires: php-composer(%{composer_vendor}/twig-bridge) = %{version}
Requires: php-composer(%{composer_vendor}/var-dumper) = %{version}
Requires: php-xml
# composer.json: optional
-%if 0%{?fedora} >= 26 || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
Suggests: php-composer(%{composer_vendor}/config)
Suggests: php-composer(%{composer_vendor}/dependency-injection)
%endif
@@ -611,7 +617,7 @@ Requires: php-composer(%{composer_vendor}/filesystem) = %{version}
Requires: php-composer(%{composer_vendor}/finder) = %{version}
Requires: php-composer(%{composer_vendor}/routing) = %{version}
Requires: php-xml
-%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
Requires:(php-composer(%{composer_vendor}/contracts) >= %{symfony_contracts_min_ver} with php-composer(%{composer_vendor}/contracts) < %{symfony_contracts_max_ver})
Requires:(php-composer(doctrine/cache) >= %{doctrine_cache_min_ver} with php-composer(doctrine/cache) < %{doctrine_cache_max_ver})
# composer.json: optional
@@ -638,7 +644,7 @@ Requires: php-mbstring
Requires: php-pcre
Requires: php-reflection
Requires: php-spl
-%if 0%{?fedora} >= 26 || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
Suggests: php-pecl(apcu)
%endif
@@ -697,7 +703,7 @@ 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 0%{?fedora} >= 27 || 0%{?rhel} >= 8
+%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}
@@ -731,7 +737,7 @@ Requires: php-composer(%{composer_vendor}/http-kernel) = %{version}
Requires: php-composer(%{composer_vendor}/routing) = %{version}
Requires: php-composer(%{composer_vendor}/twig-bridge) = %{version}
Requires: php-composer(%{composer_vendor}/var-dumper) = %{version}
-%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
+%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}
@@ -769,7 +775,7 @@ Requires: php-composer(%{composer_vendor}/process) = %{version}
Requires: php-ctype
Requires: php-posix
Requires: php-spl
-%if 0%{?fedora} >= 26 || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
Suggests: php-pcntl
# composer.json: optional
Suggests: php-composer(%{composer_vendor}/monolog-bridge)
@@ -794,7 +800,7 @@ URL: http://symfony.com/doc/%{symfony4_doc_ver}/components/asset.html
Requires: %{name}-common = %{version}-%{release}
# composer.json: optional
-%if 0%{?fedora} >= 26 || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
Suggests: php-composer(%{composer_vendor}/http-foundation)
%endif
# phpcompatinfo for version 4.0.0-beta1
@@ -821,7 +827,7 @@ URL: http://symfony.com/doc/%{symfony4_doc_ver}/components/browser_kit.html
# composer.json
Requires: php-composer(%{composer_vendor}/dom-crawler) = %{version}
# composer.json: optional
-%if 0%{?fedora} >= 26 || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
Suggests: php-composer(%{composer_vendor}/process)
%endif
# phpcompatinfo for version 4.0.0-beta1
@@ -851,7 +857,7 @@ URL: http://symfony.com/doc/%{symfony4_doc_ver}/components/cache.html
Requires: %{name}-common = %{version}-%{release}
# composer.json
Requires: php-composer(%{composer_vendor}/var-exporter) = %{version}
-%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
+%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(%{composer_vendor}/cache-contracts) >= %{symfony_contracts_min_ver} with php-composer(%{composer_vendor}/cache-contracts) < %{symfony_contracts_max_ver})
@@ -906,7 +912,7 @@ URL: http://symfony.com/doc/%{symfony4_doc_ver}/components/config.html
# composer.json
Requires: php-composer(%{composer_vendor}/filesystem) = %{version}
# composer.json: optional
-%if 0%{?fedora} >= 26 || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
Suggests: php-composer(%{composer_vendor}/yaml)
%endif
# phpcompatinfo for version 4.0.0-beta1
@@ -939,7 +945,7 @@ URL: http://symfony.com/doc/%{symfony4_doc_ver}/components/console.html
# composer.json
Requires: php-composer(%{composer_vendor}/debug) = %{version}
-%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
Requires:(php-composer(%{composer_vendor}/service-contracts) >= %{symfony_contracts_min_ver} with php-composer(%{composer_vendor}/service-contracts) < %{symfony_contracts_max_ver})
Requires:(php-composer(%{composer_vendor}/polyfill-php73) >= %{symfony_polyfill_min_ver} with php-composer(%{composer_vendor}/polyfill-php73) < %{symfony_polyfill_max_ver})
# composer.json: optional
@@ -1007,7 +1013,7 @@ URL: http://symfony.com/doc/%{symfony4_doc_ver}/components/debug.html
Requires: %{name}-common = %{version}-%{release}
# composer.json
-%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
+%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
@@ -1038,7 +1044,7 @@ URL: http://symfony.com/doc/%{symfony4_doc_ver}/components/dependency_injec
Requires: %{name}-common = %{version}-%{release}
# composer.json
-%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
Requires:(php-composer(psr/container) >= %{psr_container_min_ver} with php-composer(psr/container) < %{psr_container_max_ver})
Requires:(php-composer(%{composer_vendor}/service-contracts) >= %{symfony_contracts_min_ver} with php-composer(%{composer_vendor}/service-contracts) < %{symfony_contracts_max_ver})
# composer.json: optional
@@ -1083,7 +1089,7 @@ URL: http://symfony.com/doc/%{symfony4_doc_ver}/components/dom_crawler.html
Requires: %{name}-common = %{version}-%{release}
# composer.json: optional
-%if 0%{?fedora} >= 26 || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
Suggests: php-composer(%{composer_vendor}/css-selector)
%endif
# phpcompatinfo for version 4.0.0-beta1
@@ -1135,7 +1141,7 @@ URL: http://symfony.com/doc/%{symfony4_doc_ver}/components/event_dispatcher
Requires: %{name}-common = %{version}-%{release}
# composer.json:
-%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
Requires:(php-composer(%{composer_vendor}/event-dispatcher-contracts) >= %{symfony_contracts_min_ver} with php-composer(%{composer_vendor}/event-dispatcher-contracts) < %{symfony_contracts_max_ver})
# composer.json: optional
Suggests: php-composer(%{composer_vendor}/dependency-injection)
@@ -1170,7 +1176,7 @@ URL: http://symfony.com/doc/%{symfony4_doc_ver}/components/expression_langu
# composer.json:
Requires: php-composer(%{composer_vendor}/cache) = %{version}
-%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
Requires:(php-composer(%{composer_vendor}/service-contracts) >= %{symfony_contracts_min_ver} with php-composer(%{composer_vendor}/service-contracts) < %{symfony_contracts_max_ver})
%else
Requires: php-composer(%{composer_vendor}/service-contracts) < %{symfony_contracts_max_ver}
@@ -1248,7 +1254,7 @@ Requires: php-composer(%{composer_vendor}/event-dispatcher) = %{version}
Requires: php-composer(%{composer_vendor}/intl) = %{version}
Requires: php-composer(%{composer_vendor}/options-resolver) = %{version}
Requires: php-composer(%{composer_vendor}/property-access) = %{version}
-%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
Requires:(php-composer(%{composer_vendor}/service-contracts) >= %{symfony_contracts_min_ver} with php-composer(%{composer_vendor}/service-contracts) < %{symfony_contracts_max_ver})
# composer.json: optional
Suggests: php-composer(%{composer_vendor}/security-csrf)
@@ -1288,7 +1294,7 @@ License: MIT
URL: http://symfony.com/doc/%{symfony4_doc_ver}/components/client.html
Requires: %{name}-common = %{version}-%{release}
-%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
Requires:(php-composer(psr/log) >= %{psr_log_min_ver} with php-composer(psr/log) < %{psr_log_max_ver})
Requires:(php-composer(%{composer_vendor}/contracts) >= %{symfony_contracts_min_ver} with php-composer(%{composer_vendor}/contracts) < %{symfony_contracts_max_ver})
Requires:(php-composer(%{composer_vendor}/polyfill-php73) >= %{symfony_polyfill_min_ver} with php-composer(%{composer_vendor}/polyfill-php73) < %{symfony_polyfill_max_ver})
@@ -1373,7 +1379,7 @@ URL: http://symfony.com/doc/%{symfony4_doc_ver}/components/http_kernel.html
Requires: php-composer(%{composer_vendor}/debug) = %{version}
Requires: php-composer(%{composer_vendor}/event-dispatcher) = %{version}
Requires: php-composer(%{composer_vendor}/http-foundation) = %{version}
-%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
Requires:(php-composer(psr/log) >= %{psr_log_min_ver} with php-composer(psr/log) < %{psr_log_max_ver})
Requires:(php-composer(%{composer_vendor}/polyfill-php73) >= %{symfony_polyfill_min_ver} with php-composer(%{composer_vendor}/polyfill-php73) < %{symfony_polyfill_max_ver})
# composer.json: optional
@@ -1398,7 +1404,7 @@ Requires: php-reflection
Requires: php-session
Requires: php-spl
Requires: php-tokenizer
-%if 0%{?fedora} >= 26 || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
Suggests: php-pecl(apcu)
Suggests: php-pecl(opcache)
Suggests: php-pecl(Xdebug)
@@ -1501,8 +1507,10 @@ License: MIT
Requires: %{name}-common = %{version}-%{release}
# composer.json
-%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
+%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}
@@ -1511,10 +1519,6 @@ Requires: php-composer(psr/log) >= %{psr_log_min_ver}
Requires: php-hash
Requires: php-pcre
Requires: php-spl
-%if 0%{?fedora} >= 26 || 0%{?rhel} >= 8
-Suggests: php-pecl(memcached)
-Suggests: php-sysvsem
-%endif
# Composer
Provides: php-composer(%{composer_vendor}/lock) = %{version}
@@ -1536,7 +1540,7 @@ Requires: %{name}-common = %{version}-%{release}
# composer.json
Requires: %{name}-event-dispatcher = %{version}-%{release}
Requires: %{name}-mime = %{version}-%{release}
-%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
Requires:(php-composer(egulias/email-validator) >= %{email_validator_min_ver} with php-composer(egulias/email-validator) < %{email_validator_max_ver})
Requires:(php-composer(psr/log) >= %{psr_log_min_ver} with php-composer(psr/log) < %{psr_log_max_ver})
%else
@@ -1582,7 +1586,7 @@ Requires: php-date
Requires: php-json
Requires: php-pcntl
Requires: php-spl
-%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
+%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(amqp)
%else
@@ -1608,7 +1612,7 @@ License: MIT
Requires: %{name}-common = %{version}-%{release}
# composer.json
-%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
Requires:(php-composer(%{composer_vendor}/polyfill-mbstring) >= %{symfony_polyfill_min_ver} with php-composer(%{composer_vendor}/polyfill-mbstring) < %{symfony_polyfill_max_ver})
%else
Requires: php-composer(%{composer_vendor}/polyfill-mbstring) < %{symfony_polyfill_max_ver}
@@ -1688,7 +1692,7 @@ URL: http://symfony.com/doc/%{symfony4_doc_ver}/components/property_access.
# composer.json
Requires: php-composer(%{composer_vendor}/inflector) = %{version}
# composer.json: optional
-%if 0%{?fedora} >= 26 || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
Suggests: php-composer(psr/cache-implementation)
%endif
# phpcompatinfo for version 4.0.0-beta1
@@ -1715,7 +1719,7 @@ URL: http://symfony.com/doc/%{symfony4_doc_ver}/components/property_info.h
# composer.json
Requires: php-composer(%{composer_vendor}/inflector) = %{version}
# composer.json: optional
-%if 0%{?fedora} >= 26 || 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)
@@ -1746,7 +1750,7 @@ URL: http://symfony.com/doc/%{symfony4_doc_ver}/components/routing.html
Requires: %{name}-common = %{version}-%{release}
# composer.json: optional
-%if 0%{?fedora} >= 26 || 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)
@@ -1780,7 +1784,7 @@ 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}/property-access) = %{version}
-%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
Requires:(php-composer(%{composer_vendor}/event-dispatcher-contracts) >= %{symfony_contracts_min_ver} with php-composer(%{composer_vendor}/event-dispatcher-contracts) < %{symfony_contracts_max_ver})
Requires:(php-composer(%{composer_vendor}/service-contracts) >= %{symfony_contracts_min_ver} with php-composer(%{composer_vendor}/service-contracts) < %{symfony_contracts_max_ver})
# composer.json: optional
@@ -1838,7 +1842,7 @@ URL: http://symfony.com/doc/%{symfony4_doc_ver}/components/serializer.html
Requires: %{name}-common = %{version}-%{release}
# composer.json: optional
-%if 0%{?fedora} >= 26 || 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)
@@ -1879,7 +1883,7 @@ URL: http://symfony.com/doc/%{symfony4_doc_ver}/components/stopwatch.html
Requires: %{name}-common = %{version}-%{release}
# composer.json
-%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
Requires:(php-composer(%{composer_vendor}/service-contracts) >= %{symfony_contracts_min_ver} with php-composer(%{composer_vendor}/service-contracts) < %{symfony_contracts_max_ver})
%else
Requires: php-composer(%{composer_vendor}/service-contracts) < %{symfony_contracts_max_ver}
@@ -1906,7 +1910,7 @@ URL: http://symfony.com/doc/%{symfony4_doc_ver}/components/templating.html
Requires: %{name}-common = %{version}-%{release}
# composer.json: optional
-%if 0%{?fedora} >= 26 || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
Suggests: php-composer(psr/log)
%endif
# phpcompatinfo for version 4.0.0-beta1
@@ -1938,7 +1942,7 @@ License: MIT
URL: http://symfony.com/doc/%{symfony4_doc_ver}/components/translation.html
Requires: %{name}-common = %{version}-%{release}
-%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
# composer.json
Requires:(php-composer(%{composer_vendor}/translation-contracts) >= %{symfony_contracts_min_ver} with php-composer(%{composer_vendor}/translation-contracts) < %{symfony_contracts_max_ver})
# composer.json: optional
@@ -1980,7 +1984,7 @@ License: MIT
URL: http://symfony.com/doc/%{symfony4_doc_ver}/components/validator.html
Requires: php-composer(%{composer_vendor}/translation) = %{version}
-%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
# composer.json
Requires:(php-composer(%{composer_vendor}/translation-contracts) >= %{symfony_contracts_min_ver} with php-composer(%{composer_vendor}/translation-contracts) < %{symfony_contracts_max_ver})
# composer.json: optional
@@ -2032,7 +2036,7 @@ URL: http://symfony.com/doc/%{symfony4_doc_ver}/components/var_dumper.html
Requires: %{name}-common = %{version}-%{release}
# composer.json
-%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
# composer.json
Requires:(php-composer(%{composer_vendor}/polyfill-php72) >= %{symfony_polyfill_min_ver} with php-composer(%{composer_vendor}/polyfill-php72) < %{symfony_polyfill_max_ver})
# composer.json: optional
@@ -2113,7 +2117,7 @@ License: MIT
Requires: %{name}-common = %{version}-%{release}
# composer.json
-%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
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
@@ -2168,7 +2172,7 @@ URL: http://symfony.com/doc/%{symfony4_doc_ver}/components/yaml.html
Requires: %{name}-common = %{version}-%{release}
# composer.json: optional
-%if 0%{?fedora} >= 26 || 0%{?rhel} >= 8
+%if %{with_range_dependencies}
Suggests: php-composer(%{composer_vendor}/console)
%endif
# phpcompatinfo for version 4.0.0-beta1