From aca87f2f821a701e423fe21e91cde04bceebe7fb 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-Locale.spec | 36 +++++++++++++++++++++++++++--------- 1 file changed, 27 insertions(+), 9 deletions(-) diff --git a/php-symfony2-Locale.spec b/php-symfony2-Locale.spec index dbde30b..a1a4d06 100644 --- a/php-symfony2-Locale.spec +++ b/php-symfony2-Locale.spec @@ -1,11 +1,12 @@ -%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}} + %{!?__pear: %{expand: %%global __pear %{_bindir}/pear}} %global pear_channel pear.symfony.com %global pear_name Locale %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) @@ -30,6 +32,7 @@ BuildRequires: php-pcre BuildRequires: php-reflection BuildRequires: php-simplexml BuildRequires: php-spl +%endif Requires: php(language) >= %{php_min_ver} Requires: php-pear(PEAR) @@ -96,16 +99,10 @@ 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 UPDATE.txt 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 '/UPDATE.txt/s/role="php"/role="doc"/' \ - -e '/CHANGELOG.md/s/role="php"/role="doc"/' \ +sed -e '/UPDATE.txt/s/role="php"/role="doc"/' \ -e '/Tests/s/role="php"/role="test"/' \ -e '/phpunit.xml.dist/s/role="php"/role="test"/' \ -e '/phpunit.xml.dist/s/md5sum="[^"]*"\s*//' \ @@ -149,10 +146,14 @@ 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" \ || : Temporarily ignore failed tests +%else +: Test disabled, missing '--with tests' option. +%endif %post @@ -193,6 +194,23 @@ fi %changelog +* Thu Aug 22 2013 Remi Collet - 2.2.5-1 +- Updated 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 + * Mon Jun 03 2013 Remi Collet - 2.2.2-1 - Update to 2.2.2 -- cgit