]> git.pld-linux.org Git - packages/ZendStudioServer.git/commitdiff
- use new php extension macros
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 16 Jan 2007 21:47:04 +0000 (21:47 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    ZendStudioServer.spec -> 1.9

ZendStudioServer.spec

index 5562945a5a9f41a965579c788bf4f04a0b7ed0c3..875aa577ed227f1c1f786d9bc1be25ef2369e36c 100644 (file)
@@ -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)
This page took 0.138345 seconds and 4 git commands to generate.