From 1f337ba56208026b6d0824077411a4e8e48fffc2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 16 Jan 2007 21:47:04 +0000 Subject: [PATCH] - use new php extension macros Changed files: ZendStudioServer.spec -> 1.9 --- ZendStudioServer.spec | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/ZendStudioServer.spec b/ZendStudioServer.spec index 5562945..875aa57 100644 --- a/ZendStudioServer.spec +++ b/ZendStudioServer.spec @@ -13,6 +13,7 @@ Source1: http://downloads.zend.com/studio/5.1.0/%{name}-%{version}-linux-glibc23 # NoSource1-md5: a7ddb3b964fe0c1746b0f7b8a5093423 NoSource: 1 URL: http://downloads.zend.com/studio/5.1.0/ +BuildRequires: rpmbuild(macros) >= 1.344 BuildRequires: tar >= 1:1.15.1 # circular dependency, so ones upgraded are forced to choose php and # ones that want to install specific for specific version need not to @@ -127,24 +128,19 @@ rm -rf $RPM_BUILD_ROOT %preun -n php4-%{name} 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 %post -n php4-%{name} -[ ! -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 %preun -n php-%{name} if [ "$1" = "0" ]; then - [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart - [ ! -f /etc/httpd/httpd.conf/??_mod_php.conf ] || %service -q httpd restart + %php_webserver_restart fi %post -n php-%{name} -[ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart -[ ! -f /etc/httpd/httpd.conf/??_mod_php.conf ] || %service -q httpd restart +%php_webserver_restart %files %defattr(644,root,root,755) -- 2.43.0