From 39c508ce7823fe93ff1ce237b7452b2eace28dd9 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 14 Nov 2018 07:50:57 +0100 Subject: update to 10.3.0-beta for PHP 7.3 --- php-ioncube-loader.spec | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/php-ioncube-loader.spec b/php-ioncube-loader.spec index 4593cd9..eab2c15 100644 --- a/php-ioncube-loader.spec +++ b/php-ioncube-loader.spec @@ -16,7 +16,7 @@ %ifarch armv7hl %global with_zts 0 %else -%global with_zts 0%{?__ztsphp:1} +%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} %endif %if "%{php_version}" < "5.6" %global ininame %{extname}.ini @@ -30,14 +30,21 @@ Name: %{?scl_prefix}php-ioncube-loader Summary: Loader for ionCube Encoded Files with ionCube 24 support -Version: 10.2.7 +%global upstream_version 10.3.0 +%global upstream_prever beta +Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: Distribuable URL: http://www.ioncube.com +%if 0%{?upstream_prever:1} +Source0: ioncube_loaders_lin_x86_7.3_BETA.tar.gz +Source1: ioncube_loaders_lin_x86-64_7.3_BETA.tar.gz +%else Source0: http://downloads2.ioncube.com/loader_downloads/%{extname}s_lin_x86_%{version}.tar.gz Source1: http://downloads2.ioncube.com/loader_downloads/%{extname}s_lin_x86-64_%{version}.tar.gz Source2: http://downloads2.ioncube.com/loader_downloads/%{extname}s_lin_armv7l_%{version}.tar.gz +%endif Source3: LICENSE.txt Source4: USER-GUIDE.txt @@ -70,10 +77,14 @@ Obsoletes: php70w-ioncube-loader <= %{version} Obsoletes: php71u-ioncube-loader <= %{version} Obsoletes: php71w-ioncube-loader <= %{version} %endif -%if "%{php_version}" > "7.1" +%if "%{php_version}" > "7.2" Obsoletes: php72u-ioncube-loader <= %{version} Obsoletes: php72w-ioncube-loader <= %{version} %endif +%if "%{php_version}" > "7.3" +Obsoletes: php73u-ioncube-loader <= %{version} +Obsoletes: php73w-ioncube-loader <= %{version} +%endif %endif %if 0%{?fedora} < 20 && 0%{?rhel} < 7 @@ -101,6 +112,11 @@ tar xvf %{SOURCE1} tar xvf %{SOURCE0} %endif %endif +%if 0%{?upstream_prever:1} +mkdir ioncube +mv ioncube_loader_lin_7.3_10.3.0_beta.so ioncube/ioncube_loader_lin_7.3.so +mv ioncube_loader_lin_7.3_10.3.0_beta_ts.so ioncube/ioncube_loader_lin_7.3_ts.so +%endif # Drop in the bit of configuration # Sometime file is missing @@ -177,12 +193,12 @@ install -D -m 644 %{extname}.zts %{buildroot}%{php_ztsinid # simple module load test %{__php} --no-php-ini \ --define zend_extension=%{buildroot}%{php_extdir}/%{extname}.so \ - --version | grep 'ionCube.*%{version}' + --version | grep 'ionCube.*%{upstream_version}' %if %{with_zts} %{__ztsphp} --no-php-ini \ --define zend_extension=%{buildroot}%{php_ztsextdir}/%{extname}.so \ - --version | grep 'ionCube.*%{version}' + --version | grep 'ionCube.*%{upstream_version}' %endif @@ -201,6 +217,9 @@ install -D -m 644 %{extname}.zts %{buildroot}%{php_ztsinid %changelog +* Wed Nov 14 2018 Remi Collet - 10.3.0~beta-1 +- update to 10.3.0-beta for PHP 7.3 + * Fri Nov 9 2018 Remi Collet - 10.2.7-1 - update to 10.2.7 (Nov 8, 2018) -- cgit