summaryrefslogtreecommitdiffstats
path: root/php-ioncube-loader.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-ioncube-loader.spec')
-rw-r--r--php-ioncube-loader.spec22
1 files changed, 16 insertions, 6 deletions
diff --git a/php-ioncube-loader.spec b/php-ioncube-loader.spec
index cec9ccd..84f9a8b 100644
--- a/php-ioncube-loader.spec
+++ b/php-ioncube-loader.spec
@@ -30,7 +30,7 @@
Name: %{?scl_prefix}php-ioncube-loader
Summary: Loader for ionCube Encoded Files with ionCube 24 support
-%global upstream_version 10.4.0
+%global upstream_version 10.4.1
#global upstream_prever beta2
Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}}
Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
@@ -44,9 +44,10 @@ Source1: https://www.ioncube.com/php-7.4.0-beta-loaders/ioncube_loaders_li
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
+Source3: http://downloads2.ioncube.com/loader_downloads/%{extname}s_lin_aarch64_%{version}.tar.gz
%endif
-Source3: LICENSE.txt
-Source4: USER-GUIDE.txt
+Source90: LICENSE.txt
+Source91: USER-GUIDE.txt
BuildRequires: %{?scl_prefix}php-devel
@@ -55,7 +56,7 @@ Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api}
Requires: %{?scl_prefix}php(api) = %{php_core_api}
%{?_sclreq:Requires: %{?scl_prefix}runtime%{?_sclreq}%{?_isa}}
-%if "%{?vendor}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel}
+%if "%{?packager}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel}
# Other third party repo stuff
Obsoletes: php53-ioncube-loader <= %{version}
Obsoletes: php53u-ioncube-loader <= %{version}
@@ -107,6 +108,9 @@ Package built for PHP %(%{__php} -n -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VER
%prep
%setup -q -T -c
+%ifarch aarch64
+tar xvf %{SOURCE3}
+%else
%ifarch armv7hl
tar xvf %{SOURCE2}
%else
@@ -116,6 +120,8 @@ tar xvf %{SOURCE1}
tar xvf %{SOURCE0}
%endif
%endif
+
+%endif
%if 0%{?upstream_prever:1}
mkdir ioncube
mv ioncube_loader_lin_7.4_%{upstream_version}_%{upstream_prever}.so ioncube/ioncube_loader_lin_7.4.so
@@ -125,8 +131,8 @@ mv ioncube_loader_lin_7.4_%{upstream_version}_%{upstream_prever}_ts.so ioncube/i
# Drop in the bit of configuration
# Sometime file is missing
# http://forum.ioncube.com/viewtopic.php?t=4245
-[ -f ioncube/LICENSE.txt ] || cp %{SOURCE3} ioncube/
-[ -f ioncube/USER-GUIDE.txt ] || cp %{SOURCE4} ioncube/
+[ -f ioncube/LICENSE.txt ] || cp %{SOURCE90} ioncube/
+[ -f ioncube/USER-GUIDE.txt ] || cp %{SOURCE91} ioncube/
sed -e 's/\r//' -i ioncube/*.txt
cat << 'EOF' | tee %{extname}.nts
@@ -217,6 +223,10 @@ install -D -m 644 %{extname}.zts %{buildroot}%{php_ztsinid
%changelog
+* Wed Jul 15 2020 Remi Collet <remi@remirepo.net> - 10.4.1-1
+- update to 10.4.1 (Jul 13, 2020)
+- add aarch64 support
+
* Tue Jun 30 2020 Remi Collet <remi@remirepo.net> - 10.4.0-1
- update to 10.4.0 (Jun 29, 2020)