From a1a02cc02ff7e1ef0fbe33a876b767ff8f3e2d39 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 23 Oct 2020 07:52:17 +0200 Subject: update to 3.0.1 --- PHPINFO | 2 +- REFLECTION | 2 +- php-pecl-ip2proxy.spec | 19 ++++++++++++++----- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/PHPINFO b/PHPINFO index 1a8fedb..10293ff 100644 --- a/PHPINFO +++ b/PHPINFO @@ -2,5 +2,5 @@ ip2proxy ip2proxy support => enabled -extension version => 3.0.0 +extension version => 3.0.1 library version => 3.2.0 diff --git a/REFLECTION b/REFLECTION index 8be2f86..7035e00 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,4 +1,4 @@ -Extension [ extension #79 ip2proxy version 3.0.0 ] { +Extension [ extension #79 ip2proxy version 3.0.1 ] { - Constants [4] { Constant [ int IP2PROXY_FILE_IO ] { 0 } diff --git a/php-pecl-ip2proxy.spec b/php-pecl-ip2proxy.spec index d68d5c4..07fa908 100644 --- a/php-pecl-ip2proxy.spec +++ b/php-pecl-ip2proxy.spec @@ -11,8 +11,7 @@ %scl_package php-pecl-ip2proxy %endif -# no test suite for now -%bcond_with tests +%bcond_without tests %global pecl_name ip2proxy %global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} @@ -22,18 +21,19 @@ %global ini_name 40-%{pecl_name}.ini %endif -%global upstream_version 3.0.0 +%global upstream_version 3.0.1 #global upstream_prever RC1 # see https://github.com/ip2location/ip2proxy-c/commits/master %global gh_owner ip2location %global gh_project ip2proxy-c -%global gh_commit ae45954601e416a71a20b110fd774615677bc45e +%global gh_commit 436bd401f49a94cf706192ae5e62bc72cfef799c %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) Summary: Get proxy information of an IP address Name: %{?sub_prefix}php-pecl-%{pecl_name} -License: PHP +# library is MIT, extension is PHP +License: MIT and PHP Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} URL: https://pecl.php.net/package/igbinary @@ -92,6 +92,7 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO %prep %setup -q -c -a 1 mv %{gh_project}-%{gh_commit}/libIP2Proxy libIP2Proxy +mv %{gh_project}-%{gh_commit}/LICENSE.TXT LICENSE-%{gh_project} mv %{pecl_name}-%{upstream_version}%{?upstream_prever} NTS # Don't install tests @@ -217,6 +218,8 @@ fi %files +%{!?_licensedir:%global license %%doc} +%license LICENSE-%{gh_project} %{?_licensedir:%license NTS/LICENSE} %doc %{pecl_docdir}/%{pecl_name} %config(noreplace) %{php_inidir}/%{ini_name} @@ -231,6 +234,12 @@ fi %changelog +* Fri Oct 23 2020 Remi Collet - 3.0.1-1 +- update to 3.0.1 + +* Thu Oct 22 2020 Remi Collet - 3.0.0-2 +- add bundled library license file + * Thu Oct 22 2020 Remi Collet - 3.0.0-1 - initital RPM - open https://github.com/ip2location/ip2proxy-pecl/issues/1 package.xml -- cgit