]> git.pld-linux.org Git - packages/php.git/commitdiff
- fix second post auto/th/php-5_3_3-6
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 24 Aug 2010 21:45:24 +0000 (21:45 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    php.spec -> 1.891

php.spec

index d75a5024804960e79386daff6e1f26b99bf6ce34..72a220750f1220f773f7f49fddbc9cabd28e5b59 100644 (file)
--- a/php.spec
+++ b/php.spec
@@ -102,7 +102,7 @@ ERROR: You need to select at least one Apache SAPI to build shared modules.
 %undefine      with_filter
 %endif
 
-%define                rel             5
+%define                rel             6
 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
+Requires(post):        /sbin/ldconfig
 # because of dlclose() bugs in glibc <= 2.3.4 causing SEGVs on exit
 Requires:      glibc >= 6:2.3.5
 Requires:      php-dirs
@@ -2310,16 +2311,6 @@ cp -a tests/* $RPM_BUILD_ROOT%{php_data_dir}/tests/php
 %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
@@ -2358,7 +2349,17 @@ if [ "$1" = "0" ]; then
        %userremove http
 fi
 
-%post  common -p /sbin/ldconfig
+%post common
+/sbin/ldconfig
+# 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
+
 %postun        common -p /sbin/ldconfig
 
 %posttrans common
This page took 0.046964 seconds and 4 git commands to generate.