# Conditional build:
%bcond_without igbinary # memcached igbinary serializer support
%bcond_without json # memcached json serializer support
# Conditional build:
%bcond_without igbinary # memcached igbinary serializer support
%bcond_without json # memcached json serializer support
%bcond_without sasl # memcached sasl support
%bcond_without session # memcached session handler support
%bcond_without tests # build without tests
%bcond_without sasl # memcached sasl support
%bcond_without session # memcached session handler support
%bcond_without tests # build without tests
Summary: Interface to memcached via libmemcached library
Summary(pl.UTF-8): Interfejs do memcached z użyciem biblioteki libmemcached
Name: %{php_name}-pecl-%{modname}
Summary: Interface to memcached via libmemcached library
Summary(pl.UTF-8): Interfejs do memcached z użyciem biblioteki libmemcached
Name: %{php_name}-pecl-%{modname}
License: PHP 3.01
Group: Development/Languages/PHP
Source0: https://github.com/php-memcached-dev/php-memcached/archive/php7/%{modname}-%{version}.tar.gz
License: PHP 3.01
Group: Development/Languages/PHP
Source0: https://github.com/php-memcached-dev/php-memcached/archive/php7/%{modname}-%{version}.tar.gz
URL: http://pecl.php.net/package/memcached/
BuildRequires: %{php_name}-devel >= 4:7.0.0
%{?with_igbinary:BuildRequires: %{php_name}-pecl-igbinary-devel}
URL: http://pecl.php.net/package/memcached/
BuildRequires: %{php_name}-devel >= 4:7.0.0
%{?with_igbinary:BuildRequires: %{php_name}-pecl-igbinary-devel}
%{?with_sasl:BuildRequires: cyrus-sasl-devel}
BuildRequires: fastlz-devel
BuildRequires: libmemcached-devel >= 1.0.18
%{?with_sasl:BuildRequires: cyrus-sasl-devel}
BuildRequires: fastlz-devel
BuildRequires: libmemcached-devel >= 1.0.18
%{?with_session:BuildRequires: %{php_name}-session}
BuildRequires: %{php_name}-spl
%endif
%{?requires_php_extension}
Suggests: %{php_name}-pecl-igbinary
%{?with_session:BuildRequires: %{php_name}-session}
BuildRequires: %{php_name}-spl
%endif
%{?requires_php_extension}
Suggests: %{php_name}-pecl-igbinary
Suggests: %{php_name}-session
Provides: php(%{modname}) = %{version}
Obsoletes: php-pecl-memcached < 2.2.0-1
Suggests: %{php_name}-session
Provides: php(%{modname}) = %{version}
Obsoletes: php-pecl-memcached < 2.2.0-1