From bb9e0f8fa54e0a692a2e30d64138f922de48678e Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 20 Oct 2014 17:59:32 +0200 Subject: php-ZendFramework2: sycn with rawhide --- php-ZendFramework2.spec | 36 +++++++++++++++++++++++++++++------- 1 file changed, 29 insertions(+), 7 deletions(-) diff --git a/php-ZendFramework2.spec b/php-ZendFramework2.spec index 734707a..f01a4e8 100644 --- a/php-ZendFramework2.spec +++ b/php-ZendFramework2.spec @@ -1,3 +1,15 @@ +# +# RPM spec file for php-ZendFramework2 +# +# Copyright (c) 2013-2014 Shawn Iwinski +# Remi Collet +# +# License: MIT +# http://opensource.org/licenses/MIT +# +# Please preserve changelog entries +# + %{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}} %global composer_vendor zendframework #global with_tests %{?_with_tests:1}%{!?_with_tests:0} @@ -5,7 +17,7 @@ Name: php-ZendFramework2 Version: 2.3.3 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Zend Framework 2 Group: Development/Libraries @@ -31,7 +43,7 @@ BuildArch: noarch %if %{with_tests} # PHPUnit + autoloader BuildRequires: %{_bindir}/phpunit -BuildRequires: php-composer(symfony/class-loader) >= 2.0 +BuildRequires: php-symfony-classloader >= 2.0 # required by components BuildRequires: php(language) >= 5.3.23 BuildRequires: php-bcmath @@ -1051,7 +1063,8 @@ Requires: %{name}-common = %{version}-%{release} Requires: php-composer(%{composer_vendor}/zend-servicemanager) = %{version} Requires: php-composer(ircmaxell/random-lib) Requires: php-bcmath -Requires: php-gmp +# php-gmp causes issues (see BZ #1152440) +#Requires: php-gmp # phpcompatinfo (computed from version 2.3.1) Requires: php-mcrypt Requires: php-openssl @@ -1067,6 +1080,8 @@ supported functionalities are: * Zend\Math\Rand: A random number generator * Zend\Math\BigInteger: A library to manage big integers +Optional: php-gmp + # ------------------------------------------------------------------------------ %package Memory @@ -1832,6 +1847,9 @@ If the XML document uses ENTITY the library throw an Exception. %patch0 -p0 +# php-ZendFramework2-I18n.noarch: E: backup-file-in-package /usr/share/php/Zend/I18n/Translator/Loader/Gettext.php.orig +rm -f library/Zend/I18n/Translator/Loader/Gettext.php.orig + %build # Empty build section, nothing required @@ -1856,9 +1874,7 @@ cd tests # Create autoloader cat > _autoload.php <<'AUTOLOADER' - 2.3.3-2 +- Drop php-gmp dependency from Math component (BZ #1152440) +- Fix tests' autoloader + * Wed Sep 17 2014 Remi Collet - 2.3.3-1 - Update to 2.3.3 -- cgit