[php-symfony2-HttpFoundation] Temp disable tests
Shawn Iwinski
siwinski at fedoraproject.org
Tue Oct 30 11:34:09 UTC 2012
commit 665be454ebfa89729291e21767d903e61931d0f8
Author: Shawn Iwinski <shawn.iwinski at gmail.com>
Date: Tue Oct 30 07:33:39 2012 -0400
Temp disable tests
Temp disable tests by default b/c build failures on F18, F17, and EL6
php-symfony2-HttpFoundation.spec | 17 ++++++++++++++---
1 files changed, 14 insertions(+), 3 deletions(-)
---
diff --git a/php-symfony2-HttpFoundation.spec b/php-symfony2-HttpFoundation.spec
index b78d9f9..4d222c9 100644
--- a/php-symfony2-HttpFoundation.spec
+++ b/php-symfony2-HttpFoundation.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-HttpFoundation
Version: 2.1.2
-Release: 2%{?dist}
+Release: 3%{?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)
@@ -34,6 +37,7 @@ BuildRequires: php-session
BuildRequires: php-sockets
BuildRequires: php-spl
%{?fedora:BuildRequires: php-filter}
+%endif
Requires: php-common >= %{php_min_ver}
Requires: php-pear(PEAR)
@@ -107,8 +111,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
@@ -133,6 +141,9 @@ fi
%changelog
+* Tue Oct 30 2012 Shawn Iwinski <shawn.iwinski at gmail.com> 2.1.2-3
+- Temp disable tests by default b/c build failures on F18, F17, and EL6
+
* Mon Oct 29 2012 Shawn Iwinski <shawn.iwinski at gmail.com> 2.1.2-2
- Added "%%global pear_metadir" and usage in %%install
- Changed RPM_BUILD_ROOT to %%{buildroot}
More information about the scm-commits
mailing list