From e61110e46b93531c91702ef1a39eebc7027f9580 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 15 Sep 2020 07:53:07 +0200 Subject: update to 1.1.1 (no change) switch to phpunit9 --- composer.json | 4 ---- php-laminas-zendframework-bridge-rpm.patch | 10 +++++----- php-laminas-zendframework-bridge.spec | 17 +++++++++++++---- 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 - 1.1.1-1 +- update to 1.1.1 (no change) +- switch to phpunit9 + * Wed Aug 19 2020 Remi Collet - 1.1.0-1 - update to 1.1.0 (no change) -- cgit