summaryrefslogtreecommitdiffstats
path: root/php-pecl-ip2proxy.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pecl-ip2proxy.spec')
-rw-r--r--php-pecl-ip2proxy.spec19
1 files changed, 14 insertions, 5 deletions
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 <remi@remirepo.net> - 3.0.1-1
+- update to 3.0.1
+
+* Thu Oct 22 2020 Remi Collet <remi@remirepo.net> - 3.0.0-2
+- add bundled library license file
+
* Thu Oct 22 2020 Remi Collet <remi@remirepo.net> - 3.0.0-1
- initital RPM
- open https://github.com/ip2location/ip2proxy-pecl/issues/1 package.xml