summaryrefslogtreecommitdiffstats
path: root/php-doctrine-doctrine-cache-bundle.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2018-11-08 13:53:45 +0100
committerRemi Collet <remi@remirepo.net>2018-11-08 13:53:45 +0100
commit86c7f151c70a6e80ab92dafab7572060d1e2fa4c (patch)
tree7f52af6bbcae78550918875374696f3fff172073 /php-doctrine-doctrine-cache-bundle.spec
parent8daa0b6d3c322e4b997593f882803f0cb39853a1 (diff)
update to 1.3.4 (no change)
sources from git snapshot use phpunit7
Diffstat (limited to 'php-doctrine-doctrine-cache-bundle.spec')
-rw-r--r--php-doctrine-doctrine-cache-bundle.spec31
1 files changed, 20 insertions, 11 deletions
diff --git a/php-doctrine-doctrine-cache-bundle.spec b/php-doctrine-doctrine-cache-bundle.spec
index 936da3d..441484b 100644
--- a/php-doctrine-doctrine-cache-bundle.spec
+++ b/php-doctrine-doctrine-cache-bundle.spec
@@ -12,8 +12,9 @@
%global github_owner doctrine
%global github_name DoctrineCacheBundle
-%global github_version 1.3.3
-%global github_commit 4c8e363f96427924e7e519c5b5119b4f54512697
+%global github_version 1.3.4
+%global github_commit 8b0d579ddef3fa3bc694bba49fba844668b4d382
+%global github_short %(c=%{github_commit}; echo ${c:0:7})
%global composer_vendor doctrine
%global composer_project doctrine-cache-bundle
@@ -49,17 +50,16 @@ Version: %{github_version}
Release: 1%{?dist}
Summary: Symfony2 Bundle for Doctrine Cache
-Group: Development/Libraries
License: MIT
URL: https://github.com/%{github_owner}/%{github_name}
-Source0: %{url}/archive/%{github_commit}/%{name}-%{github_version}-%{github_commit}.tar.gz
+Source0: %{name}-%{github_version}-%{github_short}.tgz
+Source1: makesrc.sh
BuildArch: noarch
# Tests
%if %{with_tests}
## composer.json
BuildRequires: php(language) >= %{php_min_ver}
-BuildRequires: php-composer(phpunit/phpunit)
%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
BuildRequires: (php-composer(doctrine/cache) >= %{cache_min_ver} with php-composer(doctrine/cache) < %{cache_max_ver})
BuildRequires: (php-composer(doctrine/inflector) >= %{inflector_min_ver} with php-composer(doctrine/inflector) < %{inflector_max_ver})
@@ -70,6 +70,8 @@ BuildRequires: php-symfony4-finder
BuildRequires: php-symfony4-framework-bundle
BuildRequires: php-symfony4-validator
BuildRequires: php-symfony4-yaml
+BuildRequires: phpunit7
+%global phpunit %{_bindir}/phpunit7
%else
BuildRequires: php-composer(doctrine/cache) < %{cache_max_ver}
BuildRequires: php-composer(doctrine/cache) >= %{cache_min_ver}
@@ -81,6 +83,8 @@ BuildRequires: php-symfony-finder
BuildRequires: php-symfony-framework-bundle
BuildRequires: php-symfony-validator
BuildRequires: php-symfony-yaml
+BuildRequires: php-composer(phpunit/phpunit)
+%global phpunit %{_bindir}/phpunit
%endif
%if 0
BuildRequires: php-composer(symfony/security) < %{symfony_max_ver}
@@ -89,7 +93,7 @@ BuildRequires: php-composer(symfony/security) >= %{symfony_min_ver}
BuildRequires: php-composer(symfony/security-acl) < %{secacl_max_ver}
BuildRequires: php-composer(symfony/security-acl) >= %{secacl_min_ver}
%endif
-## phpcompatinfo (computed from version 1.3.0)
+## phpcompatinfo (computed from version 1.3.4)
BuildRequires: php-hash
BuildRequires: php-reflection
BuildRequires: php-spl
@@ -111,7 +115,7 @@ Requires: php-composer(doctrine/inflector) >= %{inflector_min_ver}
Requires: php-composer(symfony/doctrine-bridge) < %{symfony_max_ver}
Requires: php-composer(symfony/doctrine-bridge) >= %{symfony_min_ver}
%endif
-# phpcompatinfo (computed from version 1.3.0)
+# phpcompatinfo (computed from version 1.3.4)
Requires: php-hash
Requires: php-reflection
Requires: php-spl
@@ -225,10 +229,10 @@ popd
: Upstream tests
RETURN_CODE=0
-PHPUNIT=$(which phpunit)
-for PHP_EXEC in "" %{?rhel:php54 php55 php56 php70} php71 php72 php73; do
- if [ -z "$PHP_EXEC" ] || which $PHP_EXEC; then
- $PHP_EXEC $PHPUNIT --verbose --bootstrap bootstrap.php \
+for cmdarg in "php %{phpunit}" php71 php72 php73; do
+ if which $cmdarg; then
+ set $cmdarg
+ $1 ${2:-%{_bindir}/phpunit7} --verbose --bootstrap bootstrap.php \
|| RETURN_CODE=1
fi
done
@@ -249,6 +253,11 @@ exit $RETURN_CODE
%changelog
+* Thu Nov 8 2018 Remi Collet <remi@remirepo.net> - 1.3.4-1
+- update to 1.3.4 (no change)
+- sources from git snapshot
+- use phpunit7
+
* Wed Oct 17 2018 Remi Collet <remi@remirepo.net> - 1.3.3-1
- update to 1.3.3
- switch to Symfony 4 for test suite