summaryrefslogtreecommitdiffstats
path: root/php-pecl-apcu.spec
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2013-04-30 10:27:27 +0200
committerRemi Collet <fedora@famillecollet.com>2013-04-30 10:27:27 +0200
commit57d87af1956ba3bca1ec571f09ace6bacbb6f088 (patch)
tree35de9b366019dfdd39777e123b3c5d338058fe19 /php-pecl-apcu.spec
parent76682c27b5c0f6b1b8e256e704aae2d15138823e (diff)
php-pecl-apcu 4.0.1
Diffstat (limited to 'php-pecl-apcu.spec')
-rw-r--r--php-pecl-apcu.spec24
1 files changed, 18 insertions, 6 deletions
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 <remi@fedoraproject.org> - 4.0.1-1
+- Update to 4.0.1
+- add missing scriptlet
+- fix Conflicts
+
* Thu Apr 25 2013 Remi Collet <remi@fedoraproject.org> - 4.0.0-2
- fix segfault when used from command line