diff options
-rw-r--r-- | php-phpdocumentor-reflection-docblock2.spec | 25 |
1 files changed, 15 insertions, 10 deletions
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 <remi@remirepo.net> - 2.0.5-1 +- Update to 2.0.5 + * Thu Apr 13 2017 Shawn Iwinski <shawn@iwin.ski> - 2.0.4-5 - Package rename (php-phpdocumentor-reflection-docblock => php-phpdocumentor-reflection-docblock2) |