From 09e7069ae53beda33875ac660b27905f17e7a127 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 15 Apr 2021 08:04:22 +0200 Subject: update to 2.0.0 rename to php-composer-xdebug-handler2 install in /usr/share/php/Composer/XdebugHandler2 --- composer.json | 2 +- php-composer-xdebug-handler2.spec | 29 +++++++++++++++++++---------- 2 files changed, 20 insertions(+), 11 deletions(-) diff --git a/composer.json b/composer.json index 7df9ea6..6757395 100644 --- a/composer.json +++ b/composer.json @@ -36,7 +36,7 @@ } }, "scripts": { - "test": "SYMFONY_PHPUNIT_REMOVE_RETURN_TYPEHINT=1 vendor/bin/simple-phpunit", + "test": "vendor/bin/simple-phpunit", "phpstan": "vendor/bin/phpstan analyse" } } diff --git a/php-composer-xdebug-handler2.spec b/php-composer-xdebug-handler2.spec index 2660fea..1ec55ef 100644 --- a/php-composer-xdebug-handler2.spec +++ b/php-composer-xdebug-handler2.spec @@ -1,4 +1,4 @@ -# remirepo/fedora spec file for php-composer-xdebug-handler +# remirepo/fedora spec file for php-composer-xdebug-handler2 # # Copyright (c) 2018-2021 Remi Collet # License: CC-BY-SA @@ -6,7 +6,10 @@ # # Please, preserve the changelog entries # -%global gh_commit f27e06cd9675801df441b3656569b328e04aa37c + +%bcond_without tests + +%global gh_commit 31d57697eb1971712a08031cfaff5a846d10bdf5 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) #global gh_date 20150717 %global gh_owner composer @@ -15,13 +18,14 @@ %global ns_vendor Composer %global ns_project XdebugHandler +%global major 2 + %global php_home %{_datadir}/php -%bcond_without tests -Name: php-%{gh_owner}-%{gh_project} -Version: 1.4.6 +Name: php-%{gh_owner}-%{gh_project}%{major} +Version: 2.0.0 Release: 1%{?gh_date:.%{gh_date}git%{gh_short}}%{?dist} -Summary: Restarts a process without Xdebug +Summary: Restarts a process without Xdebug, version %{major} License: MIT URL: https://github.com/%{gh_owner}/%{gh_project} @@ -81,7 +85,7 @@ Restart a CLI process without loading the xdebug extension. Originally written as part of composer/composer, now extracted and made available as a stand-alone library. -Autoloader: %{_datadir}/php/%{ns_vendor}/%{ns_project}/autoload.php +Autoloader: %{_datadir}/php/%{ns_vendor}/%{ns_project}%{major}/autoload.php %prep @@ -104,14 +108,14 @@ EOF %install : Library mkdir -p %{buildroot}%{_datadir}/php/%{ns_vendor} -cp -pr src %{buildroot}%{_datadir}/php/%{ns_vendor}/%{ns_project} +cp -pr src %{buildroot}%{_datadir}/php/%{ns_vendor}/%{ns_project}%{major} %check mkdir vendor cat << 'EOF' | tee vendor/autoload.php - 2.0.0-1 +- update to 2.0.0 +- rename to php-composer-xdebug-handler2 +- install in /usr/share/php/Composer/XdebugHandler2 + * Fri Mar 26 2021 Remi Collet - 1.4.6-1 - update to 1.4.6 -- cgit