summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-09-15 07:53:07 +0200
committerRemi Collet <remi@remirepo.net>2020-09-15 07:53:07 +0200
commite61110e46b93531c91702ef1a39eebc7027f9580 (patch)
treea8c89bdce2bda4969ca0365e663d9862787ad3de
parentc787c25869d5437cc72509c9fa83379a6d1881d1 (diff)
update to 1.1.1 (no change)
switch to phpunit9
-rw-r--r--composer.json4
-rw-r--r--php-laminas-zendframework-bridge-rpm.patch10
-rw-r--r--php-laminas-zendframework-bridge.spec17
3 files changed, 18 insertions, 13 deletions
diff --git a/composer.json b/composer.json
index 74e87cb..34af15a 100644
--- a/composer.json
+++ b/composer.json
@@ -42,10 +42,6 @@
}
},
"extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev",
- "dev-develop": "1.1.x-dev"
- },
"laminas": {
"module": "Laminas\\ZendFrameworkBridge"
}
diff --git a/php-laminas-zendframework-bridge-rpm.patch b/php-laminas-zendframework-bridge-rpm.patch
index f2df390..439038c 100644
--- a/php-laminas-zendframework-bridge-rpm.patch
+++ b/php-laminas-zendframework-bridge-rpm.patch
@@ -1,6 +1,6 @@
diff -up ./src/Autoloader.php.rpm ./src/Autoloader.php
---- ./src/Autoloader.php.rpm 2020-08-19 08:24:30.000000000 +0200
-+++ ./src/Autoloader.php 2020-08-19 08:27:21.275930504 +0200
+--- ./src/Autoloader.php.rpm 2020-09-15 07:44:23.000000000 +0200
++++ ./src/Autoloader.php 2020-09-15 07:46:23.579538552 +0200
@@ -9,7 +9,6 @@
namespace Laminas\ZendFrameworkBridge;
@@ -26,7 +26,7 @@ diff -up ./src/Autoloader.php.rpm ./src/Autoloader.php
- */
- private static function getClassLoader()
- {
-- if (file_exists(getenv('COMPOSER_VENDOR_DIR') . '/autoload.php')) {
+- if (getenv('COMPOSER_VENDOR_DIR') && file_exists(getenv('COMPOSER_VENDOR_DIR') . '/autoload.php')) {
- return include getenv('COMPOSER_VENDOR_DIR') . '/autoload.php';
- }
-
@@ -66,8 +66,8 @@ diff -up ./src/Autoloader.php.rpm ./src/Autoloader.php
. strtr(substr($class, strlen($check)), [
'ApiTools' => 'Apigility',
diff -up ./src/Replacements.php.rpm ./src/Replacements.php
---- ./src/Replacements.php.rpm 2020-08-19 08:24:30.000000000 +0200
-+++ ./src/Replacements.php 2020-08-19 08:25:20.004129165 +0200
+--- ./src/Replacements.php.rpm 2020-09-15 07:44:23.000000000 +0200
++++ ./src/Replacements.php 2020-09-15 07:44:29.456906439 +0200
@@ -21,7 +21,7 @@ class Replacements
public function __construct(array $additionalReplacements = [])
{
diff --git a/php-laminas-zendframework-bridge.spec b/php-laminas-zendframework-bridge.spec
index 9c7059e..94b3359 100644
--- a/php-laminas-zendframework-bridge.spec
+++ b/php-laminas-zendframework-bridge.spec
@@ -7,7 +7,7 @@
# Please, preserve the changelog entries
#
%global bootstrap 0
-%global gh_commit 4939c81f63a8a4968c108c440275c94955753b19
+%global gh_commit 6ede70583e101030bcace4dcddd648f760ddf642
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner laminas
%global gh_project laminas-zendframework-bridge
@@ -21,7 +21,7 @@
%endif
Name: php-%{gh_project}
-Version: 1.1.0
+Version: 1.1.1
Release: 1%{?dist}
Summary: Alias legacy ZF class names to Laminas Project equivalents
@@ -41,8 +41,13 @@ BuildRequires: php-spl
# From composer, "require-dev": {
# "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5 || ^8.1 || ^9.3",
# "squizlabs/php_codesniffer": "^3.5"
+%if 0%{?fedora} >= 32
+%global phpunit %{_bindir}/phpunit9
+BuildRequires: phpunit9 >= 9.3
+%else
%global phpunit %{_bindir}/phpunit8
BuildRequires: phpunit8 >= 8.1
+%endif
# Autoloader
BuildRequires: php-fedora-autoloader-devel >= 1.0.1
%endif
@@ -159,10 +164,10 @@ php %{buildroot}%{php_home}/%{namespace}/autoload.php
: upstream test suite
ret=0
-for cmdarg in "php %{phpunit}" php72 php73 php74 "php80 %{_bindir}/phpunit9"; do
+for cmdarg in "php %{phpunit}" "php72 %{_bindir}/phpunit8" php73 php74 php80; do
if which $cmdarg; then
set $cmdarg
- $1 ${2:-%{_bindir}/phpunit8} --verbose || ret=1
+ $1 ${2:-%{_bindir}/phpunit9} --verbose || ret=1
fi
done
exit $ret
@@ -185,6 +190,10 @@ exit $ret
%changelog
+* Tue Sep 15 2020 Remi Collet <remi@remirepo.net> - 1.1.1-1
+- update to 1.1.1 (no change)
+- switch to phpunit9
+
* Wed Aug 19 2020 Remi Collet <remi@remirepo.net> - 1.1.0-1
- update to 1.1.0 (no change)