From d50da2890ae3647550e05a2e0449d5a83caedd39 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 6 Sep 2015 07:24:49 +0200 Subject: php-doctrine-annotations: 1.2.7 (backport from Fedora) --- php-doctrine-annotations.spec | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/php-doctrine-annotations.spec b/php-doctrine-annotations.spec index 39b95cb..c255ca3 100644 --- a/php-doctrine-annotations.spec +++ b/php-doctrine-annotations.spec @@ -12,8 +12,8 @@ %global github_owner doctrine %global github_name annotations -%global github_version 1.2.6 -%global github_commit f4a91702ca3cd2e568c3736aa031ed00c3752af4 +%global github_version 1.2.7 +%global github_commit f25c8aab83e0c3e976fd7d19875f198ccf2f7535 %global composer_vendor doctrine %global composer_project annotations @@ -36,14 +36,15 @@ Name: php-%{composer_vendor}-%{composer_project} Version: %{github_version} -Release: 2%{?github_release}%{?dist} +Release: 1%{?github_release}%{?dist} Summary: PHP docblock annotations parser library Group: Development/Libraries License: MIT URL: https://github.com/%{github_owner}/%{github_name} -# Run "php-doctrine-annotations-get-source.sh" to create source +# GitHub export does not include tests. +# Run php-doctrine-annotations-get-source.sh to create full source. Source0: %{name}-%{version}-%{github_commit}.tar.gz Source1: %{name}-get-source.sh @@ -57,7 +58,7 @@ BuildRequires: php(language) >= %{php_min_ver} BuildRequires: php-composer(doctrine/cache) >= %{cache_min_ver} #BuildRequires: php-composer(doctrine/lexer) >= %%{lexer_min_ver} BuildRequires: php-doctrine-lexer >= %{lexer_min_ver} -## phpcompatinfo (computed from version 1.2.6) +## phpcompatinfo (computed from version 1.2.7) BuildRequires: php-ctype BuildRequires: php-date BuildRequires: php-json @@ -74,7 +75,7 @@ Requires: php(language) >= %{php_min_ver} #Requires: php-composer(doctrine/lexer) >= %%{lexer_min_ver} Requires: php-doctrine-lexer >= %{lexer_min_ver} Requires: php-composer(doctrine/lexer) < %{lexer_max_ver} -# phpcompatinfo (computed from version 1.2.6) +# phpcompatinfo (computed from version 1.2.7) Requires: php-ctype Requires: php-date Requires: php-json @@ -99,7 +100,7 @@ Conflicts: php-pear(pear.doctrine-project.org/DoctrineCommon) < 2.4 %setup -qn %{github_name}-%{github_commit} : Create autoloader -(cat <<'AUTOLOAD' +cat <<'AUTOLOAD' | tee lib/Doctrine/Common/Annotations/autoload.php addPrefix('Doctrine\\Common\\Annotations\\', dirname(dirname(dirname(__DIR__)))); +require_once '%{phpdir}/Doctrine/Common/Lexer/autoload.php'; + return $fedoraClassLoader; AUTOLOAD -) | tee lib/Doctrine/Common/Annotations/autoload.php %build @@ -139,21 +139,20 @@ cp -rp lib/* %{buildroot}%{phpdir}/ %if %{with_tests} : Modify tests init sed "s#require.*autoload.*#require_once '%{buildroot}%{phpdir}/Doctrine/Common/Annotations/autoload.php';#" \ - -i tests/Doctrine/Tests/TestInit.php + -i tests/Doctrine/Tests/TestInit.php : Create tests bootstrap -(cat <<'BOOTSTRAP' +cat <<'BOOTSTRAP' | tee bootstrap.php - 1.2.7-1 +- Updated to 1.2.7 (RHBZ #1258669 / CVE-2015-5723) +- Updated autoloader to load dependencies after self registration + * Sat Jun 27 2015 Shawn Iwinski - 1.2.6-2 - Updated autoloader with trailing separator -- cgit