Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
php5
:
EL5
:
5.3.29
:
extensions
>
php-pecl-memcached
> php-pecl-memcached.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File php-pecl-memcached.spec of Package php-pecl-memcached
%global php_zendabiver %((echo 0; php -i 2>/dev/null | sed -n 's/^PHP Extension => //p') | tail -1) %global php_extdir %(php-config --extension-dir 2>/dev/null || echo %{_libdir}/php4) %global pecl_name memcached Summary: Extension to work with the Memcached caching daemon Name: php-pecl-memcached Version: 1.0.0 Release: 11 License: PHP Group: Development/Languages URL: http://pecl.php.net/package/%{pecl_name} Source: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: php-devel, php-pear BuildRequires: libmemcached-devel, zlib-devel # This is EPEL-5 specific Requires: php-zend-abi = %{php_zendabiver} Provides: php-pecl(%{pecl_name}) = %{version}-%{release} %description This extension uses libmemcached library to provide API for communicating with memcached servers. memcached is a high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load. It also provides a session handler (memcached). %prep %setup -c -q cd %{pecl_name}-%{version} %build cd %{pecl_name}-%{version} phpize %configure %{__make} %{?_smp_mflags} %install cd %{pecl_name}-%{version} %{__rm} -rf %{buildroot} %{__make} install INSTALL_ROOT=%{buildroot} # Drop in the bit of configuration %{__mkdir_p} %{buildroot}%{_sysconfdir}/php.d %{__cat} > %{buildroot}%{_sysconfdir}/php.d/%{pecl_name}.ini << 'EOF' ; Enable %{pecl_name} extension module extension=%{pecl_name}.so ; ----- Options to use the memcached session handler ; Use memcache as a session handler ;session.save_handler=memcached ; Defines a comma separated list of server urls to use for session storage ;session.save_path="localhost:11211" EOF # Install XML package description %{__mkdir_p} %{buildroot}%{pecl_xmldir} %{__install} -m 644 ../package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml %clean %{__rm} -rf %{buildroot} %files %defattr(-, root, root, -) %doc %{pecl_name}-%{version}/{CREDITS,LICENSE,EXPERIMENTAL,README.markdown,ChangeLog} %config(noreplace) %{_sysconfdir}/php.d/%{pecl_name}.ini %{php_extdir}/%{pecl_name}.so %{pecl_xmldir}/%{name}.xml %changelog * Sat Jan 29 2011 Remi Collet <fedora@famillecollet.com> - 1.0.0-1 - EL-5 build, fix BR for php abi * Sun Jul 12 2009 Remi Collet <fedora@famillecollet.com> - 1.0.0-1 - Update to 1.0.0 (First stable release) * Sat Jun 27 2009 Remi Collet <fedora@famillecollet.com> - 0.2.0-1 - Update to 0.2.0 + Patch for HAVE_JSON constant * Sun Apr 29 2009 Remi Collet <fedora@famillecollet.com> - 0.1.5-1 - Initial RPM