diff options
-rw-r--r-- | apcu-5.0.0.ini | 66 | ||||
-rw-r--r-- | php-pecl-apcu-dev.spec | 38 |
2 files changed, 93 insertions, 11 deletions
diff --git a/apcu-5.0.0.ini b/apcu-5.0.0.ini new file mode 100644 index 0000000..757eff2 --- /dev/null +++ b/apcu-5.0.0.ini @@ -0,0 +1,66 @@ +; Enable APCu extension module +extension = apcu.so + +; Enable APC compatibility extension module +extension = apc.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=1 + +; Defines which serializer should be used +; Default is the standard PHP serializer. +;apc.serializer='default' + +; use the SAPI request start time for TTL +;apc.use_request_time=1 + +; 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-dev.spec b/php-pecl-apcu-dev.spec index 711bb2e..716cc62 100644 --- a/php-pecl-apcu-dev.spec +++ b/php-pecl-apcu-dev.spec @@ -24,11 +24,11 @@ %{!?__pecl: %global __pecl %{_bindir}/pecl} %{!?__php: %global __php %{_bindir}/php} -%global gh_commit ea1022644d867d74a6b0d435bf4a61f42ed2d82f +%global gh_commit 9c361d2627676c910ec0c1a5d13c9031f3143bf9 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner krakjoe %global gh_project apcu -%global gh_date 20150921 +%global gh_date 20151014 %global pecl_name apcu %global with_zts 0%{?__ztsphp:1} %if "%{php_version}" < "5.6" @@ -41,12 +41,12 @@ Name: %{?sub_prefix}php-pecl-apcu Summary: APC User Cache Version: 5.0.0 %if 0%{?gh_date:1} -Release: 0.3.%{gh_date}git%{gh_short}%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Release: 0.4.%{gh_date}git%{gh_short}%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} %else Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} %endif Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{pecl_name}-%{version}-%{gh_short}.tar.gz -Source1: %{pecl_name}.ini +Source1: %{pecl_name}-5.0.0.ini Source2: %{pecl_name}-panel.conf Source3: %{pecl_name}.conf.php @@ -200,6 +200,7 @@ sed -e s:apc.conf.php:%{_sysconfdir}/apcu-panel/conf.php:g \ cd NTS %{_bindir}/phpize %configure \ + --enable-apcu-bc \ --with-php-config=%{_bindir}/php-config make %{?_smp_mflags} @@ -207,6 +208,7 @@ make %{?_smp_mflags} cd ../ZTS %{_bindir}/zts-phpize %configure \ + --enable-apcu-bc \ --with-php-config=%{_bindir}/zts-php-config make %{?_smp_mflags} %endif @@ -255,8 +257,13 @@ done %check cd NTS # Check than both extensions are reported (BC mode) -%{_bindir}/php -n -d extension_dir=modules -d extension=apcu.so -m | grep 'apcu' -%{_bindir}/php -n -d extension_dir=modules -d extension=apcu.so -m | grep 'apc$' +%{_bindir}/php -n \ + -d extension=%{buildroot}%{php_extdir}/apcu.so \ + -m | grep 'apcu' +%{_bindir}/php -n \ + -d extension=%{buildroot}%{php_extdir}/apcu.so \ + -d extension=%{buildroot}%{php_extdir}/apc.so \ + -m | grep 'apc$' # Upstream test suite for NTS extension TEST_PHP_EXECUTABLE=%{_bindir}/php \ @@ -267,9 +274,13 @@ REPORT_EXIT_STATUS=1 \ %if %{with_zts} cd ../ZTS - -%{__ztsphp} -n -d extension_dir=modules -d extension=apcu.so -m | grep 'apcu' -%{__ztsphp} -n -d extension_dir=modules -d extension=apcu.so -m | grep 'apc$' +%{__ztsphp} -n \ + -d extension=%{buildroot}%{php_ztsextdir}/apcu.so \ + -m | grep 'apcu' +%{__ztsphp} -n \ + -d extension=%{buildroot}%{php_ztsextdir}/apcu.so \ + -d extension=%{buildroot}%{php_ztsextdir}/apc.so \ + -m | grep 'apc$' # Upstream test suite for ZTS extension TEST_PHP_EXECUTABLE=%{__ztsphp} \ @@ -309,11 +320,13 @@ fi %{pecl_xmldir}/%{name}.xml %config(noreplace) %{php_inidir}/%{ini_name} -%{php_extdir}/%{pecl_name}.so +%{php_extdir}/apc.so +%{php_extdir}/apcu.so %if %{with_zts} -%{php_ztsextdir}/%{pecl_name}.so %config(noreplace) %{php_ztsinidir}/%{ini_name} +%{php_ztsextdir}/apc.so +%{php_ztsextdir}/apcu.so %endif @@ -339,6 +352,9 @@ fi %changelog +* Wed Oct 14 2015 Remi Collet <remi@fedoraproject.org> - 5.0.0-0.4.20151014git9c361d2 +- new snapshot (with apcu and apc extensions) + * Tue Oct 13 2015 Remi Collet <remi@fedoraproject.org> - 5.0.0-0.3.20150921gitea10226 - rebuild for PHP 7.0.0RC5 new API version - new snapshot |