From c87bfa8bc1562b2f82a243fe935cb172c64c120b Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 6 Sep 2015 07:29:33 +0200 Subject: php-doctrine-doctrine-bundle: 1.5.2 (backport from Fedora) --- php-doctrine-doctrine-bundle.spec | 44 +++++++++++++++++++++++---------------- 1 file changed, 26 insertions(+), 18 deletions(-) diff --git a/php-doctrine-doctrine-bundle.spec b/php-doctrine-doctrine-bundle.spec index 5e5112e..359fb5b 100644 --- a/php-doctrine-doctrine-bundle.spec +++ b/php-doctrine-doctrine-bundle.spec @@ -12,8 +12,8 @@ %global github_owner doctrine %global github_name DoctrineBundle -%global github_version 1.5.0 -%global github_commit 0b9e27037c4fdbad515ee5ec89842e9091a6480f +%global github_version 1.5.2 +%global github_commit d63be7eb9a95d46720f7d6badac4e5bc2bcff2e3 %global composer_vendor doctrine %global composer_project doctrine-bundle @@ -32,13 +32,13 @@ # "jdorn/sql-formatter": "~1.1" %global sql_formatter_min_ver 1.1 %global sql_formatter_max_ver 2.0 -# "symfony/console": "~2.3" -# "symfony/doctrine-bridge": "~2.2" -# "symfony/framework-bundle": "~2.3" -# "symfony/validator": "~2.2" -# "symfony/yaml": "~2.2" +# "symfony/console": "~2.3|~3.0" +# "symfony/doctrine-bridge": "~2.2|~3.0" +# "symfony/framework-bundle": "~2.3|~3.0" +# "symfony/validator": "~2.2|~3.0" +# "symfony/yaml": "~2.2|~3.0" %global symfony_min_ver 2.3 -%global symfony_max_ver 3.0 +%global symfony_max_ver 4.0 # "twig/twig": "~1.10" %global twig_min_ver 1.10 %global twig_max_ver 2.0 @@ -50,7 +50,7 @@ Name: php-%{composer_vendor}-%{composer_project} Version: %{github_version} -Release: 3%{?dist} +Release: 1%{?dist} Summary: Symfony Bundle for Doctrine Group: Development/Libraries @@ -75,7 +75,7 @@ BuildRequires: php-composer(symfony/framework-bundle) >= %{symfony_min_ver BuildRequires: php-composer(symfony/validator) >= %{symfony_min_ver} BuildRequires: php-composer(symfony/yaml) >= %{symfony_min_ver} BuildRequires: php-composer(twig/twig) >= %{twig_min_ver} -## phpcompatinfo (computed from version 1.5.0) +## phpcompatinfo (computed from version 1.5.2) BuildRequires: php-dom BuildRequires: php-pcre BuildRequires: php-reflection @@ -98,7 +98,7 @@ Requires: php-composer(symfony/doctrine-bridge) >= %{symfony_min_ver Requires: php-composer(symfony/doctrine-bridge) < %{symfony_max_ver} Requires: php-composer(symfony/framework-bundle) >= %{symfony_min_ver} Requires: php-composer(symfony/framework-bundle) < %{symfony_max_ver} -# phpcompatinfo (computed from version 1.5.0) +# phpcompatinfo (computed from version 1.5.2) Requires: php-pcre Requires: php-reflection Requires: php-spl @@ -129,17 +129,16 @@ Optional: %setup -qn %{github_name}-%{github_commit} : Create autoloader -(cat <<'AUTOLOAD' +cat <<'AUTOLOAD' | tee autoload.php addPrefix('Doctrine\\Bundle\\DoctrineBundle\\', dirname(dirname(dirname(__DIR__)))); + +require_once '%{phpdir}/Doctrine/Bundle/DoctrineCacheBundle/autoload.php'; +require_once '%{phpdir}/jdorn-sql-formatter/autoload.php'; + +// Not all dependency autoloaders exist or are in every dist yet so fallback +// to using include path for dependencies for now $fedoraClassLoader->setUseIncludePath(true); return $fedoraClassLoader; AUTOLOAD -) | tee autoload.php %build @@ -170,7 +174,7 @@ cp -pr Command Controller DataCollector DependencyInjection Mapping Resources Te %check %if %{with_tests} -%{_bindir}/phpunit -v \ +%{_bindir}/phpunit --verbose \ --bootstrap %{buildroot}%{phpdir}/Doctrine/Bundle/DoctrineBundle/autoload.php %else : Tests skipped @@ -192,6 +196,10 @@ rm -rf %{buildroot} %changelog +* Sat Sep 05 2015 Shawn Iwinski - 1.5.2-1 +- Updated to 1.5.2 (RHBZ #1253092 / CVE-2015-5723) +- Updated autoloader to load dependencies after self registration + * Sat Jun 27 2015 Remi Collet - 1.5.0-3 - backport for remi repo -- cgit