summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--composer.json14
-rw-r--r--php-sebastian-object-reflector2.spec40
2 files changed, 35 insertions, 19 deletions
diff --git a/composer.json b/composer.json
index 88caead..d39bda0 100644
--- a/composer.json
+++ b/composer.json
@@ -9,11 +9,19 @@
"email": "sebastian@phpunit.de"
}
],
+ "prefer-stable": true,
+ "config": {
+ "platform": {
+ "php": "7.3.0"
+ },
+ "optimize-autoloader": true,
+ "sort-packages": true
+ },
"require": {
- "php": "^7.0"
+ "php": "^7.3"
},
"require-dev": {
- "phpunit/phpunit": "^6.0"
+ "phpunit/phpunit": "^9.0"
},
"autoload": {
"classmap": [
@@ -27,7 +35,7 @@
},
"extra": {
"branch-alias": {
- "dev-master": "1.1-dev"
+ "dev-master": "2.0-dev"
}
}
}
diff --git a/php-sebastian-object-reflector2.spec b/php-sebastian-object-reflector2.spec
index b17d6fa..e311823 100644
--- a/php-sebastian-object-reflector2.spec
+++ b/php-sebastian-object-reflector2.spec
@@ -1,21 +1,23 @@
-# remirepo/fedora spec file for php-sebastian-object-reflector
+# remirepo/fedora spec file for php-sebastian-object-reflector2
#
-# Copyright (c) 2017 Remi Collet
+# Copyright (c) 2017-2020 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/4.0/
#
# Please, preserve the changelog entries
#
%global bootstrap 0
-%global gh_commit 773f97c67f28de00d397be301821b06708fca0be
+%global gh_commit f4fd0835cabb0d4a6546d9fe291e5740037aa1e7
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner sebastianbergmann
%global gh_project object-reflector
+# Packagist
%global pk_vendor sebastian
%global pk_project %{gh_project}
-%global major %nil
+# Namespace
%global ns_vendor SebastianBergmann
%global ns_project ObjectReflector
+%global major 2
%global php_home %{_datadir}/php
%if %{bootstrap}
%global with_tests 0%{?_with_tests:1}
@@ -24,7 +26,7 @@
%endif
Name: php-%{pk_vendor}-%{pk_project}%{major}
-Version: 1.1.1
+Version: 2.0.0
Release: 1%{?dist}
Summary: Allows reflection of object attributes
@@ -33,19 +35,19 @@ URL: https://github.com/%{gh_owner}/%{gh_project}
Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{name}-%{version}-%{gh_short}.tar.gz
BuildArch: noarch
-BuildRequires: php(language) >= 7.0
+BuildRequires: php(language) >= 7.3
BuildRequires: php-fedora-autoloader-devel
%if %{with_tests}
# from composer.json, "require-dev": {
-# "phpunit/phpunit": "^6.0"
-BuildRequires: phpunit6
+# "phpunit/phpunit": "^9.0"
+# TODO test suite passes with v8, switch to v9 when available
+BuildRequires: phpunit8
%endif
# from composer.json
-# "php": "^7.0"
-Requires: php(language) >= 7.0
-# from phpcompatinfo report for version 1.0.0
-Requires: php-reflection
+# "php": "^7.3"
+Requires: php(language) >= 7.3
+# from phpcompatinfo report for version 2.0.0
Requires: php-spl
# Autoloader
Requires: php-composer(fedora/autoloader)
@@ -65,7 +67,6 @@ and non-public ones.
%build
# Generate the Autoloader
%{_bindir}/phpab --template fedora --output src/autoload.php src
-sed -e 's:/usr/share/php/::' -i src/autoload.php
%install
@@ -83,10 +84,10 @@ EOF
: Run upstream test suite
ret=0
-for cmd in php70 php71 php; do
+for cmd in php php73 php74; do
if which $cmd; then
- %{_bindir}/php -d include_path=.:%{buildroot}%{_datadir}/php:%{_datadir}/php \
- %{_bindir}/phpunit6 --verbose || ret=1
+ $cmd -d auto_prepend_file=%{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}%{major}/autoload.php \
+ %{_bindir}/phpunit8 --verbose || ret=1
fi
done
exit $ret
@@ -96,6 +97,7 @@ exit $ret
%files
+# remirepo:1
%{!?_licensedir:%global license %%doc}
%license LICENSE
%doc README.md composer.json
@@ -104,6 +106,12 @@ exit $ret
%changelog
+* Fri Feb 7 2020 Remi Collet <remi@remirepo.net> - 2.0.0-1
+- update to 2.0.0
+- raise dependency on PHP 7.3
+- rename to php-sebastian-object-reflector2
+- move to /usr/share/php/SebastianBergmann/ObjectReflector2
+
* Wed Mar 29 2017 Remi Collet <remi@remirepo.net> - 1.1.1-1
- Update to 1.1.1