Author: glen                         Date: Tue Aug 24 11:02:01 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- setup date.timezone if possible; rel 6

---- Files affected:
packages/php:
   php.spec (1.889 -> 1.890) 

---- Diffs:

================================================================
Index: packages/php/php.spec
diff -u packages/php/php.spec:1.889 packages/php/php.spec:1.890
--- packages/php/php.spec:1.889 Sun Aug 22 12:53:11 2010
+++ packages/php/php.spec       Tue Aug 24 13:01:52 2010
@@ -103,7 +103,7 @@
 %undefine      with_filter
 %endif
 
-%define                rel             4
+%define                rel             5
 Summary:       PHP: Hypertext Preprocessor
 Summary(fr.UTF-8):     Le langage de script embarque-HTML PHP
 Summary(pl.UTF-8):     Język skryptowy PHP
@@ -448,6 +448,7 @@
 Summary(ru.UTF-8):     Разделяемые библиотеки для PHP
 Summary(uk.UTF-8):     Бібліотеки спільного використання для PHP
 Group:         Libraries
+Requires(post):        sed >= 4.0
 # because of dlclose() bugs in glibc <= 2.3.4 causing SEGVs on exit
 Requires:      glibc >= 6:2.3.5
 Requires:      php-dirs
@@ -2310,6 +2311,16 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post common
+# PHP 5.3 requires timezone being setup, try setup it from tzdata
+if [ -f /etc/sysconfig/timezone ]; then
+       TIMEZONE=
+       . /etc/sysconfig/timezone
+       if [ "$TIMEZONE" ]; then
+               %{__sed} -i -e "s,^;date.timezone = .*,date.timezone = 
$TIMEZONE," /etc/php/php.ini
+       fi
+fi
+
 %post -n apache1-mod_php
 if [ "$1" = "1" ]; then
        %service -q apache restart
@@ -3141,6 +3152,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.890  2010/08/24 11:01:52  glen
+- setup date.timezone if possible; rel 6
+
 Revision 1.889  2010/08/22 10:53:11  glen
 - provide obsoleted names: php-mhash, php-domxml; rel 4
 
================================================================

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

_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to