SPECS: ZendStudioServer.spec - use new php extension macros

glen glen at pld-linux.org
Tue Jan 16 22:47:09 CET 2007


Author: glen                         Date: Tue Jan 16 21:47:09 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- use new php extension macros

---- Files affected:
SPECS:
   ZendStudioServer.spec (1.8 -> 1.9) 

---- Diffs:

================================================================
Index: SPECS/ZendStudioServer.spec
diff -u SPECS/ZendStudioServer.spec:1.8 SPECS/ZendStudioServer.spec:1.9
--- SPECS/ZendStudioServer.spec:1.8	Tue Jan 24 13:33:44 2006
+++ SPECS/ZendStudioServer.spec	Tue Jan 16 22:47:04 2007
@@ -14,6 +14,7 @@
 # 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
@@ -128,24 +129,19 @@
 
 %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)
@@ -180,6 +176,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.9  2007/01/16 21:47:04  glen
+- use new php extension macros
+
 Revision 1.8  2006/01/24 12:33:44  arekm
 - up to 5.1.0a
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/ZendStudioServer.spec?r1=1.8&r2=1.9&f=u



More information about the pld-cvs-commit mailing list