From ad7388b2b74c044681bbdba19b119bfa12380619 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Thu, 24 Jan 2008 11:21:22 +0000 Subject: [PATCH] - use %php4_webserver_restart; unify Changed files: php4-pecl-intercept.spec -> 1.11 --- php4-pecl-intercept.spec | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/php4-pecl-intercept.spec b/php4-pecl-intercept.spec index ceb2280..ad86f6e 100644 --- a/php4-pecl-intercept.spec +++ b/php4-pecl-intercept.spec @@ -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 -- 2.44.0