From 1f9505262e3b34d9fed6976480cf433783c804c4 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 25 Sep 2014 08:24:41 +0200 Subject: php-doctrine-cache: sync with rawhide --- php-doctrine-cache.spec | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/php-doctrine-cache.spec b/php-doctrine-cache.spec index f27d4fb..bac9681 100644 --- a/php-doctrine-cache.spec +++ b/php-doctrine-cache.spec @@ -41,7 +41,7 @@ BuildArch: noarch # For tests BuildRequires: php(language) >= %{php_min_ver} BuildRequires: php-phpunit-PHPUnit >= %{phpunit_min_ver} -# For tests: phpcompatinfo (computed from v1.3.0) +# For tests: phpcompatinfo (computed from version 1.3.1) BuildRequires: php-date BuildRequires: php-hash BuildRequires: php-pcre @@ -50,7 +50,7 @@ BuildRequires: php-spl %endif Requires: php(language) >= %{php_min_ver} -# phpcompatinfo (computed from git commit v1.3.0) +# phpcompatinfo (computed from version 1.3.1) Requires: php-date Requires: php-hash Requires: php-pcre @@ -96,16 +96,15 @@ cp -rp lib/* %{buildroot}/%{_datadir}/php/ %check %if %{with_tests} -# Create tests' init -cat > tests/Doctrine/Tests/TestInit.php <<'TESTINIT' +# Create tests' bootstrap +cat > bootstrap.php <<'BOOTSTRAP' phpunit.xml @@ -116,7 +115,10 @@ rm -f \ tests/Doctrine/Tests/Common/Cache/MongoDBCacheTest.php \ tests/Doctrine/Tests/Common/Cache/RiakCacheTest.php -%{_bindir}/phpunit --include-path ./lib:./tests -d date.timezone="UTC" +%{_bindir}/phpunit \ + --bootstrap bootstrap.php \ + --include-path %{buildroot}/%{_datadir}/php:./tests \ + -d date.timezone="UTC" %else : Tests skipped %endif @@ -128,13 +130,20 @@ rm -rf %{buildroot} %files %defattr(-,root,root,-) -%doc LICENSE *.md composer.json +%{!?_licensedir:%global license %%doc} +%license LICENSE +%doc *.md composer.json %dir %{_datadir}/php/Doctrine %dir %{_datadir}/php/Doctrine/Common %{_datadir}/php/Doctrine/Common/Cache %changelog +* Wed Sep 24 2014 Shawn Iwinski - 1.3.1-1 +- Updated to 1.3.1 (BZ #1142986) +- Tests update +- %%license usage + * Tue Sep 23 2014 Remi Collet - 1.3.1-1 - update to 1.3.1 -- cgit