Update to 5.1.5 (php 7, stable)

This commit is contained in:
Remi Collet 2016-06-27 16:39:15 +02:00
parent 5f9b29a31a
commit a0bfa84b87
4 changed files with 25 additions and 47 deletions

1
.gitignore vendored
View File

@ -9,3 +9,4 @@ clog
/apcu-4.0.8.tgz /apcu-4.0.8.tgz
/apcu-4.0.10.tgz /apcu-4.0.10.tgz
/apcu-4.0.11.tgz /apcu-4.0.11.tgz
/apcu-5.1.5.tgz

View File

@ -61,12 +61,3 @@ apc.mmap_file_mask=/tmp/apc.XXXXXX
; when signaled. APCu will attempt to unmap the shared memory segment in ; when signaled. APCu will attempt to unmap the shared memory segment in
; order to exclude it from the core file ; order to exclude it from the core file
;apc.coredump_unmap=0 ;apc.coredump_unmap=0
; RFC1867 File Upload Progress hook handler
;apc.rfc1867=0
;apc.rfc1867_prefix =upload_
;apc.rfc1867_name=APC_UPLOAD_PROGRESS
;apc.rfc1867_freq=0
;apc.rfc1867_ttl=3600

View File

@ -12,7 +12,7 @@
Name: php-pecl-apcu Name: php-pecl-apcu
Summary: APC User Cache Summary: APC User Cache
Version: 4.0.11 Version: 5.1.5
Release: 1%{?dist} Release: 1%{?dist}
Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz
Source1: %{pecl_name}.ini Source1: %{pecl_name}.ini
@ -23,7 +23,7 @@ License: PHP
Group: Development/Languages Group: Development/Languages
URL: http://pecl.php.net/package/APCu URL: http://pecl.php.net/package/APCu
BuildRequires: php-devel BuildRequires: php-devel > 7
BuildRequires: php-pear BuildRequires: php-pear
BuildRequires: pcre-devel BuildRequires: pcre-devel
@ -35,35 +35,15 @@ Provides: php-apcu = %{version}
Provides: php-apcu%{?_isa} = %{version} Provides: php-apcu%{?_isa} = %{version}
Provides: php-pecl(apcu) = %{version} Provides: php-pecl(apcu) = %{version}
Provides: php-pecl(apcu)%{?_isa} = %{version} Provides: php-pecl(apcu)%{?_isa} = %{version}
Obsoletes: php-pecl-apc < 4
# Same provides than APC, this is a drop in replacement
Provides: php-apc = %{version}
Provides: php-apc%{?_isa} = %{version}
Provides: php-pecl-apc = %{version}
Provides: php-pecl-apc%{?_isa} = %{version}
Provides: php-pecl(APC) = %{version}
Provides: php-pecl(APC)%{?_isa} = %{version}
%description %description
APCu is userland caching: APC stripped of opcode caching in preparation APCu is userland caching: APC stripped of opcode caching.
for the deployment of Zend OPcache as the primary solution to opcode
caching in future versions of PHP.
APCu has a revised and simplified codebase, by the time the PECL release APCu only supports userland caching of variables.
is available, every part of APCu being used will have received review and
where necessary or appropriate, changes.
Simplifying and documenting the API of APCu completely removes the barrier The %{?sub_prefix}php-pecl-apcu-bc package provides a drop
to maintenance and development of APCu in the future, and additionally allows in replacement for APC.
us to make optimizations not possible previously because of APC's inherent
complexity.
APCu only supports userland caching (and dumping) of variables, providing an
upgrade path for the future. When O+ takes over, many will be tempted to use
3rd party solutions to userland caching, possibly even distributed solutions;
this would be a grave error. The tried and tested APC codebase provides far
superior support for local storage of PHP variables.
%package devel %package devel
@ -124,13 +104,17 @@ sed -e s:apc.conf.php:%{_sysconfdir}/apcu-panel/conf.php:g \
%build %build
cd NTS cd NTS
%{_bindir}/phpize %{_bindir}/phpize
%configure --with-php-config=%{_bindir}/php-config %configure \
--enable-apcu \
--with-php-config=%{_bindir}/php-config
make %{?_smp_mflags} make %{?_smp_mflags}
%if %{with_zts} %if %{with_zts}
cd ../ZTS cd ../ZTS
%{_bindir}/zts-phpize %{_bindir}/zts-phpize
%configure --with-php-config=%{_bindir}/zts-php-config %configure \
--enable-apcu \
--with-php-config=%{_bindir}/zts-php-config
make %{?_smp_mflags} make %{?_smp_mflags}
%endif %endif
@ -172,27 +156,26 @@ done
%check %check
cd NTS cd NTS
%{_bindir}/php -n \
# Check than both extensions are reported (BC mode) -d extension=%{buildroot}%{php_extdir}/%{pecl_name}.so \
%{_bindir}/php -n -d extension_dir=modules -d extension=apcu.so -m | grep 'apcu' -m | grep 'apcu'
%{_bindir}/php -n -d extension_dir=modules -d extension=apcu.so -m | grep 'apc$'
# Upstream test suite for NTS extension # Upstream test suite for NTS extension
TEST_PHP_EXECUTABLE=%{_bindir}/php \ TEST_PHP_EXECUTABLE=%{_bindir}/php \
TEST_PHP_ARGS="-n -d extension_dir=$PWD/modules -d extension=%{pecl_name}.so" \ TEST_PHP_ARGS="-n -d extension=%{buildroot}%{php_extdir}/%{pecl_name}.so" \
NO_INTERACTION=1 \ NO_INTERACTION=1 \
REPORT_EXIT_STATUS=1 \ REPORT_EXIT_STATUS=1 \
%{_bindir}/php -n run-tests.php %{_bindir}/php -n run-tests.php
%if %{with_zts} %if %{with_zts}
cd ../ZTS cd ../ZTS
%{__ztsphp} -n \
%{__ztsphp} -n -d extension_dir=modules -d extension=apcu.so -m | grep 'apcu' -d extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so \
%{__ztsphp} -n -d extension_dir=modules -d extension=apcu.so -m | grep 'apc$' -m | grep 'apcu'
# Upstream test suite for ZTS extension # Upstream test suite for ZTS extension
TEST_PHP_EXECUTABLE=%{__ztsphp} \ TEST_PHP_EXECUTABLE=%{__ztsphp} \
TEST_PHP_ARGS="-n -d extension_dir=$PWD/modules -d extension=%{pecl_name}.so" \ TEST_PHP_ARGS="-n -d extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so" \
NO_INTERACTION=1 \ NO_INTERACTION=1 \
REPORT_EXIT_STATUS=1 \ REPORT_EXIT_STATUS=1 \
%{__ztsphp} -n run-tests.php %{__ztsphp} -n run-tests.php
@ -231,6 +214,9 @@ REPORT_EXIT_STATUS=1 \
%changelog %changelog
* Mon Jun 27 2016 Remi Collet <remi@fedoraproject.org> - 5.1.5-1
- Update to 5.1.5 (php 7, stable)
* Wed Apr 20 2016 Remi Collet <remi@fedoraproject.org> - 4.0.11-1 * Wed Apr 20 2016 Remi Collet <remi@fedoraproject.org> - 4.0.11-1
- Update to 4.0.11 (stable) - Update to 4.0.11 (stable)
- fix license usage and spec cleanup - fix license usage and spec cleanup

View File

@ -1 +1 @@
13c0c0dd676e5a7905d54fa985d0ee62 apcu-4.0.11.tgz fcb4a8214419121bfae1b1288fe6697f apcu-5.1.5.tgz