From b609a2a030bf4a825f7c9c0fd9ab3361acd1b739 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 6 Sep 2023 07:32:37 +0200 Subject: update to 0.13.0 fix tests installation path --- PHPINFO | 2 +- REFLECTION | 2 +- php-zstd.spec | 21 +++++++++++++-------- 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/PHPINFO b/PHPINFO index 30f555f..6c8e3de 100644 --- a/PHPINFO +++ b/PHPINFO @@ -2,6 +2,6 @@ zstd Zstd support => enabled -Extension Version => 0.12.3 +Extension Version => 0.13.0 Interface Version => 1.5.5 APCu serializer ABI => 0 diff --git a/REFLECTION b/REFLECTION index 294e3e2..169c215 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,4 +1,4 @@ -Extension [ extension #108 zstd version 0.12.3 ] { +Extension [ extension #111 zstd version 0.13.0 ] { - Dependencies { Dependency [ apcu (Optional) ] diff --git a/php-zstd.spec b/php-zstd.spec index 4e31726..72cfe79 100644 --- a/php-zstd.spec +++ b/php-zstd.spec @@ -24,8 +24,8 @@ Summary: Zstandard extension Name: %{?scl_prefix}php-%{pecl_name} -Version: 0.12.3 -Release: 3%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Version: 0.13.0 +Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} %if %{with libzstd} License: MIT %else @@ -33,7 +33,7 @@ License: MIT License: MIT AND BSD-3-Clause %endif URL: https://pecl.php.net/package/%{pecl_name} -Source0: https://pecl.php.net/get/%{pecl_name}-%{version}%{?prever}.tgz +Source0: https://pecl.php.net/get/%{sources}.tgz BuildRequires: %{?dtsprefix}gcc BuildRequires: %{?scl_prefix}php-devel >= 7.0 @@ -154,11 +154,12 @@ install -D -m 644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name} %endif # Test & Documentation -for i in $(grep 'role="test"' package.xml | sed -e 's/^.*name="//;s/".*$//') -do [ -f %{sources}/tests/$i ] && install -Dpm 644 %{sources}/tests/$i %{buildroot}%{pecl_testdir}/%{pecl_name}/tests/$i +cd %{sources} +for i in $(grep 'role="test"' ../package.xml | sed -e 's/^.*name="//;s/".*$//') +do install -Dpm 644 $i %{buildroot}%{pecl_testdir}/%{pecl_name}/$i done -for i in $(grep 'role="doc"' package.xml | sed -e 's/^.*name="//;s/".*$//') -do install -Dpm 644 %{sources}/$i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i +for i in $(grep 'role="doc"' ../package.xml | sed -e 's/^.*name="//;s/".*$//') +do install -Dpm 644 $i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i done @@ -229,7 +230,7 @@ TEST_PHP_ARGS="-n -d extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so" \ %files devel -%doc %{sources}/tests +%doc %{pecl_testdir}/%{pecl_name} %{php_incldir}/ext/%{pecl_name} %if %{with_zts} @@ -238,6 +239,10 @@ TEST_PHP_ARGS="-n -d extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so" \ %changelog +* Wed Sep 6 2023 Remi Collet - 0.13.0-1 +- update to 0.13.0 +- fix tests installation path + * Wed Aug 30 2023 Remi Collet - 0.12.3-3 - rebuild for PHP 8.3.0RC1 -- cgit