File php5-pecl-memcache.spec of Package php5-pecl-memcache

# norootforbuild
#

Name: php5-pecl-memcache
Version: 3.0.8
Release: 1.1
Group: Productivity/Networking/Web/Servers
License: PHP
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: php5-devel = 5.2.14
BuildRequires: zlib-devel
URL: http://pecl.php.net/package/memcache
Source: http://pecl.php.net/get/memcache-%{version}.tgz
Source1: memcache.ini
Summary: PHP Memcache client Extension
%if %{?php_zend_api}0
Requires:     php(zend-abi) = %{php_zend_api}
Requires:     php(api) = %{php_core_api}
%else
%requires_eq php5
%endif


%description

Memcached is a caching daemon designed especially for dynamic web applications
to decrease database load by storing objects in memory.  This extension allows
you to work with memcached through handy OO and procedural interfaces.

Author:
-------
    Antony Dovgal

%prep

%setup -q -n memcache-%{version}


%build

/usr/bin/phpize

CFLAGS="%{optflags} -fno-strict-aliasing"
CXXFLAGS="%{optflags} -fno-strict-aliasing"
%if 0%{?suse_version} > 1000
CFLAGS="$CFLAGS -fstack-protector"
CXXFLAGS="$CXXFLAGS -fstack-protector"
%endif

export CFLAGS
export CXXFLAGS

%configure --with-libdir=%{_lib}

%{__make}

%install

%makeinstall INSTALL_ROOT="%{buildroot}"

%{__mkdir_p} %{buildroot}%{_sysconfdir}/php5/conf.d
%{__install} -m 644 %{S:1} %{buildroot}%{_sysconfdir}/php5/conf.d/memcache.ini

%clean

%{__rm} -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc README CREDITS example.php
%config(noreplace) %{_sysconfdir}/php5/conf.d/memcache.ini
%{_libdir}/php5/extensions/memcache.so

%changelog
* Fri Nov 12 2010 graham@andtech.eu
- Update to 3.0.5
- Fixed PECL bug #16059 (Build error: 'MSG_NOSIGNAL' undeclared)
- Added method MemcachePool::findServer(key) which returns the server a key hashes to
- Changed MemcachePool::findServer() to return only "hostname:port" since tcp port is significant
- Fixed PECL bug #16536 (Weight of 0 causes SegFault on memcache_add_server)
- Fixed PECL bug #17566 (3.0.4 cache delete bug)
- Fixed PECL Bug #16442 (memcache_set fail with integer value)
  3.0.4
  - ----
- Improved performance of consistent hash strategy
- Accept timeout parameter as float to enable microsecond timeouts, param is still
  given in seconds but with a microsecond fraction.
- Added session locking to avoid concurrency problems with AJAX apps
- Fixed PECL bug #14642 (3.0.x breaks BC with 2.2.x)
- Fixed PECL request #13758 (Failed to extract 'connection' variable from object)
- Fixed PECL request #14658 (Allow connection timeouts in ms, not seconds)
- New INI directive
- memcache.lock_timeout = 15
* Sun Aug 16 2009 crrodriguez@suse.de
- use new versioning macros
* Wed Jan 14 2009 crrodriguez@suse.de
- update to version 3.0.3
- Enabled compression by default for values larger than 20kb
- Scalar data types (int, bool, double) are preserved by get/set
- Reserved the lowest 2 bytes of the flags for internal use
- Fixed PECL bug #14157 (Segmentation fault with errorcallback handler)
- Fixed PECL bug #15342 (memcache keys whitespaces replace issue)
- Fixed PECL bug #15447 (Persistent Connections Cause Segfaults if One Server Drops)
- Fixed PECL bug #15529 (memcache object loses port information)
- Fixed PECL bug #14730 (Types lost during get/set)
- Fixed PECL request #14801 (Session handler and large sessions)
- Added REPORT_ERRORS to php stream open
- New INI directive memcache.compress_threshold = 20000
* Thu Sep 11 2008 crrodriguez@suse.de
- update to version 3.0.2
- Updated binary protocol to be compatible with memcached 1.3.0
- Added memcached stats script from Harun Yayli (http://livebookmark.net/memcachephp)
- Fixed server weight not being used in the session handler
- Fixed PECL bug #13343 (compilation breaks with CodeWarrior compiler)
- Fixed PECL bug #13546 (Session handler through unix socket)
- Fixed PECL bug #13592 (error in opcode)
- Fixed PECL req #13588 (minor inefficiency in binary protocol implementation)
- Fixed PECL bug #14044 (send of 32768 bytes failed with errno=11 Resource temporarily unavailable)
- Fixed PECL bug #14239 (Memcache::set() modifies value parameter)
- Fixed PECL bug #14156 (No check for parameter count in php_mmc_store)
- Fixed PECL bug #14458 (off-by-one causes corrupted arrays in 3.0.x)
- Fixed PECL bug #14104 (Malformed VALUE header (0))
- Fixed PECL request #13725 (unnecessary allocations in mmc_consistent_add_server)
- Changed behaviour when unserialize/uncompress fail to return false instead of failing the server
* Wed Feb  6 2008 crrodriguez@suse.de
- version 3.0.1
- Fixed PECL bug #12866 (Ignore memcache.default_port in memcache_connect)
- Fixed PECL bug #12883 (Breaks UTF-8 in keys)
- Fixed PECL bug #13060 (make problems, due to role="doc" instead of role="src")
- Changed behaviour of close() to actually remove all servers from pool (PECL bug #12555)
- Added configure option for PEAR installer to disable session handler support
- Added package version to phpinfo()
* Mon Nov 26 2007 crrodriguez@suse.de
- version 3.0.0
- UDP support
- Binary protocol support
- Non-blocking IO using select()
- Pipelined multi-set/delete/increment/decrement
- CAS (Compare-And-Swap) support
- Append/prepend support
- Key and session redundancy (values are written to N mirrors)
- Improved error reporting and failover handling
- Added class "MemcachePool" implementing the new API
- New INI directives
  * memcache.protocol = {ascii, binary}
  * memcache.redundancy = 1
  * memcache.session_redundancy = 2
- Changed INI defaults
  * memcache.hash_strategy = consistent
  * memcache.chunk_size = 32768
* Mon Nov  5 2007 crrodriguez@suse.de
- version 2.2.1
- Added argument to Memcache::get() that receives the flags for retrieved value(s)
- Fixed PECL bug 11369 ("nested" get calls in __wakeup() functions breaks)
- Fixed problem with keys being modified in-place and empty keys
- Fixed incompatibility with standard hash strategy in previous versions
* Fri Sep 21 2007 crrodriguez@suse.de
- update to version 2.2.0
* Tue Jun 19 2007 judas_iscariote@shorewall.net
- Update to current CVS snapshot, fixing a double efree()
- add missing ini file
- fix build in some targets
openSUSE Build Service is sponsored by