From 32a4c6ef486a51b59358396659e838c04bae771b Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 16 Jul 2014 07:50:37 +0200 Subject: php-doctrine-annotations: 1.2.0 (backport) --- php-doctrine-annotations.spec | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) (limited to 'php-doctrine-annotations.spec') diff --git a/php-doctrine-annotations.spec b/php-doctrine-annotations.spec index c850400..292409c 100644 --- a/php-doctrine-annotations.spec +++ b/php-doctrine-annotations.spec @@ -11,10 +11,8 @@ %global github_owner doctrine %global github_name annotations -%global github_version 1.1.2 -%global github_commit a11349d39d85bef75a71bd69bd604ac4fb993f03 -# Additional commits after v1.1.2 tag -%global github_release .20131220git%(c=%{github_commit}; echo ${c:0:7}) +%global github_version 1.2.0 +%global github_commit d9b1a37e9351ddde1f19f09a02e3d6ee92e82efd %global composer_vendor doctrine %global composer_project annotations @@ -33,7 +31,7 @@ Name: php-%{composer_vendor}-%{composer_project} Version: %{github_version} -Release: 5%{?github_release}%{?dist} +Release: 1%{?github_release}%{?dist} Summary: PHP docblock annotations parser library Group: Development/Libraries @@ -51,7 +49,7 @@ BuildRequires: php-composer(doctrine/cache) < %{cache_max_ver} BuildRequires: php-composer(doctrine/lexer) >= %{lexer_min_ver} BuildRequires: php-composer(doctrine/lexer) < %{lexer_max_ver} BuildRequires: php-phpunit-PHPUnit -# For tests: phpcompatinfo (computed from v1.1.2 git commit a11349d39d85bef75a71bd69bd604ac4fb993f03) +# For tests: phpcompatinfo (computed from version 1.2.0) BuildRequires: php-ctype BuildRequires: php-date BuildRequires: php-json @@ -64,7 +62,7 @@ BuildRequires: php-tokenizer Requires: php(language) >= %{php_min_ver} Requires: php-composer(doctrine/lexer) >= %{lexer_min_ver} Requires: php-composer(doctrine/lexer) < %{lexer_max_ver} -# phpcompatinfo (computed from v1.1.2 git commit a11349d39d85bef75a71bd69bd604ac4fb993f03) +# phpcompatinfo (computed from version 1.2.0) Requires: php-ctype Requires: php-date Requires: php-json @@ -99,25 +97,21 @@ cp -rp lib/* %{buildroot}/%{_datadir}/php/ %check %if %{with_tests} -# Create tests' init -cat > tests/Doctrine/Tests/TestInit.php <<'TESTINIT' +# Create autoloader +mkdir vendor +cat > vendor/autoload.php <<'AUTOLOAD' phpunit.xml -%{_bindir}/phpunit --include-path ./lib:./tests -d date.timezone="UTC" +%{_bindir}/phpunit --include-path ./lib -d date.timezone="UTC" %else : Tests skipped %endif @@ -134,6 +128,9 @@ rm -rf %{buildroot} %changelog +* Tue Jul 15 2014 Shawn Iwinski - 1.2.0-1 +- Updated to 1.2.0 (BZ #1116887) + * Fri Jun 20 2014 Shawn Iwinski - 1.1.2-5.20131220gita11349d - Added php-composer(%%{composer_vendor}/%%{composer_project}) virtual provide - Added option to build without tests ("--without tests") -- cgit