packages: php-pecl-memcache/php-pecl-memcache.spec - load ourselves after s...
glen
glen at pld-linux.org
Wed Sep 23 10:58:34 CEST 2009
Author: glen Date: Wed Sep 23 08:58:34 2009 GMT
Module: packages Tag: HEAD
---- Log message:
- load ourselves after session module; rel 2
---- Files affected:
packages/php-pecl-memcache:
php-pecl-memcache.spec (1.37 -> 1.38)
---- Diffs:
================================================================
Index: packages/php-pecl-memcache/php-pecl-memcache.spec
diff -u packages/php-pecl-memcache/php-pecl-memcache.spec:1.37 packages/php-pecl-memcache/php-pecl-memcache.spec:1.38
--- packages/php-pecl-memcache/php-pecl-memcache.spec:1.37 Wed Sep 23 10:05:02 2009
+++ packages/php-pecl-memcache/php-pecl-memcache.spec Wed Sep 23 10:58:28 2009
@@ -4,7 +4,7 @@
Summary(pl.UTF-8): %{modname} - rozszerzenie memcached
Name: php-pecl-%{modname}
Version: 3.0.4
-Release: 1
+Release: 2
License: PHP 3.01
Group: Development/Languages/PHP
Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
@@ -50,7 +50,7 @@
install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir},%{_examplesdir}/%{name}-%{version}}
install modules/%{modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
-cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
+cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/session_%{modname}.ini
; Enable %{modname} extension module
extension=%{modname}.so
;memcache.allow_failover=1
@@ -75,10 +75,18 @@
%php_webserver_restart
fi
+%triggerpostun -- %{name} < 3.0.4-2
+if [ -f %{php_sysconfdir}/conf.d/%{modname}.ini.rpmsave ]; then
+ echo >&2 "Restoring old config: %{modname}.ini.rpmsave -> session_%{modname}.ini in %{php_sysconfdir}/conf.d"
+ cp -f %{php_sysconfdir}/conf.d/session_%{modname}.ini{,.rpmnew}
+ mv -f %{php_sysconfdir}/conf.d/{%{modname}.ini.rpmsave,session_%{modname}.ini}
+ %php_webserver_restart
+fi
+
%files
%defattr(644,root,root,755)
%doc CREDITS README
-%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
+%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/session_%{modname}.ini
%attr(755,root,root) %{php_extensiondir}/%{modname}.so
%{_examplesdir}/%{name}-%{version}
@@ -88,6 +96,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.38 2009/09/23 08:58:28 glen
+- load ourselves after session module; rel 2
+
Revision 1.37 2009/09/23 08:05:02 glen
- unify
- R: session ext: memcache.so: undefined symbol: php_session_create_id
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/php-pecl-memcache/php-pecl-memcache.spec?r1=1.37&r2=1.38&f=u
More information about the pld-cvs-commit
mailing list