From 57d87af1956ba3bca1ec571f09ace6bacbb6f088 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 30 Apr 2013 10:27:27 +0200 Subject: php-pecl-apcu 4.0.1 --- php-pecl-apcu.spec | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) (limited to 'php-pecl-apcu.spec') diff --git a/php-pecl-apcu.spec b/php-pecl-apcu.spec index bc39141..0ce4db4 100644 --- a/php-pecl-apcu.spec +++ b/php-pecl-apcu.spec @@ -5,15 +5,13 @@ Name: php-pecl-apcu Summary: APC User Cache -Version: 4.0.0 -Release: 2%{?dist} +Version: 4.0.1 +Release: 1%{?dist} Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz Source1: %{pecl_name}.ini Source2: %{pecl_name}-panel.conf Source3: %{pecl_name}.conf.php -Patch0: %{pecl_name}-git.patch - License: PHP Group: Development/Languages URL: http://pecl.php.net/package/APCu @@ -27,7 +25,7 @@ Provides: php-apcu%{?_isa} = %{version} Provides: php-pecl(apcu) = %{version} Provides: php-pecl(apcu)%{?_isa} = %{version} # Same provides than APC, this is a drop in replacement -Conflicts: php-pecl-apc +Conflicts: php-pecl-apc < 4 Provides: php-apc = %{version} Provides: php-apc%{?_isa} = %{version} Provides: php-pecl-apc = %{version} @@ -90,7 +88,6 @@ configuration, available on http://localhost/apcu-panel/ mv %{pecl_name}-%{version} NTS cd NTS -%patch0 -p1 -b .fromgit # Sanity check, really often broken extver=$(sed -n '/#define PHP_APC_VERSION/{s/.* "//;s/".*$//;p}' php_apc.h) @@ -175,6 +172,16 @@ REPORT_EXIT_STATUS=1 \ %endif +%post +%{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || : + + +%postun +if [ $1 -eq 0 ] ; then + %{pecl_uninstall} %{pecl_name} >/dev/null || : +fi + + %files %doc NTS/{NOTICE,LICENSE,README.md} %{pecl_xmldir}/%{name}.xml @@ -203,6 +210,11 @@ REPORT_EXIT_STATUS=1 \ %changelog +* Tue Apr 30 2013 Remi Collet - 4.0.1-1 +- Update to 4.0.1 +- add missing scriptlet +- fix Conflicts + * Thu Apr 25 2013 Remi Collet - 4.0.0-2 - fix segfault when used from command line -- cgit