Группа :: Система/Серверы
Пакет: php5-memcache
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
# Package name without php prefix
%define php5_extension memcache
###############################################################
Name: php5-%php5_extension
Version: 2.1.2
Release: alt1.1
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
…
Полный changelog можно просмотреть здесь
%define php5_extension memcache
###############################################################
Name: php5-%php5_extension
Version: 2.1.2
Release: alt1.1
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
…
Полный changelog можно просмотреть здесь