From 3ebaaff0c1287aa89a5c82fa571bd27f0a7013f0 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 30 Apr 2013 13:26:14 +0200 Subject: php-pecl-apcu: missing requires --- php-pecl-apcu-dev.spec | 7 +++++++ php-pecl-apcu.spec | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/php-pecl-apcu-dev.spec b/php-pecl-apcu-dev.spec index f1aaadf..c9e35c3 100644 --- a/php-pecl-apcu-dev.spec +++ b/php-pecl-apcu-dev.spec @@ -1,3 +1,5 @@ +%{!?__pecl: %{expand: %%global __pecl %{_bindir}/pecl}} + %global pecl_name apcu Name: php-pecl-apcu @@ -17,6 +19,11 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: php-devel BuildRequires: php-pear +Requires(post): %{__pecl} +Requires(postun): %{__pecl} +Requires: php(zend-abi) = %{php_zend_api} +Requires: php(api) = %{php_core_api} + Obsoletes: php-apcu < 4.0.0-1 Provides: php-apcu = %{version} Provides: php-apcu%{?_isa} = %{version} diff --git a/php-pecl-apcu.spec b/php-pecl-apcu.spec index 0ce4db4..f3b8b69 100644 --- a/php-pecl-apcu.spec +++ b/php-pecl-apcu.spec @@ -1,5 +1,6 @@ %{!?php_inidir: %{expand: %%global php_inidir %{_sysconfdir}/php.d}} %{!?php_incldir: %{expand: %%global php_incldir %{_includedir}/php}} +%{!?__pecl: %{expand: %%global __pecl %{_bindir}/pecl}} %global pecl_name apcu %global with_zts 0%{?__ztsphp:1} @@ -19,6 +20,11 @@ URL: http://pecl.php.net/package/APCu BuildRequires: php-devel BuildRequires: php-pear +Requires(post): %{__pecl} +Requires(postun): %{__pecl} +Requires: php(zend-abi) = %{php_zend_api} +Requires: php(api) = %{php_core_api} + Obsoletes: php-apcu < 4.0.0-1 Provides: php-apcu = %{version} Provides: php-apcu%{?_isa} = %{version} -- cgit