packages: php-pecl-memcache/php-pecl-memcache.spec - unify - R: session ext...

glen glen at pld-linux.org
Wed Sep 23 10:05:07 CEST 2009


Author: glen                         Date: Wed Sep 23 08:05:07 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- unify
- R: session ext: memcache.so: undefined symbol: php_session_create_id

---- Files affected:
packages/php-pecl-memcache:
   php-pecl-memcache.spec (1.36 -> 1.37) 

---- Diffs:

================================================================
Index: packages/php-pecl-memcache/php-pecl-memcache.spec
diff -u packages/php-pecl-memcache/php-pecl-memcache.spec:1.36 packages/php-pecl-memcache/php-pecl-memcache.spec:1.37
--- packages/php-pecl-memcache/php-pecl-memcache.spec:1.36	Sun Apr 26 19:20:09 2009
+++ packages/php-pecl-memcache/php-pecl-memcache.spec	Wed Sep 23 10:05:02 2009
@@ -1,23 +1,23 @@
 # $Revision$, $Date$
-%define		_modname	memcache
-%define		_status		beta
-Summary:	%{_modname} - a memcached extension
-Summary(pl.UTF-8):	%{_modname} - rozszerzenie memcached
-Name:		php-pecl-%{_modname}
+%define		modname	memcache
+Summary:	%{modname} - a memcached extension
+Summary(pl.UTF-8):	%{modname} - rozszerzenie memcached
+Name:		php-pecl-%{modname}
 Version:	3.0.4
 Release:	1
 License:	PHP 3.01
 Group:		Development/Languages/PHP
-Source0:	http://pecl.php.net/get/%{_modname}-%{version}.tgz
+Source0:	http://pecl.php.net/get/%{modname}-%{version}.tgz
 # Source0-md5:	07933ce0191274201ea6905cd509c5b0
 URL:		http://pecl.php.net/package/memcache/
 BuildRequires:	php-devel >= 3:5.0.0
 BuildRequires:	rpmbuild(macros) >= 1.344
 %{?requires_php_extension}
 Requires:	php-common >= 4:5.0.4
+Requires:	php-session
 Requires:	php-zlib
 #Suggests:	memcached
-Obsoletes:	php-pear-%{_modname}
+Obsoletes:	php-pear-%{modname}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -27,8 +27,6 @@
 This extension allows you to work with memcached through handy OO and
 procedural interfaces.
 
-In PECL status of this extension is: %{_status}.
-
 %description -l pl.UTF-8
 Memcached to zaprojektowany dla dynamicznych aplikacji internetowych
 daemon cachujący mający za zadanie zmniejszenie obciążenia bazy danych
@@ -37,13 +35,11 @@
 To rozszerzenie umożliwia pracę z memcached za pomocą poręcznego
 zorientowanego obiektowo (oraz przez procedury) interfejsu.
 
-To rozszerzenie ma w PECL status: %{_status}.
-
 %prep
 %setup -q -c
+mv %{modname}-%{version}/* .
 
 %build
-cd %{_modname}-%{version}
 phpize
 %configure \
 	--with-zlib-dir=/usr
@@ -51,12 +47,12 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
+install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir},%{_examplesdir}/%{name}-%{version}}
 
-install %{_modname}-%{version}/modules/%{_modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
-cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{_modname}.ini
-; Enable %{_modname} extension module
-extension=%{_modname}.so
+install modules/%{modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
+cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
+; Enable %{modname} extension module
+extension=%{modname}.so
 ;memcache.allow_failover=1
 ;memcache.chunk_size=8192
 ;memcache.default_port=11211
@@ -66,6 +62,7 @@
 ;memcache.hash_strategy=consistent
 ;memcache.hash_function=crc32
 EOF
+cp -a example.php memcache.php $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -80,9 +77,10 @@
 
 %files
 %defattr(644,root,root,755)
-%doc %{_modname}-%{version}/{CREDITS,README,example.php,memcache.php}
-%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{_modname}.ini
-%attr(755,root,root) %{php_extensiondir}/%{_modname}.so
+%doc CREDITS README
+%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
+%attr(755,root,root) %{php_extensiondir}/%{modname}.so
+%{_examplesdir}/%{name}-%{version}
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -90,6 +88,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.37  2009/09/23 08:05:02  glen
+- unify
+- R: session ext: memcache.so: undefined symbol: php_session_create_id
+
 Revision 1.36  2009/04/26 17:20:09  adamg
 - license fixes Andrzej Mateja <amateja () pimpek.one.pl>
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/php-pecl-memcache/php-pecl-memcache.spec?r1=1.36&r2=1.37&f=u



More information about the pld-cvs-commit mailing list