From eaa7a520c81592afe83dc641793cb803b16786ea Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 22 Aug 2013 14:49:48 +0200 Subject: php-symfony2-* 2.2.5 (backport) --- php-symfony2-Process.spec | 35 +++++++++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 8 deletions(-) diff --git a/php-symfony2-Process.spec b/php-symfony2-Process.spec index 2f01d0a..2540589 100644 --- a/php-symfony2-Process.spec +++ b/php-symfony2-Process.spec @@ -3,9 +3,10 @@ %global pear_channel pear.symfony.com %global pear_name Process %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-pcre BuildRequires: php-reflection BuildRequires: php-spl +%endif Requires: php(language) >= %{php_min_ver} Requires: php-pear(PEAR) @@ -74,15 +77,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 @@ -116,9 +113,13 @@ cd %{pear_name}-%{version}/Symfony/Component/%{pear_name} cp ../../../../phpunit.autoloader.php . +%if %{with_tests} %{_bindir}/phpunit \ -d include_path="%{buildroot}%{pear_phpdir}:%{buildroot}%{pear_testdir}/%{pear_name}:.:%{pear_phpdir}:%{_datadir}/php" \ -d date.timezone="UTC" +%else +: Test disabled, missing '--with tests' option. +%endif %post @@ -144,6 +145,24 @@ fi %changelog +* Thu Aug 22 2013 Remi Collet - 2.2.5-1 +- Sync with rawhide, update to 2.2.5 +- disable tests as results are ignored... + +* Fri Aug 09 2013 Shawn Iwinski 2.2.5-1 +- Updated to 2.2.5 + +* Sun Aug 04 2013 Fedora Release Engineering - 2.2.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Tue Jul 02 2013 Shawn Iwinski 2.2.3-1 +- Updated to 2.2.3 + +* Thu Jun 13 2013 Shawn Iwinski 2.2.2-1 +- Updated to 2.2.2 +- Removed package.xml modifications fixed usptream +- Temporarily ignore failed tests + * Mon Jun 03 2013 Remi Collet - 2.2.2-1 - Update to 2.2.2 -- cgit