SPECS: php4-mcache.spec - use php4_webserver_restart macro

glen glen at pld-linux.org
Wed Oct 15 18:46:22 CEST 2008


Author: glen                         Date: Wed Oct 15 16:46:22 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- use php4_webserver_restart macro

---- Files affected:
SPECS:
   php4-mcache.spec (1.25 -> 1.26) 

---- Diffs:

================================================================
Index: SPECS/php4-mcache.spec
diff -u SPECS/php4-mcache.spec:1.25 SPECS/php4-mcache.spec:1.26
--- SPECS/php4-mcache.spec:1.25	Tue Feb 13 09:06:40 2007
+++ SPECS/php4-mcache.spec	Wed Oct 15 18:46:16 2008
@@ -4,7 +4,7 @@
 %define		extensionsdir	%(php-config --extension-dir 2>/dev/null)
 
 %define		_beta	beta10
-%define		_rel	2
+%define		_rel	3
 Summary:	mcache PHP Extension
 Summary(pl.UTF-8):	Rozszerzenie PHP mcache
 Name:		php4-%{_name}
@@ -17,11 +17,10 @@
 Source1:	php4-mcache.php
 URL:		http://www.klir.com/~johnm/php-mcache/
 BuildRequires:	libmemcache-devel >= 1.3.0
-BuildRequires:	php4-devel
-BuildRequires:	rpmbuild(macros) >= 1.322
+BuildRequires:	php4-devel >= 3:4.0.0
+BuildRequires:	rpmbuild(macros) >= 1.344
 %{?requires_php_extension}
-Requires(post,preun):	php-common >= 3:4.1
-Requires:	%{_sysconfdir}/conf.d
+Requires:	php4-common >= 3:4.4.0-3
 Conflicts:	php4-pecl-memcache
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -89,13 +88,11 @@
 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
@@ -110,6 +107,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.26  2008/10/15 16:46:16  glen
+- use php4_webserver_restart macro
+
 Revision 1.25  2007/02/13 08:06:40  glen
 - tabs in preamble
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/php4-mcache.spec?r1=1.25&r2=1.26&f=u



More information about the pld-cvs-commit mailing list