From 0b386592e415959287f3160cea02d287b822a99c Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 9 Sep 2019 17:58:19 +0200 Subject: - update to 1.5.0 - raise dependency on PHP 5.6 - raise dependency on mongodb extension 1.6 --- composer.json | 16 ++++++++++++---- php-mongodb.spec | 36 +++++++++++++++++++++++------------- 2 files changed, 35 insertions(+), 17 deletions(-) diff --git a/composer.json b/composer.json index c98ab12..41d0e32 100644 --- a/composer.json +++ b/composer.json @@ -5,18 +5,21 @@ "homepage": "https://jira.mongodb.org/browse/PHPLIB", "license": "Apache-2.0", "authors": [ + { "name": "Andreas Braun", "email": "andreas.braun@mongodb.com" }, { "name": "Jeremy Mikola", "email": "jmikola@gmail.com" }, - { "name": "Derick Rethans", "email": "github@derickrethans.nl" }, { "name": "Katherine Walker", "email": "katherine.walker@mongodb.com" } ], "require": { - "php": ">=5.5", + "php": "^5.6 || ^7.0", "ext-hash": "*", "ext-json": "*", - "ext-mongodb": "^1.5.0" + "ext-mongodb": "^1.6" }, "require-dev": { - "phpunit/phpunit": "^4.8.36 || ^6.4" + "phpunit/phpunit": "^5.7.27 || ^6.4 || ^8.3", + "sebastian/comparator": "^1.0 || ^2.0 || ^3.0", + "squizlabs/php_codesniffer": "^3.4", + "symfony/phpunit-bridge": "^4.4@dev" }, "autoload": { "psr-4": { "MongoDB\\": "src/" }, @@ -24,5 +27,10 @@ }, "autoload-dev": { "psr-4": { "MongoDB\\Tests\\": "tests/" } + }, + "extra": { + "branch-alias": { + "dev-master": "1.5.x-dev" + } } } diff --git a/php-mongodb.spec b/php-mongodb.spec index b61fe2b..d62f12b 100644 --- a/php-mongodb.spec +++ b/php-mongodb.spec @@ -6,18 +6,18 @@ # # Please, preserve the changelog entries # -%global gh_commit 18fca8cc8d0c2cc07f76605760d20632bb3dab96 +%global gh_commit 6405e91ba63955bcd187d3bab9ec7327d17cc4ce %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner mongodb #global gh_date 20151102 %global gh_project mongo-php-library # disabled for https://fedoraproject.org/wiki/Changes/MongoDB_Removal -%global with_tests 0 +%global with_tests 0%{?_with_tests:1} %global psr0 MongoDB #global prever beta2 Name: php-%{gh_owner} -Version: 1.4.3 +Version: 1.5.0 %if 0%{?gh_date} Release: 1%{gh_date}git%{gh_short}%{?dist} %else @@ -34,16 +34,20 @@ Source1: %{name}-autoload.php BuildArch: noarch %if %{with_tests} -BuildRequires: php(language) >= 5.5 +BuildRequires: php(language) >= 5.6 +BuildRequires: php-date BuildRequires: php-hash BuildRequires: php-json BuildRequires: php-spl -BuildRequires: php-pecl(mongodb) >= 1.4.0 +BuildRequires: php-pecl(mongodb) >= 1.6 BuildRequires: mongodb-server >= 2.4 # From composer.json, "require-dev": { -# "phpunit/phpunit": "^4.8.36 || ^6.4" +# "phpunit/phpunit": "^5.7.27 || ^6.4 || ^8.3", +# "sebastian/comparator": "^1.0 || ^2.0 || ^3.0", +# "squizlabs/php_codesniffer": "^3.4", +# "symfony/phpunit-bridge": "^4.4@dev" %if 0%{?fedora} >= 26 || 0%{?rhel} >= 8 -%global phpunit %{_bindir}/phpunit6 +%global phpunit %{_bindir}/phpunit8 %else %global phpunit %{_bindir}/phpunit %endif @@ -53,15 +57,16 @@ BuildRequires: php-composer(fedora/autoloader) %endif # From composer.json, "require": { -# "php": ">=5.5" +# "php": "^5.6 || ^7.0" # "ext-hash": "*", # "ext-json": "*", -# "ext-mongodb": "^1.5.0" -Requires: php(language) >= 5.4 +# "ext-mongodb": "^1.6" +Requires: php(language) >= 5.6 Requires: php-hash Requires: php-json -Requires: php-pecl(mongodb) >= 1.5.0 -# From phpcompatinfo report for 1.4.0 +Requires: php-pecl(mongodb) >= 1.6 +# From phpcompatinfo report for 1.5.0 +Requires: php-date Requires: php-spl # For autoloader Requires: php-composer(fedora/autoloader) @@ -129,7 +134,7 @@ ret=0 for cmdarg in "php %{phpunit}" "php56 %{_bindir}/phpunit" php70 php71 php72; do if which $cmdarg; then set $cmdarg - $1 ${2:-%{_bindir}/phpunit6} --verbose || ret=1 + $1 ${2:-%{_bindir}/phpunit8} --verbose || ret=1 fi done @@ -152,6 +157,11 @@ exit $ret %changelog +* Mon Sep 9 2019 Remi Collet - 1.5.0-1 +- update to 1.5.0 +- raise dependency on PHP 5.6 +- raise dependency on mongodb extension 1.6 + * Mon Aug 19 2019 Remi Collet - 1.4.3-1 - update to 1.4.3 -- cgit