Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37739528
en ru br
ALT Linux repos
5.0: 2.2.4-alt1
4.1: 2.2.3-alt1
4.0: 2.1.2-alt1.1

Group :: System/Servers
RPM: php5-memcache

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

# Package name without php prefix
%define php5_extension memcache
###############################################################
Name: php5-%php5_extension
Version: 2.2.3
Release: alt1
Group: System/Servers
License: PHP Licence

URL: http://pecl.php.net/package/memcache

BuildRequires(pre): rpm-build-php5
BuildRequires: php5-devel = %php5_version-%php5_release

Summary: memcached extension for PHP5

Source0: php5-%php5_extension-%version.tar
Source1: php5-%php5_extension.ini
Source2: php5-%php5_extension-params.sh
Patch: php5-memcache-alt-inc.patch

%description
The php5-%php5_extension package contains a dynamic shared object (DSO) for PHP5. The
php-%php5_extension module allows you to work with memcached through handy OO
and procedural interfaces. If you need memcached(1) support for PHP5
applications, you will need to install this package and PHP5.

%prep
%setup -q -n php5-%php5_extension-%version
%patch -p2

%build
export CFLAGS="%optflags"

phpize
%configure --enable-memcache --with-zlib-dir=/usr
%php5_make

%install
%php5_make_install
%__install -D -m 644 %SOURCE1 %buildroot/%php5_extconf/%php5_extension/config
%__install -D -m 644 %SOURCE2 %buildroot/%php5_extconf/%php5_extension/params

%files
%php5_extconf/%php5_extension
%php5_extdir/*
%doc CREDITS README

%post
%php5_extension_postin

%preun
%php5_extension_preun

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin