From 16d244a9e9ee4f6d6eefa0dc55d233555b948501 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sat, 18 Nov 2017 07:29:12 +0100 Subject: v2.0.5 --- php-phpdocumentor-reflection-docblock2.spec | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) (limited to 'php-phpdocumentor-reflection-docblock2.spec') diff --git a/php-phpdocumentor-reflection-docblock2.spec b/php-phpdocumentor-reflection-docblock2.spec index 757b29c..549af74 100644 --- a/php-phpdocumentor-reflection-docblock2.spec +++ b/php-phpdocumentor-reflection-docblock2.spec @@ -2,28 +2,29 @@ # # Fedora spec file for php-phpdocumentor-reflection-docblock2 # -# Copyright (c) 2014-2015 Remi Collet -# 2017 Remi Collet, Shawn Iwinski +# Copyright (c) 2017 Remi Collet, Shawn Iwinski +# 2014-2015 Remi Collet +# # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries # -%global gh_commit d68dbdc53dc358a816f00b300704702b2eaff7b8 +%global gh_commit e6a969a640b00d8daa3c66518b0405fb41ae0c4b %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner phpDocumentor %global gh_project ReflectionDocBlock %global with_tests %{?_without_tests:0}%{!?_without_tests:1} Name: php-phpdocumentor-reflection-docblock2 -Version: 2.0.4 -Release: 5%{?dist} +Version: 2.0.5 +Release: 1%{?dist} Summary: DocBlock parser (Version 2) Group: Development/Libraries License: MIT URL: https://github.com/%{gh_owner}/%{gh_project} -Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}.tar.gz +Source0: %{url}/archive/%{gh_commit}/%{name}-%{version}-%{gh_short}.tar.gz BuildArch: noarch BuildRequires: php(language) >= 5.3.3 @@ -84,14 +85,15 @@ cp -pr src/* %{buildroot}%{_datadir}/php %check %if %{with_tests} +mkdir vendor +touch vendor/autoload.php + : Upstream tests RETURN_CODE=0 -for PHP_EXEC in %{_bindir}/php %{?rhel:php54 php55} php56 php70 php71; do +for PHP_EXEC in %{_bindir}/php %{?rhel:php54 php55} php56 php70 php71 php72; do if [ "%{_bindir}/php" == "$PHP_EXEC" ] || which $PHP_EXEC; then $PHP_EXEC -d auto_prepend_file=%{buildroot}%{_datadir}/php/phpDocumentor/Reflection/DocBlock2/autoload.php \ - %{_bindir}/phpunit --verbose \ - --bootstrap %{buildroot}%{_datadir}/php/phpDocumentor/Reflection/DocBlock2/autoload.php \ - || RETURN_CODE=1 + %{_bindir}/phpunit --verbose || RETURN_CODE=1 fi done exit $RETURN_CODE @@ -111,6 +113,9 @@ exit $RETURN_CODE %changelog +* Sat Nov 18 2017 Remi Collet - 2.0.5-1 +- Update to 2.0.5 + * Thu Apr 13 2017 Shawn Iwinski - 2.0.4-5 - Package rename (php-phpdocumentor-reflection-docblock => php-phpdocumentor-reflection-docblock2) -- cgit