summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2013-08-22 14:49:48 +0200
committerRemi Collet <fedora@famillecollet.com>2013-08-22 14:49:48 +0200
commitfa3a88892ca22af64bbb3730bf437623ff531970 (patch)
treeffaf3afd86255c665fd691e4e2ca736e248f633e
parent2731b0f66c05372e1077870b0db158da9a976698 (diff)
php-symfony2-* 2.2.5 (backport)
-rw-r--r--php-symfony2-Finder.spec34
1 files changed, 26 insertions, 8 deletions
diff --git a/php-symfony2-Finder.spec b/php-symfony2-Finder.spec
index a0ec795..19613b8 100644
--- a/php-symfony2-Finder.spec
+++ b/php-symfony2-Finder.spec
@@ -3,9 +3,10 @@
%global pear_channel pear.symfony.com
%global pear_name Finder
%global php_min_ver 5.3.3
+%global with_tests %{?_with_tests:1}%{!?_with_tests:0}
Name: php-symfony2-%{pear_name}
-Version: 2.2.2
+Version: 2.2.5
Release: 1%{?dist}
Summary: Symfony2 %{pear_name} Component
@@ -19,6 +20,7 @@ BuildArch: noarch
BuildRequires: php-pear(PEAR)
BuildRequires: php-channel(%{pear_channel})
+%if %{with_tests}
# For tests
BuildRequires: php(language) >= %{php_min_ver}
BuildRequires: php-pear(pear.phpunit.de/PHPUnit)
@@ -26,6 +28,7 @@ BuildRequires: php-pear(pear.phpunit.de/PHPUnit)
BuildRequires: php-date
BuildRequires: php-pcre
BuildRequires: php-spl
+%endif
Requires: php(language) >= %{php_min_ver}
Requires: php-pear(PEAR)
@@ -75,15 +78,9 @@ sed -e 's#vendor/autoload.php#./phpunit.autoloader.php#' \
-i %{pear_name}-%{version}/Symfony/Component/%{pear_name}/phpunit.xml.dist
# Modify PEAR package.xml file:
-# - Remove .gitattributes file
-# - Remove .gitignore file
-# - Change role from "php" to "doc" for CHANGELOG.md file
# - Change role from "php" to "test" for all test files
# - Remove md5sum from phpunit.xml.dist file since it was updated
-sed -e '/\.gitattributes/d' \
- -e '/\.gitignore/d' \
- -e '/CHANGELOG.md/s/role="php"/role="doc"/' \
- -e '/Tests/s/role="php"/role="test"/' \
+sed -e '/Tests/s/role="php"/role="test"/' \
-e '/phpunit.xml.dist/s/role="php"/role="test"/' \
-e '/phpunit.xml.dist/s/md5sum="[^"]*"\s*//' \
-i package.xml
@@ -120,10 +117,14 @@ cp ../../../../phpunit.autoloader.php .
# TODO: Need to adjust tests for BUILD dir versus BUILDROOT dir which are
# causing Koiji tests to fail.
# See: https://koji.fedoraproject.org/koji/taskinfo?taskID=5250215
+%if %{with_tests}
%{_bindir}/phpunit \
-d include_path="%{buildroot}%{pear_phpdir}:%{buildroot}%{pear_testdir}/%{pear_name}:.:%{pear_phpdir}:%{_datadir}/php" \
-d date.timezone="UTC" \
|| : Temporarily ignore failed tests
+%else
+: Test disabled, missing '--with tests' option.
+%endif
%post
@@ -149,6 +150,23 @@ fi
%changelog
+* Thu Aug 22 2013 Remi Collet <remi@fedoraproject.org> - 2.2.5-1
+- Sync with rawhide, update to 2.2.5
+- disable tests, too long and as results are ignored...
+
+* Fri Aug 09 2013 Shawn Iwinski <shawn.iwinski@gmail.com> 2.2.5-1
+- Updated to 2.2.5
+
+* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.3-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
+
+* Tue Jul 02 2013 Shawn Iwinski <shawn.iwinski@gmail.com> 2.2.3-1
+- Updated to 2.2.3
+
+* Thu Jun 13 2013 Shawn Iwinski <shawn.iwinski@gmail.com> 2.2.2-1
+- Updated to 2.2.2
+- Removed package.xml modifications fixed usptream
+
* Mon Jun 03 2013 Remi Collet <remi@fedoraproject.org> - 2.2.2-1
- Update to 2.2.2