From ea326773106c79cfa9a933903b55a4e4290b4d0c Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 9 Feb 2015 13:59:58 +0100 Subject: php-pecl-couchbase2: 2.0.4, drop runtime dep on pear --- REFLECTION | 2 +- php-pecl-couchbase2.spec | 25 +++++++++++++++++-------- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/REFLECTION b/REFLECTION index 0e78200..932b512 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,4 +1,4 @@ -Extension [ extension #167 couchbase version 2.0.3 ] { +Extension [ extension #167 couchbase version 2.0.4 ] { - Constants [57] { Constant [ integer COUCHBASE_PERSISTTO_MASTER ] { 1 } diff --git a/php-pecl-couchbase2.spec b/php-pecl-couchbase2.spec index 76e17f6..0675485 100644 --- a/php-pecl-couchbase2.spec +++ b/php-pecl-couchbase2.spec @@ -2,7 +2,7 @@ # # Copyright (c) 2013-2015 Remi Collet # License: CC-BY-SA -# http://creativecommons.org/licenses/by-sa/3.0/ +# http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries # @@ -25,7 +25,7 @@ Summary: Couchbase Server PHP extension Name: %{?scl_prefix}php-pecl-couchbase2 -Version: 2.0.3 +Version: 2.0.4 Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} License: PHP Group: Development/Languages @@ -38,8 +38,6 @@ BuildRequires: libcouchbase-devel # to ensure compatibility with XDebug BuildRequires: %{?scl_prefix}php-pecl-xdebug -Requires(post): %{__pecl} -Requires(postun): %{__pecl} Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} Requires: %{?scl_prefix}php(api) = %{php_core_api} # used in embded php code @@ -172,12 +170,19 @@ done %endif -%post -%{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || : +%triggerin -- %{?scl_prefix}php-pear +if [ -x %{__pecl} ] ; then + %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || : +fi +# posttrans as pear can be installed after us +%posttrans +if [ -x %{__pecl} ] ; then + %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || : +fi %postun -if [ $1 -eq 0 ] ; then +if [ $1 -eq 0 -a -x %{__pecl} ] ; then %{pecl_uninstall} %{pecl_name} >/dev/null || : fi @@ -199,6 +204,10 @@ fi %changelog +* Mon Feb 09 2015 Remi Collet - 2.0.4-1 +- Update to 2.0.4 (stable) +- drop runtime dependency on pear, new scriptlet + * Wed Jan 07 2015 Remi Collet - 2.0.3-1 - Update to 2.0.3 @@ -245,4 +254,4 @@ fi - update to 1.1.15 (no change) * Fri Mar 22 2013 Remi Collet - 1.1.14-1 -- initial package \ No newline at end of file +- initial package -- cgit