From 84cae6a2720bb103f682660ed6730fb46fa5c446 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 29 Jul 2025 08:40:38 +0200 Subject: refresh configuration + pie --- apcu-5.1.19.ini | 63 ------------------------------------------------ apcu-5.1.25.ini | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ php-pecl-apcu.spec | 20 ++++++++-------- 3 files changed, 80 insertions(+), 73 deletions(-) delete mode 100644 apcu-5.1.19.ini create mode 100644 apcu-5.1.25.ini diff --git a/apcu-5.1.19.ini b/apcu-5.1.19.ini deleted file mode 100644 index dacb938..0000000 --- a/apcu-5.1.19.ini +++ /dev/null @@ -1,63 +0,0 @@ -; Enable APCu extension module -extension = apcu.so - -; This can be set to 0 to disable APCu -apc.enabled=1 - -; Setting this enables APCu for the CLI version of PHP -; (Mostly for testing and debugging). -;apc.enable_cli=0 - -; Sets the path to text files containing caches to load from disk upon -; initialization of APCu. preload_path should be a directory where each -; file follows $key.data where $key should be used as the entry name -; and the contents of the file contains serialized data to use as the value -; of the entry. -;apc.preload_path= - -; The size of each shared memory segment, with M/G suffixe -;apc.shm_size=32M - -; The number of seconds a cache entry is allowed to idle in a slot in case -; this cache entry slot is needed by another entry. -;apc.ttl=0 - -; The number of seconds that a cache entry may remain on the -; garbage-collection list. -;apc.gc_ttl=3600 - -; If you begin to get low on resources, an expunge of the cache -; is performed if it is less than half full. This is not always -; a suitable way of determining if an expunge of the cache -; should be per apc.smart allows you to set a runtime configuration -; value which is used to determine if an expunge should be run -; if (available_size < apc.smart * requested_size) -;apc.smart=0 - -; A "hint" about the number variables expected in the cache. -; Set to zero or omit if you are not sure; -;apc.entries_hint=4096 - -; The mktemp-style file_mask to pass to the mmap module -apc.mmap_file_mask=/tmp/apc.XXXXXX - -; On very busy servers whenever you start the server or -; modify files you can create a race of many processes -; all trying to cache the same data at the same time. -; By default, APCu attempts to prevent "slamming" of a key. -; A key is considered "slammed" if it was the last key set, -; and a context other than the current one set it ( ie. it -; was set by another process or thread ) -;apc.slam_defense=0 - -; Defines which serializer should be used -; Default is the standard PHP serializer. -;apc.serializer='php' - -; use the SAPI request start time for TTL -;apc.use_request_time=0 - -; Enables APCu handling of signals, such as SIGSEGV, that write core files -; when signaled. APCu will attempt to unmap the shared memory segment in -; order to exclude it from the core file -;apc.coredump_unmap=0 diff --git a/apcu-5.1.25.ini b/apcu-5.1.25.ini new file mode 100644 index 0000000..b459a91 --- /dev/null +++ b/apcu-5.1.25.ini @@ -0,0 +1,70 @@ +; Enable APCu extension module +extension = apcu.so + +; This can be set to 0 to disable APCu +apc.enabled=1 + +; Setting this enables APCu for the CLI version of PHP +; (Mostly for testing and debugging). +;apc.enable_cli=0 + +; Sets the path to text files containing caches to load from disk upon +; initialization of APCu. preload_path should be a directory where each +; file follows $key.data where $key should be used as the entry name +; and the contents of the file contains serialized data to use as the value +; of the entry. +;apc.preload_path= + +; The size of each shared memory segment, with M/G suffixe +;apc.shm_size=32M + +; The number of seconds a cache entry is allowed to idle in a slot in case +; this cache entry slot is needed by another entry. +;apc.ttl=0 + +; The number of seconds that a cache entry may remain on the +; garbage-collection list. +;apc.gc_ttl=3600 + +; If you begin to get low on resources, an expunge of the cache +; is performed if it is less than half full. This is not always +; a suitable way of determining if an expunge of the cache +; should be per apc.smart allows you to set a runtime configuration +; value which is used to determine if an expunge should be run +; if (available_size < apc.smart * requested_size) +;apc.smart=0 + +; A "hint" about the number variables expected in the cache. +; Set to zero or omit if you are not sure; +; Defaults to 512 entries per 1MB of shared memory. +;apc.entries_hint=0 + +; The mktemp-style file_mask to pass to the mmap module +apc.mmap_file_mask=/tmp/apc.XXXXXX + +; To use huge pages of a certain size for the apcu shared memory segment. +; This requires support for huge pages to be enabled in the kernel. +; Note that even if this option is not set, shared memory is still configured +; to use transparent huge pages. +;apc.mmap_hugepage_size=0 + +; On very busy servers whenever you start the server or +; modify files you can create a race of many processes +; all trying to cache the same data at the same time. +; By default, APCu attempts to prevent "slamming" of a key. +; A key is considered "slammed" if it was the last key set, +; and a context other than the current one set it ( ie. it +; was set by another process or thread ) +;apc.slam_defense=0 + +; Defines which serializer should be used +; Default is the standard PHP serializer. +;apc.serializer='php' + +; use the SAPI request start time for TTL +;apc.use_request_time=0 + +; Enables APCu handling of signals, such as SIGSEGV, that write core files +; when signaled. APCu will attempt to unmap the shared memory segment in +; order to exclude it from the core file +;apc.coredump_unmap=0 diff --git a/php-pecl-apcu.spec b/php-pecl-apcu.spec index 71f4706..52c1813 100644 --- a/php-pecl-apcu.spec +++ b/php-pecl-apcu.spec @@ -14,10 +14,8 @@ %bcond_without tests -%global gh_commit b771cd50a7fe519b6aaccbe5dc97594e68e0c88f -%global gh_short %(c=%{gh_commit}; echo ${c:0:7}) -%global gh_owner krakjoe -%global gh_project apcu +%global pie_vend apcu +%global pie_proj apcu %global pecl_name apcu %global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} %global ini_name 40-%{pecl_name}.ini @@ -31,7 +29,7 @@ License: PHP-3.01 URL: https://pecl.php.net/package/APCu 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 +Source1: %{pecl_name}-5.1.25.ini Source2: %{pecl_name}-panel.conf Source3: %{pecl_name}.conf.php @@ -43,11 +41,13 @@ BuildRequires: %{?scl_prefix}php-pear Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} Requires: %{?scl_prefix}php(api) = %{php_core_api} -Obsoletes: %{?scl_prefix}php-apcu < 4.0.0-1 -Provides: %{?scl_prefix}php-apcu = %{version} -Provides: %{?scl_prefix}php-apcu%{?_isa} = %{version} -Provides: %{?scl_prefix}php-pecl(apcu) = %{version} -Provides: %{?scl_prefix}php-pecl(apcu)%{?_isa} = %{version} +Obsoletes: %{?scl_prefix}php-apcu < 4.0.0-1 +Provides: %{?scl_prefix}php-apcu = %{version} +Provides: %{?scl_prefix}php-apcu%{?_isa} = %{version} +Provides: %{?scl_prefix}php-pecl(apcu) = %{version} +Provides: %{?scl_prefix}php-pecl(apcu)%{?_isa} = %{version} +Provides: %{?scl_prefix}php-pie(%{pie_vend}/%{pie_proj}) = %{version} +Provides: %{?scl_prefix}php-%{pie_vend}-%{pie_proj} = %{version} %description -- cgit