packages: ZendFramework/ZendFramework.spec - syntax lint needs runkit pecl; ...

glen glen at pld-linux.org
Wed Jun 9 14:19:23 CEST 2010


Author: glen                         Date: Wed Jun  9 12:19:23 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- syntax lint needs runkit pecl; rel 2

---- Files affected:
packages/ZendFramework:
   ZendFramework.spec (1.84 -> 1.85) 

---- Diffs:

================================================================
Index: packages/ZendFramework/ZendFramework.spec
diff -u packages/ZendFramework/ZendFramework.spec:1.84 packages/ZendFramework/ZendFramework.spec:1.85
--- packages/ZendFramework/ZendFramework.spec:1.84	Tue Jun  1 19:07:20 2010
+++ packages/ZendFramework/ZendFramework.spec	Wed Jun  9 14:19:17 2010
@@ -1,4 +1,8 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	tests	# do not perform "make test"
+
 # TODO
 # - check Zend/Pdf/FileParser/Image/Jpeg.php and Zend/Pdf/FileParser/Image/Tiff.php
 #   presence in Zend/Pdf/Image.php after update [not implemented in 1.10.2)
@@ -7,7 +11,7 @@
 Summary(pl.UTF-8):	Szkielet Zend
 Name:		ZendFramework
 Version:	1.10.5
-Release:	1
+Release:	2
 License:	New BSD License
 Group:		Development/Languages/PHP
 Source0:	http://framework.zend.com/releases/%{name}-%{version}/%{name}-%{version}.tar.gz
@@ -19,7 +23,7 @@
 Patch1:		%{name}-deps.patch
 URL:		http://framework.zend.com/
 BuildRequires:	/usr/bin/php
-BuildRequires:	php-pecl-runkit
+%{?with_tests:BuildRequires:	php-pecl-runkit}
 BuildRequires:	rpm-php-pearprov >= 4.4.2-11
 BuildRequires:	sed >= 4.0
 Requires:	php-common >= 4:5.1.4
@@ -1451,6 +1455,7 @@
 find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
 
 %build
+%if %{with tests}
 # check *.php files syntax using runkit extension
 lint_php() {
 	php -r '
@@ -1469,6 +1474,7 @@
 	' $(find library -name '*.php')
 }
 lint_php
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -1941,6 +1947,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.85  2010/06/09 12:19:17  glen
+- syntax lint needs runkit pecl; rel 2
+
 Revision 1.84  2010/06/01 17:07:20  glen
 - up to 1.10.5
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/ZendFramework/ZendFramework.spec?r1=1.84&r2=1.85&f=u



More information about the pld-cvs-commit mailing list