summaryrefslogtreecommitdiffstats
path: root/php-doctrine-dbal.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2021-06-23 08:15:46 +0200
committerRemi Collet <remi@remirepo.net>2021-06-23 08:15:46 +0200
commitd95d23cf3ee604e6b12022c139e37ef89aed390d (patch)
treef20b9b5e6fa78661b71d20221b5cc3ed229d216b /php-doctrine-dbal.spec
parentb2ec15e68a5729456bdcebb96b2e56a95c57f27c (diff)
update to 2.13.2
allow doctrine/cache version 2
Diffstat (limited to 'php-doctrine-dbal.spec')
-rw-r--r--php-doctrine-dbal.spec34
1 files changed, 25 insertions, 9 deletions
diff --git a/php-doctrine-dbal.spec b/php-doctrine-dbal.spec
index fc4ee61..a782f43 100644
--- a/php-doctrine-dbal.spec
+++ b/php-doctrine-dbal.spec
@@ -16,17 +16,17 @@
%global github_owner doctrine
%global github_name dbal
-%global github_version 2.13.1
-%global github_commit c800380457948e65bbd30ba92cc17cda108bf8c9
+%global github_version 2.13.2
+%global github_commit 8dd39d2ead4409ce652fd4f02621060f009ea5e4
%global composer_vendor doctrine
%global composer_project dbal
# "php": "^7.1 || ^8"
%global php_min_ver 7.1
-# "doctrine/cache": "^1.0"
+# "doctrine/cache": "^1.0|^2.0"
%global doctrine_cache_min_ver 1.0
-%global doctrine_cache_max_ver 2
+%global doctrine_cache_max_ver 3
# "doctrine/event-manager": "^1.0"
%global doctrine_event_min_ver 1.0
%global doctrine_event_max_ver 2
@@ -36,6 +36,9 @@
# "symfony/console": "^2.0.5|^3.0|^4.0|^5.0"
%global symfony_console_min_ver 2.0.5
%global symfony_console_max_ver 6
+# "symfony/cache": "^4.4"
+%global symfony_cache_min_ver 4.4
+%global symfony_cache_max_ver 5
%{!?phpdir: %global phpdir %{_datadir}/php}
@@ -59,7 +62,7 @@ Patch0: %{name}-bin.patch
BuildArch: noarch
# Tests
%if %{with tests}
-BuildRequires: phpunit9 >= 9.5.0
+BuildRequires: phpunit9 >= 9.5.5
## composer.json
BuildRequires: php(language) >= %{php_min_ver}
# remirepo:1
@@ -68,8 +71,9 @@ BuildRequires:(php-composer(doctrine/cache) >= %{doctrine_cache_min_ver} with ph
BuildRequires:(php-composer(doctrine/deprecations) >= %{doctrine_deprecations_min_ver} with php-composer(doctrine/deprecations) < %{doctrine_deprecations_max_ver})
BuildRequires:(php-composer(doctrine/event-manager) >= %{doctrine_event_min_ver} with php-composer(doctrine/event-manager) < %{doctrine_cache_max_ver})
## composer.json (optional)
+BuildRequires:(php-composer(symfony/cache) >= %{symfony_cache_min_ver} with php-composer(symfony/cache) < %{symfony_cache_max_ver})
BuildRequires:(php-composer(symfony/console) >= %{symfony_console_min_ver} with php-composer(symfony/console) < %{symfony_console_max_ver})
-# remirepo:11
+# remirepo:13
%else
BuildRequires: php-composer(doctrine/cache) < %{doctrine_cache_max_ver}
BuildRequires: php-composer(doctrine/cache) >= %{doctrine_cache_min_ver}
@@ -78,6 +82,8 @@ BuildRequires: php-composer(doctrine/deprecations) >= %{doctrine_deprecations_mi
BuildRequires: php-composer(doctrine/event-manager) < %{doctrine_event_max_ver}
BuildRequires: php-composer(doctrine/event-manager) >= %{doctrine_event_min_ver}
## composer.json (optional)
+BuildRequires: php-composer(symfony/cache) < %{symfony_cache_max_ver}
+BuildRequires: php-composer(symfony/cache) >= %{symfony_cache_min_ver}
BuildRequires: php-composer(symfony/console) < %{symfony_console_max_ver}
BuildRequires: php-composer(symfony/console) >= %{symfony_console_min_ver}
%endif
@@ -171,11 +177,14 @@ if (!class_exists('Doctrine\\DBAL\\Connection')) {
\Fedora\Autoloader\Autoload::addPsr4('Doctrine\\DBAL\\', __DIR__);
}
-\Fedora\Autoloader\Dependencies::required(array(
- '%{phpdir}/Doctrine/Common/Cache/autoload.php',
+\Fedora\Autoloader\Dependencies::required([
+ [
+ '%{phpdir}/Doctrine/Common/Cache2/autoload.php',
+ '%{phpdir}/Doctrine/Common/Cache/autoload.php',
+ ],
'%{phpdir}/Doctrine/Deprecations/autoload.php',
'%{phpdir}/Doctrine/Common/EventManager/autoload.php',
-));
+]);
\Fedora\Autoloader\Dependencies::optional([
[
@@ -201,6 +210,9 @@ install -pm 0755 bin/doctrine-dbal.php %{buildroot}/%{_bindir}/doctrine-dbal
cat > bs.php <<'BOOTSTRAP'
<?php
require_once '%{buildroot}/%{phpdir}/Doctrine/DBAL/autoload.php';
+\Fedora\Autoloader\Dependencies::required([
+ '%{phpdir}/Symfony4/Component/Cache/autoload.php',
+]);
\Fedora\Autoloader\Autoload::addPsr4(
'Doctrine\\Tests\\',
__DIR__ . '/tests/Doctrine/Tests'
@@ -239,6 +251,10 @@ exit $RETURN_CODE
%changelog
+* Wed Jun 23 2021 Remi Collet <remi@remirepo.net> - 2.13.2-1
+- update to 2.13.2
+- allow doctrine/cache version 2
+
* Tue Apr 20 2021 Remi Collet <remi@remirepo.net> - 2.13.1-1
- update to 2.13.1