rpms/php-pecl-memcache/EL-4 memcache-php439.patch, NONE, 1.1 php-pecl-memcache.spec, NONE, 1.1 sources, 1.1, 1.2 README, 1.1, NONE

Remi Collet (remi) fedora-extras-commits at redhat.com
Sat Sep 1 16:29:14 UTC 2007


Author: remi

Update of /cvs/extras/rpms/php-pecl-memcache/EL-4
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv21365

Modified Files:
	sources 
Added Files:
	memcache-php439.patch php-pecl-memcache.spec 
Removed Files:
	README 
Log Message:
    new package (with EL4 specific specfile)

memcache-php439.patch:

--- NEW FILE memcache-php439.patch ---
--- memcache-2.1.2/memcache_session.c.orig	2007-09-01 18:10:33.000000000 +0200
+++ memcache-2.1.2/memcache_session.c	2007-09-01 18:11:35.000000000 +0200
@@ -32,6 +32,10 @@
 #include "ext/standard/url.h"
 #include "php_memcache.h"
 
+#if PHP_MAJOR_VERSION == 4 && PHP_MINOR_VERSION == 3 && PHP_RELEASE_VERSION < 10
+#       define php_url_parse_ex(u, l) php_url_parse(u)
+#endif
+
 #if HAVE_MEMCACHE_SESSION
 
 ps_module ps_mod_memcache = {


--- NEW FILE php-pecl-memcache.spec ---
# ---- specific SPEC file only for RHEL4 (too much conditional stuff) ----

%{!?php_extdir: %{expand: %%global php_extdir %(php-config --extension-dir)}}

%define pecl_name memcache

Summary:      Extension to work with the Memcached caching daemon
Name:         php-pecl-memcache
Version:      2.1.2
Release:      1%{?dist}.1
License:      PHP
Group:        Development/Languages
URL:          http://pecl.php.net/package/%{pecl_name}

Source:       http://pecl.php.net/get/%{pecl_name}-%{version}.tgz
Patch0:       memcache-php439.patch

BuildRoot:    %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: php-devel, zlib-devel
BuildRequires: autoconf, automake, libtool, openssl-devel
Provides:     php-pecl(%{pecl_name}) = %{version}-%{release}

%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.

Memcache can be used as a PHP session handler.

%prep 
%setup -c -q
%patch0 -p0 -b .php439

%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 for the %{pecl_name} module

; Whether to transparently failover to other servers on errors
;memcache.allow_failover=1

; Defines how many servers to try when setting and getting data.
;memcache.max_failover_attempts=20

; Data will be transferred in chunks of this size
;memcache.chunk_size=8192

; The default TCP port number to use when connecting to the memcached server 
;memcache.default_port=11211

; Options to use the memcache session handler

; Use memcache as a session handler
;session.save_handler=memcache

; Defines a comma separated of server urls to use for session storage
;session.save_path="tcp://localhost:11211?persistent=1&weight=1&timeout=1&retry_interval=15"
EOF


%clean
%{__rm} -rf %{buildroot}


%files
%defattr(-, root, root, -)
%doc %{pecl_name}-%{version}/CREDITS %{pecl_name}-%{version}/README %{pecl_name}-%{version}/example.php
%config(noreplace) %{_sysconfdir}/php.d/%{pecl_name}.ini
%{php_extdir}/%{pecl_name}.so


%changelog
* Sat Sep  1 2007 Remi Collet <Fedora at FamilleCollet.com> 2.1.2-1.el4.1
- specific spec for EL4
- memcache-php439.patch, see http://pecl.php.net/bugs/bug.php?id=11953

* Mon Aug 20 2007 Remi Collet <Fedora at FamilleCollet.com> 2.1.2-1
- initial RPM



Index: sources
===================================================================
RCS file: /cvs/extras/rpms/php-pecl-memcache/EL-4/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	31 Aug 2007 01:05:19 -0000	1.1
+++ sources	1 Sep 2007 16:28:41 -0000	1.2
@@ -0,0 +1 @@
+cfde0918360f3909a242c3211604ad46  memcache-2.1.2.tgz


--- README DELETED ---




More information about the fedora-extras-commits mailing list