[php-symfony2-Yaml] Updated to upstream version 2.1.8

Shawn Iwinski siwinski at fedoraproject.org
Sun Mar 3 21:05:56 UTC 2013


commit 1ccda4d7859864d5c4ce190ebb532f5f07756ec9
Author: Shawn Iwinski <shawn.iwinski at gmail.com>
Date:   Sun Mar 3 16:05:55 2013 -0500

    Updated to upstream version 2.1.8

 php-symfony2-Yaml.spec |   21 +++++++++++++++++----
 1 files changed, 17 insertions(+), 4 deletions(-)
---
diff --git a/php-symfony2-Yaml.spec b/php-symfony2-Yaml.spec
index 143b3f0..73cb75d 100644
--- a/php-symfony2-Yaml.spec
+++ b/php-symfony2-Yaml.spec
@@ -5,9 +5,12 @@
 %global pear_name    %(echo %{name} | sed -e 's/^php-symfony2-//' -e 's/-/_/g')
 %global php_min_ver  5.3.3
 
+# Temp disable tests unless "--with tests"
++%global with_tests   %{?_with_tests:1}%{!?_with_tests:0}
+
 Name:             php-symfony2-Yaml
-Version:          2.1.7
-Release:          2%{?dist}
+Version:          2.1.8
+Release:          1%{?dist}
 Summary:          Symfony2 %{pear_name} Component
 
 Group:            Development/Libraries
@@ -20,6 +23,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)
@@ -31,6 +35,7 @@ BuildRequires:    php-json
 BuildRequires:    php-mbstring
 BuildRequires:    php-pcre
 BuildRequires:    php-spl
+%endif
 
 Requires:         php-common >= %{php_min_ver}
 Requires:         php-pear(PEAR)
@@ -104,8 +109,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
@@ -130,6 +139,10 @@ fi
 
 
 %changelog
+* Sun Mar 03 2013 Shawn Iwinski <shawn.iwinski at gmail.com> 2.1.8-1
+- Updated to upstream version 2.1.8
+- Temp disable tests unless "--with tests"
+
 * Thu Feb 14 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.1.7-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
 


More information about the scm-commits mailing list