From 74498b6e94149957e9be482e0a1120c144bfc68a Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 1 Apr 2025 07:52:22 +0200 Subject: update to 3.0.7 raise dependency on PHP 8.0 --- PHPINFO | 4 ++-- REFLECTION | 2 +- php-pecl-tensor.spec | 13 ++++++++++--- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/PHPINFO b/PHPINFO index bf5e0cd..04d36bb 100644 --- a/PHPINFO +++ b/PHPINFO @@ -5,6 +5,6 @@ tensor A library and extension that provides objects for scientific computing in PHP. tensor => enabled Author => The Rubix ML Community -Version => 3.0.5 -Build Date => Mar 28 2025 00:00:00 +Version => 3.0.7 +Build Date => Apr 1 2025 00:00:00 Powered by Zephir => Version 0.18.0-$Id$ diff --git a/REFLECTION b/REFLECTION index 4e2426a..d719c09 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,4 +1,4 @@ -Extension [ extension #112 tensor version 3.0.5 ] { +Extension [ extension #112 tensor version 3.0.7 ] { - Dependencies { } diff --git a/php-pecl-tensor.spec b/php-pecl-tensor.spec index c97ccc3..8fe4ed9 100644 --- a/php-pecl-tensor.spec +++ b/php-pecl-tensor.spec @@ -13,7 +13,7 @@ # After 20-json %global ini_name 40-%{pecl_name}.ini -%global upstream_version 3.0.6 +%global upstream_version 3.0.7 #global upstream_prever alpha2 %global sources %{pecl_name}-%{upstream_version}%{?upstream_prever} %global _configure ../ext/configure @@ -31,7 +31,7 @@ Patch1: tensor-libs.patch BuildRequires: make BuildRequires: %{?dtsprefix}gcc -BuildRequires: (%{?scl_prefix}php-devel >= 7.4 with %{?scl_prefix}php-devel < 8.4) +BuildRequires: (%{?scl_prefix}php-devel >= 8.0 with %{?scl_prefix}php-devel < 8.4) BuildRequires: %{?scl_prefix}php-pear BuildRequires: %{?scl_prefix}php-json BuildRequires: openblas-devel @@ -69,11 +69,14 @@ sed -e 's/\r//' -i ext/config.m4 %patch -P0 -p1 -b .headers %patch -P1 -p1 -b .libs +# Fix version +sed -e '/PHP_TENSOR_VERSION/s/3.0.5/%{version}/' -i ext/php_tensor.h + # Sanity check, really often broken extver=$(sed -n '/#define PHP_TENSOR_VERSION/{s/.* "//;s/".*$//;p}' ext/php_tensor.h) if test "x${extver}" != "x%{upstream_version}%{?upstream_prever}"; then : Error: Upstream extension version is ${extver}, expecting %{upstream_version}%{?upstream_prever}. - #exit 1 + exit 1 fi mkdir NTS @@ -172,6 +175,10 @@ done %changelog +* Tue Apr 1 2025 Remi Collet - 3.0.7-1 +- update to 3.0.7 +- raise dependency on PHP 8.0 + * Fri Mar 28 2025 Remi Collet - 3.0.6-1 - update to 3.0.6 - re-license spec file to CECILL-2.1 -- cgit