From b4ebc2eca8fc77ec4916ae86cdc043fd6d1e05d3 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sat, 1 Mar 2014 11:13:47 +0100 Subject: php-pecl-apcu: 4.0.4 --- php-pecl-apcu.spec | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/php-pecl-apcu.spec b/php-pecl-apcu.spec index 3655f1b..fda2d4e 100644 --- a/php-pecl-apcu.spec +++ b/php-pecl-apcu.spec @@ -6,8 +6,8 @@ # # Please, preserve the changelog entries # -%{?scl: %scl_package php-pecl-apcu} -%{!?scl: %global pkg_name %{name}} +%{?scl: %scl_package php-pecl-apcu} +%{!?scl: %global pkg_name %{name}} %{!?php_inidir: %global php_inidir %{_sysconfdir}/php.d} %{!?php_incldir: %global php_incldir %{_includedir}/php} %{!?__pecl: %global __pecl %{_bindir}/pecl} @@ -17,7 +17,7 @@ Name: %{?scl_prefix}php-pecl-apcu Summary: APC User Cache -Version: 4.0.3 +Version: 4.0.4 Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz Source1: %{pecl_name}.ini @@ -66,6 +66,9 @@ Obsoletes: php54-pecl-%{pecl_name} %if "%{php_version}" > "5.5" Obsoletes: php55u-pecl-%{pecl_name} %endif +%if "%{php_version}" > "5.6" +Obsoletes: php56u-pecl-%{pecl_name} +%endif %endif %if 0%{?fedora} < 20 @@ -141,6 +144,15 @@ configuration, available on http://localhost/apcu-panel/ %setup -qc mv %{pecl_name}-%{version} NTS +cd NTS +# Sanity check, really often broken +extver=$(sed -n '/#define PHP_APCU_VERSION/{s/.* "//;s/".*$//;p}' php_apc.h) +if test "x${extver}" != "x%{version}"; then + : Error: Upstream extension version is ${extver}, expecting %{version}. + exit 1 +fi +cd .. + # Fix file roles sed -e '/LICENSE/s/role="src"/role="doc"/' \ -e '/NOTICE/s/role="src"/role="doc"/' \ @@ -289,6 +301,9 @@ fi %changelog +* Sat Mar 01 2014 Remi Collet - 4.0.4-1 +- Update to 4.0.4 (beta) + * Mon Jan 27 2014 Remi Collet - 4.0.3-1 - Update to 4.0.3 (beta) - install doc in pecl doc_dir -- cgit