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