]> git.pld-linux.org Git - packages/php4-pecl-tidy.git/commitdiff
- use %php4_webserver_restart; unify master auto/th/php4-pecl-tidy-1_2-3
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 24 Jan 2008 11:21:22 +0000 (11:21 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    php4-pecl-tidy.spec -> 1.15

php4-pecl-tidy.spec

index 408f8081a3769dc5cfaa417a6d794a653a5c5a06..0ba727af0b9199101a019e98a7661517f587f37d 100644 (file)
@@ -13,12 +13,12 @@ Source0:    http://pecl.php.net/get/%{_modname}-%{version}.tgz
 # Source0-md5: 8c1c92d9386c56d483b1115d207c0293
 URL:           http://pecl.php.net/package/tidy/
 BuildRequires: php4-devel
-BuildRequires: rpmbuild(macros) >= 1.322
+BuildRequires: rpmbuild(macros) >= 1.344
 BuildRequires: tidy-devel
-%{?requires_php_extension}
-Requires:      %{_sysconfdir}/conf.d
+Requires:      php4-common >= 3:4.4.0-3
 Provides:      php(tidy)
 Obsoletes:     php-pear-%{_modname}
+%{?requires_php_extension}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -63,13 +63,11 @@ EOF
 rm -rf $RPM_BUILD_ROOT
 
 %post
-[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service -q apache restart
-[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service -q httpd restart
+%php4_webserver_restart
 
 %postun
 if [ "$1" = 0 ]; then
-       [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service -q apache restart
-       [ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service -q httpd restart
+       %php4_webserver_restart
 fi
 
 %files
This page took 0.044231 seconds and 4 git commands to generate.