diff --git a/.gitignore b/.gitignore index 6cf65d0..6519b1a 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ /mongo-php-library-1.4.1-0534ed0.tar.gz /mongo-php-library-1.4.2-bd148ea.tar.gz /mongo-php-library-1.4.3-18fca8c.tar.gz +/mongo-php-library-1.5.0-6405e91.tar.gz diff --git a/php-mongodb.spec b/php-mongodb.spec index cd706b2..c96c9a1 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 diff --git a/sources b/sources index aa05583..a7e0d50 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (mongo-php-library-1.4.3-18fca8c.tar.gz) = 0f36729d736c72b04525bae11e0b2641416ff9619e0a95fd27fe649cc729a4f3782be2e39bbd3d5bd5896b927613f61fc4de6e9e1e6929907718b63f3ba20524 +SHA512 (mongo-php-library-1.5.0-6405e91.tar.gz) = 40ac925fa63efe23bd7468a7dd048514bffc18593b70b238c83095866d7734ba9fcc0e69fe590ab7e46d68a619456b3b869ea71866eb18e7f34f953db70088f2