diff options
author | Remi Collet <fedora@famillecollet.com> | 2014-09-25 08:24:41 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2014-09-25 08:24:41 +0200 |
commit | 1f9505262e3b34d9fed6976480cf433783c804c4 (patch) | |
tree | e6464dcf39602a55f0abed424abec95d6ed19f24 | |
parent | c69a86df301981f39a4b21ca0b6b54b0a2f647ad (diff) |
php-doctrine-cache: sync with rawhide
-rw-r--r-- | php-doctrine-cache.spec | 25 |
1 files 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' <?php -namespace Doctrine\Tests; spl_autoload_register(function ($class) { $src = str_replace('\\', '/', str_replace('_', '/', $class)).'.php'; @include_once $src; }); -TESTINIT +BOOTSTRAP # Create PHPUnit config w/ colors turned off sed 's/colors="true"/colors="false"/' phpunit.xml.dist > 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 <shawn.iwinski@gmail.com> - 1.3.1-1 +- Updated to 1.3.1 (BZ #1142986) +- Tests update +- %%license usage + * Tue Sep 23 2014 Remi Collet <remi@fedoraproject.org> - 1.3.1-1 - update to 1.3.1 |