diff options
author | Remi Collet <remi@remirepo.net> | 2021-04-15 08:04:22 +0200 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2021-04-15 08:04:22 +0200 |
commit | 09e7069ae53beda33875ac660b27905f17e7a127 (patch) | |
tree | 7bc640ccac810c6f39358c291b0270440c7323c3 | |
parent | ade09025112fded0a9d878b2f25498c2de038680 (diff) |
update to 2.0.0
rename to php-composer-xdebug-handler2
install in /usr/share/php/Composer/XdebugHandler2
-rw-r--r-- | composer.json | 2 | ||||
-rw-r--r-- | 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 <?php -require_once '%{buildroot}%{_datadir}/php/%{ns_vendor}/%{ns_project}/autoload.php'; +require_once '%{buildroot}%{_datadir}/php/%{ns_vendor}/%{ns_project}%{major}/autoload.php'; \Fedora\Autoloader\Autoload::addPsr4('%{ns_vendor}\\%{ns_project}\\', dirname(__DIR__).'/tests'); EOF @@ -135,10 +139,15 @@ exit $ret %doc composer.json %doc *.md %dir %{_datadir}/php/%{ns_vendor} - %{_datadir}/php/%{ns_vendor}/%{ns_project} + %{_datadir}/php/%{ns_vendor}/%{ns_project}%{major} %changelog +* Thu Apr 15 2021 Remi Collet <remi@remirepo.net> - 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 <remi@remirepo.net> - 1.4.6-1 - update to 1.4.6 |