update to 0.4.0
- raise dependency on php ~7.0 - raise dependency on nikic/php-parser ~2.0
This commit is contained in:
parent
6358333629
commit
de132667e2
3 changed files with 20 additions and 13 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -2,3 +2,4 @@ clog
|
|||
/php-ocramius-code-generator-utils-0.3.0-5d9c4e3ae36010fef22b3393b3734c84106d1d5c.tar.gz
|
||||
/php-ocramius-code-generator-utils-0.3.1-d27db31c975001710beb4025768dcbd39e286a56.tar.gz
|
||||
/php-ocramius-code-generator-utils-0.3.2-0e2f6c593fc82801cbb5c8fa90559d923bd1445c.tar.gz
|
||||
/php-ocramius-code-generator-utils-0.4.0-7dc0be1dec3376d95ba094688f0d84f7cf95f300.tar.gz
|
||||
|
|
|
|||
|
|
@ -11,17 +11,17 @@
|
|||
|
||||
%global github_owner Ocramius
|
||||
%global github_name CodeGenerationUtils
|
||||
%global github_version 0.3.2
|
||||
%global github_commit 0e2f6c593fc82801cbb5c8fa90559d923bd1445c
|
||||
%global github_version 0.4.0
|
||||
%global github_commit 7dc0be1dec3376d95ba094688f0d84f7cf95f300
|
||||
|
||||
%global composer_vendor ocramius
|
||||
%global composer_project code-generator-utils
|
||||
|
||||
# "php": ">=5.3.3"
|
||||
%global php_min_ver 5.3.3
|
||||
# "nikic/php-parser": "~1.3"
|
||||
%global php_parser_min_ver 1.3
|
||||
%global php_parser_max_ver 2
|
||||
# "php": "~7.0"
|
||||
%global php_min_ver 7.0
|
||||
# "nikic/php-parser": "~2.0"
|
||||
%global php_parser_min_ver 2.0
|
||||
%global php_parser_max_ver 3
|
||||
|
||||
# Build using "--without tests" to disable tests
|
||||
%global with_tests 0%{!?_without_tests:1}
|
||||
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
Name: php-%{composer_vendor}-%{composer_project}
|
||||
Version: %{github_version}
|
||||
Release: 4%{?github_release}%{?dist}
|
||||
Release: 1%{?github_release}%{?dist}
|
||||
Summary: A set of code generator utilities built on top of PHP-Parsers
|
||||
|
||||
Group: Development/Libraries
|
||||
|
|
@ -44,8 +44,8 @@ BuildArch: noarch
|
|||
BuildRequires: php(language) >= %{php_min_ver}
|
||||
BuildRequires: php-composer(nikic/php-parser) >= %{php_parser_min_ver}
|
||||
BuildRequires: php-composer(nikic/php-parser) < %{php_parser_max_ver}
|
||||
BuildRequires: php-composer(phpunit/phpunit)
|
||||
# phpcompatinfo (computed from version 0.3.0)
|
||||
BuildRequires: php-composer(phpunit/phpunit) >= 5.0
|
||||
# phpcompatinfo (computed from version 0.4.0)
|
||||
BuildRequires: php-pcre
|
||||
BuildRequires: php-reflection
|
||||
BuildRequires: php-spl
|
||||
|
|
@ -57,7 +57,7 @@ BuildRequires: php-composer(symfony/class-loader)
|
|||
Requires: php(language) >= %{php_min_ver}
|
||||
Requires: php-composer(nikic/php-parser) >= %{php_parser_min_ver}
|
||||
Requires: php-composer(nikic/php-parser) < %{php_parser_max_ver}
|
||||
# phpcompatinfo (computed from version 0.3.0)
|
||||
# phpcompatinfo (computed from version 0.4.0)
|
||||
Requires: php-pcre
|
||||
Requires: php-spl
|
||||
# Autoloader
|
||||
|
|
@ -100,7 +100,7 @@ if (!isset($fedoraClassLoader) || !($fedoraClassLoader instanceof \Symfony\Compo
|
|||
$fedoraClassLoader->addPrefix('CodeGenerationUtils\\', dirname(__DIR__));
|
||||
|
||||
// Required dependency
|
||||
require_once '%{phpdir}/PhpParser/autoload.php';
|
||||
require_once '%{phpdir}/PhpParser2/autoload.php';
|
||||
|
||||
return $fedoraClassLoader;
|
||||
AUTOLOAD
|
||||
|
|
@ -118,6 +118,7 @@ cat <<'BOOTSTRAP' | tee bootstrap.php
|
|||
<?php
|
||||
$fedoraClassLoader = require '%{buildroot}%{phpdir}/CodeGenerationUtils/autoload.php';
|
||||
$fedoraClassLoader->addPrefix('CodeGenerationUtilsTest\\', __DIR__.'/tests');
|
||||
$fedoraClassLoader->addPrefix('CodeGenerationUtilsTestAsset\\', __DIR__.'/tests');
|
||||
BOOTSTRAP
|
||||
|
||||
%{_bindir}/phpunit --verbose --bootstrap bootstrap.php
|
||||
|
|
@ -135,6 +136,11 @@ BOOTSTRAP
|
|||
|
||||
|
||||
%changelog
|
||||
* Wed Nov 30 2016 Remi Collet <remi@fedoraproject.org> - 0.4.0-1
|
||||
- update to 0.4.0
|
||||
- raise dependency on php ~7.0
|
||||
- raise dependency on nikic/php-parser ~2.0
|
||||
|
||||
* Wed Oct 12 2016 Remi Collet <remi@fedoraproject.org> - 0.3.2-4
|
||||
- add missing dependency for autoloader
|
||||
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
28b56d51af6402d197517cd24c4500ae php-ocramius-code-generator-utils-0.3.2-0e2f6c593fc82801cbb5c8fa90559d923bd1445c.tar.gz
|
||||
f88b1ca22a25b7412f776ba79671d242 php-ocramius-code-generator-utils-0.4.0-7dc0be1dec3376d95ba094688f0d84f7cf95f300.tar.gz
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue