summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--php-pecl-memcached.spec8
1 files changed, 6 insertions, 2 deletions
diff --git a/php-pecl-memcached.spec b/php-pecl-memcached.spec
index 4d2e4c2..9455e10 100644
--- a/php-pecl-memcached.spec
+++ b/php-pecl-memcached.spec
@@ -1,11 +1,12 @@
%{!?__pecl: %{expand: %%global __pecl %{_bindir}/pecl}}
%global pecl_name memcached
+%global libmemcached_build_version %(pkg-config --silence-errors --modversion libmemcached 2>/dev/null || echo 65536)
Summary: Extension to work with the Memcached caching daemon
Name: php-pecl-memcached
Version: 2.1.0
-Release: 5%{?dist}
+Release: 6%{?dist}
# memcached is PHP, FastLZ is MIT
License: PHP and MIT
Group: Development/Languages
@@ -31,7 +32,7 @@ BuildRequires: cyrus-sasl-devel
Requires(post): %{__pecl}
Requires(postun): %{__pecl}
-Requires: php-common%{?_isa} >= 5.2.10
+Requires: libmemcached%{?_isa} >= %{libmemcached_build_version}
Requires: php-pecl-igbinary%{?_isa}
Requires: php(zend-abi) = %{php_zend_api}
Requires: php(api) = %{php_core_api}
@@ -181,6 +182,9 @@ ln -s %{php_ztsextdir}/igbinary.so modules/
%changelog
+* Mon Nov 19 2012 Remi Collet <remi@fedoraproject.org> - 2.1.0-6
+- requires libmemcached >= build version
+
* Sat Nov 17 2012 Remi Collet <remi@fedoraproject.org> - 2.1.0-5
- rebuild for libmemcached 1.0.14 (with SASL)
- switch to upstream patch