]> git.pld-linux.org Git - packages/php.git/commitdiff
- added %post, %postun for php-tidy
authorzergin <zergin@pld-linux.org>
Sat, 4 Jun 2005 19:24:59 +0000 (19:24 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- added R:tidy for php-tidy

Changed files:
    php.spec -> 1.450

php.spec

index acbe61ef10e2b861390bf1f169950d486c34a463..f9ddd00c76f6bb084edb73ae33edd710f6d4f038 100644 (file)
--- a/php.spec
+++ b/php.spec
@@ -1287,6 +1287,7 @@ Summary(pl):      Modu
 Group:         Libraries
 Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Requires:      tidy
 
 %description tidy
 This is a dynamic shared object (DSO) for PHP that will add Tidy
@@ -2160,6 +2161,14 @@ if [ "$1" = "0" ]; then
        %{_sbindir}/php-module-install remove sysvshm %{_sysconfdir}/php.ini
 fi
 
+%post tidy
+%{_sbindir}/php-module-install install tidy %{_sysconfdir}/php.ini
+
+%preun tidy
+if [ "$1" = "0" ]; then
+       %{_sbindir}/php-module-install remove tidy %{_sysconfdir}/php.ini
+fi
+
 %post wddx
 %{_sbindir}/php-module-install install wddx %{_sysconfdir}/php.ini
 
This page took 0.045267 seconds and 4 git commands to generate.