From 285a92b9c11c3e2a01d09c87e67223b9dcc126f5 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 12 Feb 2020 11:12:42 +0100 Subject: duplicate v4 --- php-phpdocumentor-reflection-docblock5.spec | 251 ++++++++++++++++++++++++++++ 1 file changed, 251 insertions(+) create mode 100644 php-phpdocumentor-reflection-docblock5.spec (limited to 'php-phpdocumentor-reflection-docblock5.spec') diff --git a/php-phpdocumentor-reflection-docblock5.spec b/php-phpdocumentor-reflection-docblock5.spec new file mode 100644 index 0000000..da2728d --- /dev/null +++ b/php-phpdocumentor-reflection-docblock5.spec @@ -0,0 +1,251 @@ +# Fedora/remirepo spec file for php-phpdocumentor-reflection-docblock4 +# +# Copyright (c) 2017-2020 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 da3fd972d6bafd628114f7e7e036f45944b62e9c +%global gh_short %(c=%{gh_commit}; echo ${c:0:7}) +%global gh_owner phpDocumentor +%global gh_project ReflectionDocBlock +%global major 4 +%global with_tests %{?_without_tests:0}%{!?_without_tests:1} + +Name: php-phpdocumentor-reflection-docblock%{major} +Version: 4.3.4 +Release: 1%{?dist} +Summary: DocBlock parser + +License: MIT +URL: https://github.com/%{gh_owner}/%{gh_project} + +# GitHub export does not include tests. +# Run php-phpdocumentor-reflection-docblock-get-source.sh to create full source. +Source0: %{name}-%{version}-%{gh_commit}.tar.gz +Source1: %{name}-get-source.sh + +BuildArch: noarch +BuildRequires: php-fedora-autoloader-devel +%if %{with_tests} +BuildRequires: php(language) >= 7.0 +# remirepo:1 +%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 +BuildRequires: (php-composer(phpdocumentor/reflection-common) >= 1.0.0 with php-composer(phpdocumentor/reflection-common) < 3) +BuildRequires: (php-composer(phpdocumentor/type-resolver) >= 0.4.0 with php-composer(phpdocumentor/type-resolver) < 0.5) +BuildRequires: (php-composer(webmozart/assert) >= 1.0 with php-composer(webmozart/assert) < 2) +# remirepo:5 +%else +BuildRequires: php-phpdocumentor-reflection-common >= 1.0.0 +BuildRequires: php-phpdocumentor-type-resolver >= 0.4.0 +BuildRequires: php-webmozart-assert >= 1.0 +%endif +# From composer.json, require-dev +# "mockery/mockery": "^1.0", +# "phpdocumentor/type-resolver": "0.4.*", +# "phpunit/phpunit": "^6.4", +# "doctrine/instantiator": "^1.0.5" +# remirepo:1 +%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 +BuildRequires: (php-composer(mockery/mockery) >= 1.0 with php-composer(mockery/mockery) < 2) +# remirepo:3 +%else +BuildRequires: php-mockery >= 1.0 +%endif +BuildRequires: phpunit6 >= 6.4 +# From phpcompatinfo report for 4.3.2 +BuildRequires: php-reflection +BuildRequires: php-filter +BuildRequires: php-pcre +BuildRequires: php-spl +%endif + +# From composer.json, require +# "php": ">=7.0" +# "phpdocumentor/reflection-common": "^1.0.0 || ^2.0.0", +# "phpdocumentor/type-resolver": "~0.4 || ^1.0.0", +# "webmozart/assert": "^1.0" +Requires: php(language) >= 7.0 +# remirepo:1 +%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 +Requires: (php-composer(phpdocumentor/reflection-common) >= 1.0.0 with php-composer(phpdocumentor/reflection-common) < 3) +Requires: (php-composer(phpdocumentor/type-resolver) >= 0.4.0 with php-composer(phpdocumentor/type-resolver) < 2) +Requires: (php-composer(webmozart/assert) >= 1.0 with php-composer(webmozart/assert) < 2) +# remirepo:5 +%else +Requires: php-phpdocumentor-reflection-common >= 1.0.0 +Requires: php-phpdocumentor-type-resolver >= 0.4.0 +Requires: php-webmozart-assert >= 1.0 +%endif +# From phpcompatinfo report for 4.3.2 +Requires: php-reflection +Requires: php-filter +Requires: php-pcre +Requires: php-spl +# Autoloader +Requires: php-composer(fedora/autoloader) + +Provides: php-composer(phpdocumentor/reflection-docblock) = %{version} + + +%description +The ReflectionDocBlock component of phpDocumentor provides a DocBlock +parser that is fully compatible with the PHPDoc standard. + +With this component, a library can provide support for annotations via +DocBlocks or otherwise retrieve information that is embedded in a DocBlock. + +Autoloader: %{_datadir}/php/phpDocumentor/Reflection/DocBlock%{major}/autoload.php + + +%prep +%setup -q -n %{gh_project}-%{gh_commit} + +sed 's#vendor/mockery/mockery/library/Mockery#%{_datadir}/php/Mockery1#' phpunit.xml.dist \ + > phpunit.xml + +# single directory tree +mv src/*php src/DocBlock/ + + +%build +phpab \ + --template fedora \ + --output src/DocBlock/autoload.php \ + src/ + +cat < - 4.3.4-1 +- update to 4.3.4 + +* Fri Dec 20 2019 Remi Collet - 4.3.3-1 +- update to 4.3.3 + +* Fri Sep 13 2019 Remi Collet - 4.3.2-1 +- update to 4.3.2 +- allow reflection-common 2.0 +- allow type-resolver 1.0 + +* Thu May 2 2019 Remi Collet - 4.3.1-1 +- update to 4.3.1 + +* Wed Jan 31 2018 Remi Collet - 4.3.0-1 +- Update to 4.3.0 + +* Mon Jan 22 2018 Remi Collet - 4.2.0-1 +- Update to 4.2.0 +- rename to php-phpdocumentor-reflection-docblock4 +- move to /usr/share/php/phpDocumentor/Reflection/DocBlock4 +- raise dependency on PHP 7.0 +- raise dependency on phpdocumentor/type-resolver 0.4.0 +- use phpunit6 and php-mockery for test suite + +* Tue Aug 8 2017 Remi Collet - 3.2.2-1 +- Update to 3.2.2 + +* Mon Aug 7 2017 Remi Collet - 3.2.1-2 +- add patch to fix BC break, thanks to Koschei, from + https://github.com/phpDocumentor/ReflectionDocBlock/pull/113 + +* Sat Aug 05 2017 Shawn Iwinski - 3.2.1-1 +- Update to 3.2.1 (RHBZ #1471379) + +* Tue Jul 18 2017 Shawn Iwinski - 3.2.0-1 +- Update to 3.2.0 (RHBZ #1471379) + +* Fri May 5 2017 Shawn Iwinski , Remi Collet - 3.1.1-1 +- update to 3.1.1 +- raise dependency on PHP 5.5 +- add dependency on phpdocumentor/reflection-common +- add dependency on phpdocumentor/type-resolver +- add dependency on webmozart/assert +- switch to fedora/autoloader + +* Sat Feb 11 2017 Fedora Release Engineering - 2.0.4-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Thu Feb 04 2016 Fedora Release Engineering - 2.0.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Thu Jun 18 2015 Fedora Release Engineering - 2.0.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Wed Feb 11 2015 Remi Collet - 2.0.4-1 +- update to 2.0.4 +- LICENSE is in upstream archive + +* Tue Feb 3 2015 Remi Collet - 2.0.3-2 +- add LICENSE from upstream repository + +* Fri Dec 19 2014 Remi Collet - 2.0.3-1 +- initial package +- open https://github.com/phpDocumentor/ReflectionDocBlock/issues/40 + for missing LICENSE file -- cgit