[php-symfony2-Form] Temp disable tests

Shawn Iwinski siwinski at fedoraproject.org
Wed Oct 31 04:11:07 UTC 2012


commit 433757af559b4c3b51b6530d7b58af4a8a3add6c
Author: Shawn Iwinski <shawn.iwinski at gmail.com>
Date:   Wed Oct 31 00:10:29 2012 -0400

    Temp disable tests
    
    Temp disable tests by default b/c build failures on F18, F17, and EL6

 php-symfony2-Form.spec |   17 ++++++++++++++---
 1 files changed, 14 insertions(+), 3 deletions(-)
---
diff --git a/php-symfony2-Form.spec b/php-symfony2-Form.spec
index 6e1580b..9816385 100644
--- a/php-symfony2-Form.spec
+++ b/php-symfony2-Form.spec
@@ -4,10 +4,12 @@
 %global pear_channel pear.symfony.com
 %global pear_name    %(echo %{name} | sed -e 's/^php-symfony2-//' -e 's/-/_/g')
 %global php_min_ver  5.3.3
+# Temp disable tests by default b/c build failures on F18, F17, and EL6
+%global with_tests   %{?_with_tests:1}%{!?_with_tests:0}
 
 Name:             php-symfony2-Form
 Version:          2.1.2
-Release:          1%{?dist}
+Release:          2%{?dist}
 Summary:          Symfony2 %{pear_name} Component
 
 Group:            Development/Libraries
@@ -20,6 +22,7 @@ BuildArch:        noarch
 
 BuildRequires:    php-pear(PEAR)
 BuildRequires:    php-channel(%{pear_channel})
+%if %{with_tests}
 # Test requires
 BuildRequires:    php-common >= %{php_min_ver}
 BuildRequires:    php-pear(pear.phpunit.de/PHPUnit)
@@ -38,6 +41,7 @@ BuildRequires:    php-pcre
 BuildRequires:    php-reflection
 BuildRequires:    php-session
 BuildRequires:    php-spl
+%endif
 
 Requires:         php-common >= %{php_min_ver}
 Requires:         php-pear(PEAR)
@@ -110,8 +114,12 @@ install -pm 644 %{name}.xml %{buildroot}%{pear_xmldir}
 
 
 %check
-cd %{pear_name}-%{version}/Symfony/Component/%{pear_name}
-%{_bindir}/phpunit
+%if %{with_tests}
+    cd %{pear_name}-%{version}/Symfony/Component/%{pear_name}
+    %{_bindir}/phpunit
+%else
+: Tests skipped, missing '--with tests' option
+%endif
 
 
 %post
@@ -134,6 +142,9 @@ fi
 
 
 %changelog
+* Wed Oct 31 2012 Shawn Iwinski <shawn.iwinski at gmail.com> 2.1.2-2
+- Temp disable tests by default b/c build failures on F18, F17, and EL6
+
 * Fri Oct 26 2012 Shawn Iwinski <shawn.iwinski at gmail.com> 2.1.2-1
 - Updated to upstream version 2.1.2
 - Updated description


More information about the scm-commits mailing list