summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn Iwinski <shawn@iwin.ski>2017-04-08 16:42:15 -0400
committerRemi Collet <remi@remirepo.net>2017-04-10 09:12:10 +0200
commit3155dba92d369267d117175e8e938d4e0f157d83 (patch)
tree385ba13429c4580b5aa266e449f5f5446bffc61d
parent39b8ae37e11aae499bede52f9296d8497db74f8f (diff)
Update to 2.4.8 (RHBZ #1433641)
- Allow Symfony 3 - Prepare for php-phpdocumentor-reflection-docblock => php-phpdocumentor-reflection-docblock2 dependency rename (cherry picked from commit b7d0f8fafc01ae2538b74ab1463ef66c200f361e)
-rw-r--r--.gitignore6
-rw-r--r--php-consolidation-annotated-command.spec113
2 files changed, 66 insertions, 53 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..53ad5e3
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,6 @@
+/php-consolidation-annotated-command-1.0.1-ed279df30b9386fd8e523003dc679421a87c52e0.tar.gz
+/php-consolidation-annotated-command-1.2.1-296b4f507b1e184a28c9969bc7ae779f689db5ee.tar.gz
+/php-consolidation-annotated-command-2.0.1-2a6ef0b39ed904dabefd796eeaf5f8feeaa881c4.tar.gz
+/php-consolidation-annotated-command-2.2.2-1f1d92807f72901e049e9df048b412c3bc3652c9.tar.gz
+/php-consolidation-annotated-command-2.4.4-ccff73e46582a885ce4bb2c57bbd8ba4415dbd24.tar.gz
+/php-consolidation-annotated-command-2.4.8-6672ea38212f8bffb71fec7eadc8b3372154b17e.tar.gz
diff --git a/php-consolidation-annotated-command.spec b/php-consolidation-annotated-command.spec
index d89c114..7674921 100644
--- a/php-consolidation-annotated-command.spec
+++ b/php-consolidation-annotated-command.spec
@@ -12,8 +12,8 @@
%global github_owner consolidation-org
%global github_name annotated-command
-%global github_version 2.4.5
-%global github_commit 7c97c401ea81549779ce96d62f00d230ed5ff1d8
+%global github_version 2.4.8
+%global github_commit 6672ea38212f8bffb71fec7eadc8b3372154b17e
%global composer_vendor consolidation
%global composer_project annotated-command
@@ -23,20 +23,18 @@
# "consolidation/output-formatters": "^3.1.5"
%global consolidation_output_formatters_min_ver 3.1.5
%global consolidation_output_formatters_max_ver 4
-# "psr/log": "~1"
+# "psr/log": "^1"
# NOTE: Min version not 1.0 because autoloader required
%global psr_log_min_ver 1.0.1
%global psr_log_max_ver 2.0
# "phpdocumentor/reflection-docblock": "^2.0|^3.0.2"
-# NOTE: Min version not 4.0 because v3 not packaged yet
%global phpdocumentor_reflection_docblock_min_ver 2.0
-%global phpdocumentor_reflection_docblock_max_ver 3.0
-# "symfony/console": "^2.8|~3.0"
-# "symfony/event-dispatcher": "^2.5|~3.0"
-# "symfony/finder": "^2.5|~3.0"
-# NOTE: Min version not 4.0 because v3 not packaged yet
+%global phpdocumentor_reflection_docblock_max_ver 4.0
+# "symfony/console": "^2.8|~3"
+# "symfony/event-dispatcher": "^2.5|^3"
+# "symfony/finder": "^2.5|^3"
%global symfony_min_ver 2.8
-%global symfony_max_ver 3.0
+%global symfony_max_ver 4.0
# Build using "--without tests" to disable tests
%global with_tests 0%{!?_without_tests:1}
@@ -53,26 +51,25 @@ License: MIT
URL: https://github.com/%{github_owner}/%{github_name}
Source0: %{url}/archive/%{github_commit}/%{name}-%{github_version}-%{github_commit}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
# Tests
%if %{with_tests}
## composer.json
-BuildRequires: php(language) >= %{php_min_ver}
-BuildRequires: php-composer(consolidation/output-formatters) < %{consolidation_output_formatters_max_ver}
-BuildRequires: php-composer(consolidation/output-formatters) >= %{consolidation_output_formatters_min_ver}
+BuildRequires: php(language) >= %{php_min_ver}
+BuildRequires: php-composer(consolidation/output-formatters) < %{consolidation_output_formatters_max_ver}
+BuildRequires: php-composer(consolidation/output-formatters) >= %{consolidation_output_formatters_min_ver}
BuildRequires: php-composer(phpdocumentor/reflection-docblock) < %{phpdocumentor_reflection_docblock_max_ver}
BuildRequires: php-composer(phpdocumentor/reflection-docblock) >= %{phpdocumentor_reflection_docblock_min_ver}
BuildRequires: php-composer(phpunit/phpunit)
-BuildRequires: php-composer(psr/log) < %{psr_log_max_ver}
-BuildRequires: php-composer(psr/log) >= %{psr_log_min_ver}
-BuildRequires: php-composer(symfony/console) < %{symfony_max_ver}
-BuildRequires: php-composer(symfony/console) >= %{symfony_min_ver}
-BuildRequires: php-composer(symfony/event-dispatcher) < %{symfony_max_ver}
-BuildRequires: php-composer(symfony/event-dispatcher) >= %{symfony_min_ver}
-BuildRequires: php-composer(symfony/finder) < %{symfony_max_ver}
-BuildRequires: php-composer(symfony/finder) >= %{symfony_min_ver}
-## phpcompatinfo (computed from version 2.4.4)
+BuildRequires: php-composer(psr/log) < %{psr_log_max_ver}
+BuildRequires: php-composer(psr/log) >= %{psr_log_min_ver}
+BuildRequires: php-composer(symfony/console) < %{symfony_max_ver}
+BuildRequires: php-composer(symfony/console) >= %{symfony_min_ver}
+BuildRequires: php-composer(symfony/event-dispatcher) < %{symfony_max_ver}
+BuildRequires: php-composer(symfony/event-dispatcher) >= %{symfony_min_ver}
+BuildRequires: php-composer(symfony/finder) < %{symfony_max_ver}
+BuildRequires: php-composer(symfony/finder) >= %{symfony_min_ver}
+## phpcompatinfo (computed from version 2.4.8)
BuildRequires: php-dom
BuildRequires: php-pcre
BuildRequires: php-reflection
@@ -82,20 +79,20 @@ BuildRequires: php-composer(fedora/autoloader)
%endif
# composer.json
-Requires: php(language) >= %{php_min_ver}
-Requires: php-composer(consolidation/output-formatters) < %{consolidation_output_formatters_max_ver}
-Requires: php-composer(consolidation/output-formatters) >= %{consolidation_output_formatters_min_ver}
+Requires: php(language) >= %{php_min_ver}
+Requires: php-composer(consolidation/output-formatters) < %{consolidation_output_formatters_max_ver}
+Requires: php-composer(consolidation/output-formatters) >= %{consolidation_output_formatters_min_ver}
Requires: php-composer(phpdocumentor/reflection-docblock) < %{phpdocumentor_reflection_docblock_max_ver}
Requires: php-composer(phpdocumentor/reflection-docblock) >= %{phpdocumentor_reflection_docblock_min_ver}
-Requires: php-composer(psr/log) < %{psr_log_max_ver}
-Requires: php-composer(psr/log) >= %{psr_log_min_ver}
-Requires: php-composer(symfony/console) < %{symfony_max_ver}
-Requires: php-composer(symfony/console) >= %{symfony_min_ver}
-Requires: php-composer(symfony/event-dispatcher) < %{symfony_max_ver}
-Requires: php-composer(symfony/event-dispatcher) >= %{symfony_min_ver}
-Requires: php-composer(symfony/finder) < %{symfony_max_ver}
-Requires: php-composer(symfony/finder) >= %{symfony_min_ver}
-# phpcompatinfo (computed from version 2.4.4)
+Requires: php-composer(psr/log) < %{psr_log_max_ver}
+Requires: php-composer(psr/log) >= %{psr_log_min_ver}
+Requires: php-composer(symfony/console) < %{symfony_max_ver}
+Requires: php-composer(symfony/console) >= %{symfony_min_ver}
+Requires: php-composer(symfony/event-dispatcher) < %{symfony_max_ver}
+Requires: php-composer(symfony/event-dispatcher) >= %{symfony_min_ver}
+Requires: php-composer(symfony/finder) < %{symfony_max_ver}
+Requires: php-composer(symfony/finder) >= %{symfony_min_ver}
+# phpcompatinfo (computed from version 2.4.8)
Requires: php-dom
Requires: php-pcre
Requires: php-reflection
@@ -130,18 +127,28 @@ require_once '%{phpdir}/Fedora/Autoloader/autoload.php';
\Fedora\Autoloader\Dependencies::required([
'%{phpdir}/Consolidation/OutputFormatters/autoload.php',
- '%{phpdir}/phpDocumentor/Reflection/DocBlock/autoload.php',
+ [
+ '%{phpdir}/phpDocumentor/Reflection/DocBlock/autoload.php',
+ '%{phpdir}/phpDocumentor/Reflection/DocBlock2/autoload.php',
+ ],
'%{phpdir}/Psr/Log/autoload.php',
- '%{phpdir}/Symfony/Component/Console/autoload.php',
- '%{phpdir}/Symfony/Component/EventDispatcher/autoload.php',
- '%{phpdir}/Symfony/Component/Finder/autoload.php',
+ [
+ '%{phpdir}/Symfony3/Component/Console/autoload.php',
+ '%{phpdir}/Symfony/Component/Console/autoload.php',
+ ],
+ [
+ '%{phpdir}/Symfony3/Component/EventDispatcher/autoload.php',
+ '%{phpdir}/Symfony/Component/EventDispatcher/autoload.php',
+ ],
+ [
+ '%{phpdir}/Symfony3/Component/Finder/autoload.php',
+ '%{phpdir}/Symfony/Component/Finder/autoload.php',
+ ]
]);
AUTOLOAD
%install
-rm -rf %{buildroot}
-
mkdir -p %{buildroot}%{phpdir}/Consolidation/AnnotatedCommand
cp -rp src/* %{buildroot}%{phpdir}/Consolidation/AnnotatedCommand/
@@ -160,26 +167,20 @@ sed 's/function testInteractAndValidate/function SKIP_testInteractAndValidate/'
-i tests/testAnnotatedCommandFactory.php
: Upstream tests
-%{_bindir}/phpunit --verbose --bootstrap bootstrap.php
-
-: Upstream tests with SCLs if available
-SCL_RETURN_CODE=0
-for SCL in %{?rhel:php55} php56 php70 php71; do
- if which $SCL; then
- $SCL %{_bindir}/phpunit --bootstrap bootstrap.php || SCL_RETURN_CODE=1
+RETURN_CODE=0
+for PHP_EXEC in php %{?rhel:php55} php56 php70 php71; do
+ if [ "php" == "$PHP_EXEC" ] || which $PHP_EXEC; then
+ $PHP_EXEC %{_bindir}/phpunit --verbose --bootstrap bootstrap.php \
+ || RETURN_CODE=1
fi
done
+exit $RETURN_CODE
%else
: Tests skipped
%endif
-%clean
-rm -rf %{buildroot}
-
-
%files
-%defattr(-,root,root,-)
%{!?_licensedir:%global license %%doc}
%license LICENSE
%doc *.md
@@ -189,6 +190,12 @@ rm -rf %{buildroot}
%changelog
+* Sat Apr 08 2017 Shawn Iwinski <shawn@iwin.ski> - 2.4.8-1
+- Update to 2.4.8 (RHBZ #1433641)
+- Allow Symfony 3
+- Prepare for php-phpdocumentor-reflection-docblock =>
+ php-phpdocumentor-reflection-docblock2 dependency rename
+
* Wed Mar 1 2017 Remi Collet <remi@remirepo.net> - 2.4.5-1
- update to 2.4.5