From 012e075c865d936ded0fc5d24be92e945a5dd7f4 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 1 Oct 2019 08:41:34 +0200 Subject: - update to 1.5.0 - raise dependency on PHP 5.6 --- php-maxminddb.spec | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) (limited to 'php-maxminddb.spec') diff --git a/php-maxminddb.spec b/php-maxminddb.spec index 2ad688f..cee378a 100644 --- a/php-maxminddb.spec +++ b/php-maxminddb.spec @@ -14,15 +14,10 @@ %global pkg_name %{name} %global with_lib 1 %endif -# for the pure PHP library - disabled on EL < 8 because of PHPUnit dependency -%if 0%{?fedora} >= 20 || 0%{?rhel} >= 8 %global with_tests 0%{!?_without_tests:1} -%else -%global with_tests 0%{?_with_tests:1} -%endif -%global gh_commit eb83d0ee1c1f9b8a340206302136bc81ee02ae74 +%global gh_commit bd436094fc0a9b0558a899fb80b0ae34fe1808a0 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner maxmind %global gh_project MaxMind-DB-Reader-php @@ -36,16 +31,16 @@ Summary: MaxMind DB Reader extension Name: %{?sub_prefix}php-maxminddb -Version: 1.4.1 -%global rpmrel 2 -Release: %{rpmrel}%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Version: 1.5.0 +%global rpmrel 1 +Release: %{rpmrel}%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo "1".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: ASL 2.0 URL: https://github.com/%{gh_owner}/%{gh_project} Source0: %{pkg_name}-%{version}-%{gh_short}.tgz Source1: makesrc.sh -BuildRequires: %{?scl_prefix}php-devel +BuildRequires: %{?scl_prefix}php-devel >= 5.6 BuildRequires: pkgconfig(libmaxminddb) >= 1.0.0 Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} @@ -115,15 +110,15 @@ BuildRequires: php-bcmath BuildRequires: php-gmp # from composer.json "require-dev": { # "friendsofphp/php-cs-fixer": "2.*", -# "phpunit/phpunit": "4.* || 5.*", +# "phpunit/phpunit": "5.*", # "satooshi/php-coveralls": "1.0.*", # "squizlabs/php_codesniffer": "3.*" BuildRequires: php-composer(phpunit/phpunit) %endif # from composer.json "require": { -# "php": ">=5.4" -Requires: php(language) >= 5.4 +# "php": ">=5.6" +Requires: php(language) >= 5.6 # from composer.json "suggest": { # "ext-bcmath": "bcmath or gmp is required for decoding larger integers with the pure PHP decoder", # "ext-gmp": "bcmath or gmp is required for decoding larger integers with the pure PHP decoder", @@ -266,7 +261,7 @@ REPORT_EXIT_STATUS=1 \ %if %{with_lib} && %{with_tests} cd .. : Upstream test suite for the library -for cmd in php php56 php70 php71 php72 php73; do +for cmd in php php56 php70 php71 php72 php73 php74; do if which $cmd; then $cmd %{_bindir}/phpunit \ --bootstrap %{buildroot}%{_datadir}/php/MaxMind/Db/Reader/autoload.php \ @@ -308,6 +303,10 @@ exit $ret %changelog +* Tue Oct 1 2019 Remi Collet - 1.5.0-1 +- update to 1.5.0 +- raise dependency on PHP 5.6 + * Tue Sep 03 2019 Remi Collet - 1.4.1-2 - rebuild for 7.4.0RC1 -- cgit