]> git.pld-linux.org Git - packages/php4-pecl-intercept.git/blobdiff - php4-pecl-intercept.spec
- use %php4_webserver_restart; unify
[packages/php4-pecl-intercept.git] / php4-pecl-intercept.spec
index ceb228033a496104571bca63eb9a3f5e67db9be9..ad86f6e93043878732f693b64a2e3440bafd4261 100644 (file)
@@ -2,7 +2,6 @@
 %define                _status         alpha
 %define                _sysconfdir     /etc/php4
 %define                extensionsdir   %{_libdir}/php4
-
 Summary:       %{_modname} - intercept function/method calls
 Summary(pl.UTF-8):     %{_modname} - przechwytywanie wywołań funkcji/metod
 Name:          php4-pecl-%{_modname}
@@ -14,9 +13,9 @@ Source0:      http://pecl.php.net/get/%{_modname}-%{version}.tgz
 # Source0-md5: 442121f4043984cdde213918266a925c
 URL:           http://pecl.php.net/package/intercept/
 BuildRequires: php4-devel >= 4.0.0
-BuildRequires: rpmbuild(macros) >= 1.322
+BuildRequires: rpmbuild(macros) >= 1.344
 %{?requires_php_extension}
-Requires:      %{_sysconfdir}/conf.d
+Requires:      php4-common >= 3:4.4.0-3
 Obsoletes:     php-pear-%{_modname}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -57,13 +56,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.293625 seconds and 4 git commands to generate.