summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2017-10-09 17:17:47 +0200
committerRemi Collet <remi@remirepo.net>2017-10-09 17:17:47 +0200
commit7e62a66a43cfe76315aaf1dd4b3238e549bf0624 (patch)
tree6f45da20894ecb6e9d6533c84b6f4dfa4705808e
parentda4b61ff8a38a1fb4f5d115178e61b4946419ef2 (diff)
update to 10.1.0 BETA for PHP 7.2
-rw-r--r--php-ioncube-loader.spec29
1 files changed, 18 insertions, 11 deletions
diff --git a/php-ioncube-loader.spec b/php-ioncube-loader.spec
index bf02b7c..256448c 100644
--- a/php-ioncube-loader.spec
+++ b/php-ioncube-loader.spec
@@ -24,18 +24,20 @@
# Open issues
# http://forum.ioncube.com/viewtopic.php?t=4244 - No versio in Reflection
# http://forum.ioncube.com/viewtopic.php?p=10779 - ZTS module broken on EL-5
-#
+
Name: %{?scl_prefix}php-ioncube-loader
Summary: Loader for ionCube Encoded Files with ionCube 24 support
-Version: 10.0.3
+%global upstream_version 10.1.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
Group: Development/Languages
URL: http://www.ioncube.com
-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
+Source0: http://downloads2.ioncube.com/loader_downloads/%{extname}s_lin_x86_%{upstream_version}%{?upstream_prever}.tar.gz
+Source1: http://downloads2.ioncube.com/loader_downloads/%{extname}s_lin_x86-64_%{upstream_version}%{?upstream_prever}.tar.gz
Source2: LICENSE.txt
BuildRequires: %{?scl_prefix}php-devel
@@ -84,12 +86,14 @@ Package built for PHP %(%{__php} -n -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VER
%prep
%setup -q -T -c
-
+mkdir ioncube
+cd ioncube
%ifarch x86_64
tar xvf %{SOURCE1}
%else
tar xvf %{SOURCE0}
%endif
+cd ..
# Drop in the bit of configuration
# Sometime file is missing
@@ -147,16 +151,16 @@ diff %{extname}.nts %{extname}.zts || : ok
%install
ver=$(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')
-if [ ! -f ioncube/%{extname}_lin_${ver}.so ]; then
+if [ ! -f ioncube/%{extname}_lin_${ver}_10.1.0_beta.so ]; then
: Module for PHP $ver not provided
exit 1
fi
-install -D -pm 755 ioncube/%{extname}_lin_${ver}.so %{buildroot}%{php_extdir}/%{extname}.so
+install -D -pm 755 ioncube/%{extname}_lin_${ver}_10.1.0_beta.so %{buildroot}%{php_extdir}/%{extname}.so
install -D -m 644 %{extname}.nts %{buildroot}%{php_inidir}/%{ininame}
%if %{with_zts}
-install -D -pm 755 ioncube/%{extname}_lin_${ver}_ts.so %{buildroot}%{php_ztsextdir}/%{extname}.so
+install -D -pm 755 ioncube/%{extname}_lin_${ver}_10.1.0_beta_ts.so %{buildroot}%{php_ztsextdir}/%{extname}.so
install -D -m 644 %{extname}.zts %{buildroot}%{php_ztsinidir}/%{ininame}
%endif
@@ -165,19 +169,19 @@ 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
%files
%{!?_licensedir:%global license %%doc}
%license ioncube/LICENSE.txt
-%doc ioncube/USER-GUIDE.txt
+#doc ioncube/USER-GUIDE.txt
%config(noreplace) %{php_inidir}/%{ininame}
%{php_extdir}/%{extname}.so
@@ -189,6 +193,9 @@ install -D -m 644 %{extname}.zts %{buildroot}%{php_ztsinid
%changelog
+* Mon Oct 9 2017 Remi Collet <remi@remirepo.net> - 10.1.0~BETA-1
+- update to 10.1.0 BETA for PHP 7.2
+
* Wed Sep 27 2017 Remi Collet <remi@remirepo.net> - 10.0.3-1
- update to 10.0.3 (Sep 26, 2017)
- add new options in default configuration