summaryrefslogtreecommitdiffstats
path: root/php-pecl-apcu.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2025-07-29 08:02:48 +0200
committerRemi Collet <remi@php.net>2025-07-29 08:02:48 +0200
commit888060962047c0c6fa20bdfaf1fc849c1b32c985 (patch)
treea907631252a2bbd37aec2aee35c3effd4074961d /php-pecl-apcu.spec
parentfd59a55925f3e3ad0edba4766cb84f8488fb1515 (diff)
update to 5.1.25
Diffstat (limited to 'php-pecl-apcu.spec')
-rw-r--r--php-pecl-apcu.spec35
1 files changed, 19 insertions, 16 deletions
diff --git a/php-pecl-apcu.spec b/php-pecl-apcu.spec
index 0d4dc89..71f4706 100644
--- a/php-pecl-apcu.spec
+++ b/php-pecl-apcu.spec
@@ -3,16 +3,13 @@
#
# Fedora spec file for php-pecl-apcu
#
-# Copyright (c) 2013-2024 Remi Collet
-# License: CC-BY-SA-4.0
-# http://creativecommons.org/licenses/by-sa/4.0/
+# SPDX-FileCopyrightText: Copyright 2013-2025 Remi Collet
+# SPDX-License-Identifier: CECILL-2.1
+# http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
#
# Please, preserve the changelog entries
#
-# we don't want -z defs linker flag
-%undefine _strict_symbol_defs_build
-
%{?scl:%scl_package php-pecl-apcu}
%bcond_without tests
@@ -29,10 +26,10 @@
Name: %{?scl_prefix}php-pecl-apcu
Summary: APC User Cache
-Version: 5.1.24
+Version: 5.1.25
License: PHP-3.01
URL: https://pecl.php.net/package/APCu
-Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
Source0: https://pecl.php.net/get/%{pecl_name}-%{version}.tgz
Source1: %{pecl_name}-5.1.19.ini
Source2: %{pecl_name}-panel.conf
@@ -188,6 +185,13 @@ done
%check
cd %{sources}
+# see https://github.com/krakjoe/apcu/pull/579
+sed -e 's/%s/%A/' -i tests/apc_entry_003.phpt
+
+%if 0%{?rhel} == 8
+# Erratic results
+rm tests/apc_mmap_hugepage_002.phpt
+%endif
%{_bindir}/php -n \
-d extension=%{buildroot}%{php_extdir}/%{pecl_name}.so \
@@ -205,14 +209,6 @@ REPORT_EXIT_STATUS=1 \
%{__ztsphp} -n \
-d extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so \
-m | grep '^apcu$'
-
-%if %{with tests}
-# Upstream test suite for ZTS extension
-TEST_PHP_EXECUTABLE=%{__ztsphp} \
-TEST_PHP_ARGS="-n -d extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so" \
-REPORT_EXIT_STATUS=1 \
-%{__ztsphp} -n run-tests.php -q --show-diff
-%endif
%endif
@@ -250,6 +246,13 @@ REPORT_EXIT_STATUS=1 \
%changelog
+* Tue Jul 29 2025 Remi Collet <remi@remirepo.net> - 5.1.25-1
+- update to 5.1.25
+
+* Fri Jul 4 2025 Remi Collet <remi@remirepo.net> - 5.1.24-3
+- re-license spec file to CECILL-2.1
+- ignore 1 test failing with PHP 8.5
+
* Tue Sep 24 2024 Remi Collet <remi@remirepo.net> - 5.1.24-2
- rebuild for 8.4.0RC1