summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--composer.json7
-rw-r--r--php-phpunit-php-token-stream3.spec32
2 files changed, 24 insertions, 15 deletions
diff --git a/composer.json b/composer.json
index 4bf07e7..66cd03c 100644
--- a/composer.json
+++ b/composer.json
@@ -14,12 +14,13 @@
"support": {
"issues": "https://github.com/sebastianbergmann/php-token-stream/issues"
},
+ "prefer-stable": true,
"require": {
- "php": "^7.0",
+ "php": "^7.1",
"ext-tokenizer": "*"
},
"require-dev": {
- "phpunit/phpunit": "^6.2.4"
+ "phpunit/phpunit": "^7.0"
},
"config": {
"optimize-autoloader": true,
@@ -32,7 +33,7 @@
},
"extra": {
"branch-alias": {
- "dev-master": "2.0-dev"
+ "dev-master": "3.0-dev"
}
}
}
diff --git a/php-phpunit-php-token-stream3.spec b/php-phpunit-php-token-stream3.spec
index 0d9ce34..ebfc5e3 100644
--- a/php-phpunit-php-token-stream3.spec
+++ b/php-phpunit-php-token-stream3.spec
@@ -1,4 +1,4 @@
-# remirepo/fedora spec file for php-phpunit-php-token-stream2
+# remirepo/fedora spec file for php-phpunit-php-token-stream3
#
# Copyright (c) 2010-2015 Christof Damian, Remi Collet
#
@@ -7,14 +7,14 @@
#
# Please, preserve the changelog entries
#
-%global bootstrap 0
-%global gh_commit 791198a2c6254db10131eecfe8c06670700904db
+%global bootstrap 1
+%global gh_commit 21ad88bbba7c3d93530d93994e0a33cd45f02ace
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner sebastianbergmann
%global gh_project php-token-stream
%global pk_vendor phpunit
%global pk_project %{gh_project}
-%global major 2
+%global major 3
%global php_home %{_datadir}/php
# Fake NS for directory layout
%global ns_vendor SebastianBergmann
@@ -26,8 +26,8 @@
%endif
Name: php-%{pk_vendor}-%{pk_project}%{major}
-Version: 2.0.2
-Release: 1%{?dist}
+Version: 3.0.0
+Release: 0%{?dist}
Summary: Wrapper around PHP tokenizer extension
Group: Development/Libraries
@@ -38,19 +38,19 @@ Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit
BuildArch: noarch
BuildRequires: php-fedora-autoloader-devel
%if %{with_tests}
-BuildRequires: php(language) >= 7.0
+BuildRequires: php(language) >= 7.1
BuildRequires: php-tokenizer
# from composer.json, "require-dev": {
-# "phpunit/phpunit": "^6.2.4"
-BuildRequires: phpunit6 >= 6.2.4
+# "phpunit/phpunit": "^7.0"
+BuildRequires: phpunit7
BuildRequires: php-pcre
BuildRequires: php-spl
%endif
# from composer.json
-# "php": "^7.0",
+# "php": "^7.1",
# "ext-tokenizer": "*"
-Requires: php(language) >= 7.0
+Requires: php(language) >= 7.1
Requires: php-tokenizer
# from phpcompatinfo report for version 2.0.1
Requires: php-pcre
@@ -91,7 +91,7 @@ ret=0
for cmd in php php70 php71 php72; do
if which $cmd; then
$cmd -d auto_prepend_file=%{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}%{major}/autoload.php \
- %{_bindir}/phpunit6 --verbose || ret=1
+ %{_bindir}/phpunit7 --verbose || ret=1
fi
done
exit $ret
@@ -110,6 +110,14 @@ exit $ret
%changelog
+* Fri Feb 2 2018 Remi Collet <remi@remirepo.net> - 3.0.0-0
+- update to 3.0.0
+- rename to php-phpunit-php-token-stream3
+- move to /usr/share/php/SebastianBergmann/PhpTokenStream3
+- raise dependency on PHP 7.1
+- use phpunit7
+- bootstrap build
+
* Tue Nov 28 2017 Remi Collet <remi@remirepo.net> - 2.0.2-1
- Update to 2.0.2