diff options
-rw-r--r-- | composer.json | 38 | ||||
l--------- | makesrc.sh | 1 | ||||
-rw-r--r-- | php-doctrine-dbal.spec | 31 |
3 files changed, 40 insertions, 30 deletions
diff --git a/composer.json b/composer.json index 9d5f610..4a426e4 100644 --- a/composer.json +++ b/composer.json @@ -3,14 +3,25 @@ "type": "library", "description": "Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.", "keywords": [ - "php", + "abstraction", + "database", + "dbal", + "db2", + "mariadb", + "mssql", "mysql", "pgsql", - "dbal", - "database", - "abstraction", - "persistence", - "queryobject" + "postgresql", + "oci8", + "oracle", + "pdo", + "queryobject", + "sasql", + "sql", + "sqlanywhere", + "sqlite", + "sqlserver", + "sqlsrv" ], "homepage": "https://www.doctrine-project.org/projects/dbal.html", "license": "MIT", @@ -21,18 +32,17 @@ {"name": "Jonathan Wage", "email": "jonwage@gmail.com"} ], "require": { - "php": "^7.1", + "php": "^7.2", "ext-pdo": "*", "doctrine/cache": "^1.0", "doctrine/event-manager": "^1.0" }, "require-dev": { - "doctrine/coding-standard": "^5.0", - "jetbrains/phpstorm-stubs": "^2018.1.2", - "phpstan/phpstan": "^0.10.1", - "phpunit/phpunit": "^7.4", - "symfony/console": "^2.0.5|^3.0|^4.0", - "symfony/phpunit-bridge": "^3.4.5|^4.0.5" + "doctrine/coding-standard": "^6.0", + "jetbrains/phpstorm-stubs": "^2019.1", + "phpstan/phpstan": "^0.11.3", + "phpunit/phpunit": "^8.4.1", + "symfony/console": "^2.0.5|^3.0|^4.0|^5.0" }, "suggest": { "symfony/console": "For helpful console commands such as SQL execution and import of files." @@ -49,7 +59,7 @@ }, "extra": { "branch-alias": { - "dev-master": "2.9.x-dev", + "dev-master": "2.10.x-dev", "dev-develop": "3.0.x-dev" } } diff --git a/makesrc.sh b/makesrc.sh new file mode 120000 index 0000000..541c0a0 --- /dev/null +++ b/makesrc.sh @@ -0,0 +1 @@ +php-doctrine-dbal-get-source.sh
\ No newline at end of file diff --git a/php-doctrine-dbal.spec b/php-doctrine-dbal.spec index 60efd55..19dc7cb 100644 --- a/php-doctrine-dbal.spec +++ b/php-doctrine-dbal.spec @@ -13,26 +13,23 @@ %global github_owner doctrine %global github_name dbal -%global github_version 2.9.2 -%global github_commit 22800bd651c1d8d2a9719e2a3dc46d5108ebfcc9 +%global github_version 2.10.0 +%global github_commit 0c9a646775ef549eb0a213a4f9bd4381d9b4d934 %global composer_vendor doctrine %global composer_project dbal -# "php": "^7.1" -%global php_min_ver 7.1 +# "php": "^7.2" +%global php_min_ver 7.2 # "doctrine/cache": "^1.0" %global doctrine_cache_min_ver 1.0 %global doctrine_cache_max_ver 2 # "doctrine/event-manager": "^1.0" %global doctrine_event_min_ver 1.0 %global doctrine_event_max_ver 2 -# "symfony/console": "^2.0.5|^3.0|^4.0" +# "symfony/console": "^2.0.5|^3.0|^4.0|^5.0" %global symfony_console_min_ver 2.0.5 %global symfony_console_max_ver 5 -# "symfony/phpunit-bridge": "^3.4.5|^4.0.5" -%global symfony_phpunit_min_ver 4.0.5 -%global symfony_phpunit_max_ver 5.0 %{!?phpdir: %global phpdir %{_datadir}/php} @@ -60,7 +57,7 @@ Patch0: %{name}-bin.patch BuildArch: noarch # Tests %if %{with_tests} -BuildRequires: phpunit7 >= 7.4 +BuildRequires: phpunit8 >= 8.4.1 ## composer.json BuildRequires: php(language) >= %{php_min_ver} # remirepo:1 @@ -69,14 +66,12 @@ BuildRequires:(php-composer(doctrine/cache) >= %{doctrine_cache_min_ver} with ph 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/console) >= %{symfony_console_min_ver} with php-composer(symfony/console) < %{symfony_console_max_ver}) -BuildRequires:(php-composer(symfony/phpunit-bridge) >= %{symfony_phpunit_min_ver} with php-composer(symfony/phpunit-bridge) < %{symfony_phpunit_max_ver}) -# remirepo:10 +# remirepo:9 %else BuildRequires: php-composer(doctrine/cache) >= %{doctrine_cache_min_ver} BuildRequires: php-composer(doctrine/cache) < %{doctrine_cache_max_ver} BuildRequires: php-composer(doctrine/event-manager) >= %{doctrine_event_min_ver} BuildRequires: php-composer(doctrine/event-manager) < %{doctrine_event_max_ver} -BuildRequires: php-symfony4-phpunit-bridge ## composer.json (optional) BuildRequires: php-composer(symfony/console) >= %{symfony_console_min_ver} BuildRequires: php-composer(symfony/console) < %{symfony_console_max_ver} @@ -191,8 +186,6 @@ install -pm 0755 bin/doctrine-dbal.php %{buildroot}/%{_bindir}/doctrine-dbal %if %{with_tests} cat > bs.php <<'BOOTSTRAP' <?php -# load SF4 before main autoloader which load SF3 -require_once '%{phpdir}/Symfony4/Bridge/PhpUnit/autoload.php'; require_once '%{buildroot}/%{phpdir}/Doctrine/DBAL/autoload.php'; \Fedora\Autoloader\Autoload::addPsr4( 'Doctrine\\Tests\\', @@ -202,9 +195,10 @@ BOOTSTRAP : Upstream tests RETURN_CODE=0 -for PHP_EXEC in php php71 php72 php73; do +for PHP_EXEC in php php72 php73 php74; do + rm -f /tmp/test_nesting.sqlite if which $PHP_EXEC; then - $PHP_EXEC %{_bindir}/phpunit7 \ + $PHP_EXEC %{_bindir}/phpunit8 \ --bootstrap bs.php \ --verbose || RETURN_CODE=1 fi @@ -225,6 +219,11 @@ exit $RETURN_CODE %changelog +* Mon Nov 4 2019 Remi Collet <remi@remirepo.net> - 2.10.0-1 +- update to 2.10.0 +- raise dependencies on PHP 7.2 +- switch to phpunit8 + * Wed Jan 2 2019 Remi Collet <remi@remirepo.net> - 2.9.2-1 - update to 2.9.2 |