summaryrefslogtreecommitdiffstats
path: root/php-composer-xdebug-handler2.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-composer-xdebug-handler2.spec')
-rw-r--r--php-composer-xdebug-handler2.spec29
1 files changed, 19 insertions, 10 deletions
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