[packages/php-pear-PHP_CodeSniffer] keep xmlwriter optional
glen
glen at pld-linux.org
Mon Mar 24 10:11:01 CET 2014
commit 4f2e127713d15e6d7a43f9754689c29fa68d66e8
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Mon Mar 24 11:10:58 2014 +0200
keep xmlwriter optional
php-pear-PHP_CodeSniffer.spec | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/php-pear-PHP_CodeSniffer.spec b/php-pear-PHP_CodeSniffer.spec
index 2c1921d..c7b2009 100644
--- a/php-pear-PHP_CodeSniffer.spec
+++ b/php-pear-PHP_CodeSniffer.spec
@@ -32,6 +32,12 @@ Obsoletes: php-pear-PHP_CodeSniffer-tests
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+# exclude optional php dependencies
+%define _noautophp php-xmlwriter
+
+# put it together for rpmbuild
+%define _noautoreq %{?_noautophp}
+
%description
PHP_CodeSniffer is a PHP5 script that tokenises and "sniffs" PHP code
to detect violations of a defined set of coding standards. It is an
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php-pear-PHP_CodeSniffer.git/commitdiff/4f2e127713d15e6d7a43f9754689c29fa68d66e8
More information about the pld-cvs-commit
mailing list